Package | Description |
---|---|
org.apache.commons.geometry.euclidean.threed |
This package provides basic 3D geometry components.
|
org.apache.commons.geometry.euclidean.threed.rotation |
This package provides components related to rotations in 3 dimensional
Euclidean space.
|
org.apache.commons.geometry.euclidean.threed.shape |
This package provides utilities for constructing basic 3D shapes.
|
Modifier and Type | Method and Description |
---|---|
static AffineTransformMatrix3D |
AffineTransformMatrix3D.createRotation(Vector3D center,
QuaternionRotation rotation)
Create a transform representing a rotation about the given center point.
|
AffineTransformMatrix3D |
AffineTransformMatrix3D.rotate(QuaternionRotation rotation)
Apply a rotation to the current instance, returning the result as a new transform.
|
EmbeddingPlane |
EmbeddingPlane.rotate(Vector3D center,
QuaternionRotation rotation)
Rotate the plane around the specified point.
|
Plane |
Plane.rotate(Vector3D center,
QuaternionRotation rotation)
Rotate the plane around the specified point.
|
AffineTransformMatrix3D |
AffineTransformMatrix3D.rotate(Vector3D center,
QuaternionRotation rotation)
Apply a rotation around the given center point to the current instance, returning the result
as a new transform.
|
Modifier and Type | Method and Description |
---|---|
static QuaternionRotation |
QuaternionRotation.createBasisRotation(Vector3D u1,
Vector3D u2,
Vector3D v1,
Vector3D v2)
Return an instance that rotates the basis defined by the first two vectors into the basis
defined by the second two.
|
static QuaternionRotation |
QuaternionRotation.createVectorRotation(Vector3D u,
Vector3D v)
Return an instance that rotates the first vector to the second.
|
static QuaternionRotation |
QuaternionRotation.fromAxisAngle(Vector3D axis,
double angle)
Create a new instance representing a rotation of
angle radians around
axis . |
static QuaternionRotation |
QuaternionRotation.fromAxisAngleSequence(AxisAngleSequence sequence)
Create a new instance equivalent to the given sequence of axis-angle rotations.
|
static QuaternionRotation |
QuaternionRotation.identity()
Return an instance representing a rotation of zero.
|
QuaternionRotation |
QuaternionRotation.inverse()
Get the inverse of this rotation.
|
QuaternionRotation |
QuaternionRotation.multiply(QuaternionRotation q)
Multiply this instance by the given argument, returning the result as
a new instance.
|
static QuaternionRotation |
QuaternionRotation.of(double w,
double x,
double y,
double z)
Create a new instance from the given quaternion values.
|
static QuaternionRotation |
QuaternionRotation.of(Quaternion quat)
Create a new instance from the given quaternion.
|
QuaternionRotation |
QuaternionRotation.premultiply(QuaternionRotation q)
Multiply the argument by this instance, returning the result as
a new instance.
|
Modifier and Type | Method and Description |
---|---|
DoubleFunction<QuaternionRotation> |
QuaternionRotation.slerp(QuaternionRotation end)
Creates a function that performs a
spherical
linear interpolation between this instance and the argument.
|
Modifier and Type | Method and Description |
---|---|
QuaternionRotation |
QuaternionRotation.multiply(QuaternionRotation q)
Multiply this instance by the given argument, returning the result as
a new instance.
|
QuaternionRotation |
QuaternionRotation.premultiply(QuaternionRotation q)
Multiply the argument by this instance, returning the result as
a new instance.
|
DoubleFunction<QuaternionRotation> |
QuaternionRotation.slerp(QuaternionRotation end)
Creates a function that performs a
spherical
linear interpolation between this instance and the argument.
|
Modifier and Type | Method and Description |
---|---|
Parallelepiped.Builder |
Parallelepiped.Builder.setRotation(QuaternionRotation rot)
Set the rotation of the created parallelepiped.
|
Copyright © 2016–2021 The Apache Software Foundation. All rights reserved.