AxisAngle4d

Represents a 3D rotation of a given radians about an axis represented as an unit 3D vector. <p> This class uses double-precision components.

@author Kai Burjack

Constructors

this
this(AxisAngle4d a)

Create a new {@link AxisAngle4d} with the same values of <code>a</code>.

this
this(Quaterniond q)

Create a new {@link AxisAngle4d} from the given {@link Quaterniond}. <p> Reference: <a href= "http://www.euclideanspace.com/maths/geometry/rotations/conversions/quaternionToAngle/" >http://www.euclideanspace.com</a>

this
this(double angle, double x, double y, double z)

Create a new {@link AxisAngle4d} with the given values.

this
this(double angle, Vector3d v)

Create a new {@link AxisAngle4d} with the given values.

Members

Functions

equals
bool equals(AxisAngle4d other)
Undocumented in source. Be warned that the author may not have intended to support it.
get
Quaterniond get(Quaterniond q)

Set the given {@link Quaterniond} to be equivalent to this {@link AxisAngle4d} rotation.

get
Matrix4d get(Matrix4d m)

Set the given {@link Matrix4d} to a rotation transformation equivalent to this {@link AxisAngle4d}.

get
Matrix3d get(Matrix3d m)

Set the given {@link Matrix3d} to a rotation transformation equivalent to this {@link AxisAngle4d}.

get
AxisAngle4d get(AxisAngle4d dest)

Set the given {@link AxisAngle4d} to this {@link AxisAngle4d}.

hashCode
int hashCode()
Undocumented in source. Be warned that the author may not have intended to support it.
normalize
AxisAngle4d normalize()

Normalize the axis vector.

rotate
AxisAngle4d rotate(double ang)

Increase the rotation angle by the given amount. <p> This method also takes care of wrapping around.

set
AxisAngle4d set(double angle, double x, double y, double z)

Set this {@link AxisAngle4d} to the given values.

set
AxisAngle4d set(double angle, Vector3d v)

Set this {@link AxisAngle4d} to the given values.

set
AxisAngle4d set(Quaterniond q)

Set this {@link AxisAngle4d} to be equivalent to the given {@link Quaterniond}.

set
AxisAngle4d set(Matrix3d m)

Set this {@link AxisAngle4d} to be equivalent to the rotation of the given {@link Matrix3d}. <p> Reference: <a href="http://www.euclideanspace.com/maths/geometry/rotations/conversions/matrixToAngle/">http://www.euclideanspace.com</a>

set
AxisAngle4d set(Matrix4d m)

Set this {@link AxisAngle4d} to be equivalent to the rotational component of the given {@link Matrix4d}. <p> Reference: <a href="http://www.euclideanspace.com/maths/geometry/rotations/conversions/matrixToAngle/">http://www.euclideanspace.com</a>

set
AxisAngle4d set(AxisAngle4d a)

Set this {@link AxisAngle4d} to the values of <code>a</code>.

transform
Vector3d transform(Vector3d v)

Transform the given vector by the rotation transformation described by this {@link AxisAngle4d}.

transform
Vector3d transform(Vector3d v, Vector3d dest)

Transform the given vector by the rotation transformation described by this {@link AxisAngle4d} and store the result in <code>dest</code>.

transform
Vector4d transform(Vector4d v)

Transform the given vector by the rotation transformation described by this {@link AxisAngle4d}.

transform
Vector4d transform(Vector4d v, Vector4d dest)

Transform the given vector by the rotation transformation described by this {@link AxisAngle4d} and store the result in <code>dest</code>.

Variables

angle
double angle;

The angle in radians.

x
double x;

The x-component of the rotation axis.

y
double y;

The y-component of the rotation axis.

z
double z;

The z-component of the rotation axis.

Meta