public class AxisAngle4d extends Object implements Serializable, Cloneable
Modifier and Type | Field and Description |
---|---|
double |
angle
The angle of rotation in radians.
|
double |
x
The x coordinate.
|
double |
y
The y coordinate.
|
double |
z
The z coordinate.
|
Constructor and Description |
---|
AxisAngle4d()
Constructs and initializes an AxisAngle4d to (0,0,1,0).
|
AxisAngle4d(AxisAngle4d a1)
Constructs and initializes an AxisAngle4d from the specified AxisAngle4d.
|
AxisAngle4d(AxisAngle4f a1)
Constructs and initializes an AxisAngle4d from the specified AxisAngle4f.
|
AxisAngle4d(double[] a)
Constructs and initializes an AxisAngle4d from the components contained
in the array.
|
AxisAngle4d(double x,
double y,
double z,
double angle)
Constructs and initializes an AxisAngle4d from the specified x, y, z, and
angle.
|
AxisAngle4d(Vector3d axis,
double angle)
Constructs and initializes an AxisAngle4d from the specified axis and
angle.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates a new object of the same class as this object.
|
boolean |
epsilonEquals(AxisAngle4d a1,
double epsilon)
Returns true if the L-infinite distance between this axis-angle and
axis-angle a1 is less than or equal to the epsilon parameter, otherwise
returns false.
|
boolean |
equals(AxisAngle4d a1)
Returns true if all of the data members of AxisAngle4d a1 are equal to
the corresponding data members in this AxisAngle4d.
|
boolean |
equals(Object o1)
Returns true if the Object o1 is of type AxisAngle4d and all of the data
members of o1 are equal to the corresponding data members in this
AxisAngle4d.
|
void |
get(double[] a)
Gets the value of this axis angle and places it into the array a of
length four in x,y,z,angle order.
|
double |
getAngle()
Get the axis angle, in radians.
An axis angle is a rotation angle about the vector (x,y,z). |
double |
getX()
Get value of x coordinate.
|
double |
getY()
Get value of y coordinate.
|
double |
getZ()
Get value of z coordinate.
|
int |
hashCode()
Returns a hash code value based on the data values in this object.
|
void |
set(AxisAngle4d a1)
Sets the value of this axis angle to the value of axis angle a1.
|
void |
set(AxisAngle4f a1)
Sets the value of this axis angle to the value of axis angle a1.
|
void |
set(double[] a)
Sets the value of this axis angle to the specified x,y,z,angle.
|
void |
set(double x,
double y,
double z,
double angle)
Sets the value of this axis angle to the specified x,y,z,angle.
|
void |
set(Matrix3d m1)
Sets the value of this axis-angle to the rotational component of the
passed matrix.
|
void |
set(Matrix3f m1)
Sets the value of this axis-angle to the rotational component of the
passed matrix.
|
void |
set(Matrix4d m1)
Sets the value of this axis-angle to the rotational component of the
passed matrix.
|
void |
set(Matrix4f m1)
Sets the value of this axis-angle to the rotational component of the
passed matrix.
|
void |
set(Quat4d q1)
Sets the value of this axis-angle to the rotational equivalent of the
passed quaternion.
|
void |
set(Quat4f q1)
Sets the value of this axis-angle to the rotational equivalent of the
passed quaternion.
|
void |
set(Vector3d axis,
double angle)
Sets the value of this AxisAngle4d to the specified axis and angle.
|
void |
setAngle(double angle)
Set the axis angle, in radians.
An axis angle is a rotation angle about the vector (x,y,z). |
void |
setX(double x)
Set a new value for x coordinate.
|
void |
setY(double y)
Set a new value for y coordinate.
|
void |
setZ(double z)
Set a new value for z coordinate.
|
String |
toString()
Returns a string that contains the values of this AxisAngle4d.
|
public double x
public double y
public double z
public double angle
public AxisAngle4d(double x, double y, double z, double angle)
x
- the x coordinatey
- the y coordinatez
- the z coordinateangle
- the angle of rotation in radianspublic AxisAngle4d(double[] a)
a
- the array of length 4 containing x,y,z,angle in orderpublic AxisAngle4d(AxisAngle4d a1)
a1
- the AxisAngle4d containing the initialization x y z angle datapublic AxisAngle4d(AxisAngle4f a1)
a1
- the AxisAngle4f containing the initialization x y z angle datapublic AxisAngle4d(Vector3d axis, double angle)
axis
- the axisangle
- the angle of rotation in radianpublic AxisAngle4d()
public final void set(double x, double y, double z, double angle)
x
- the x coordinatey
- the y coordinatez
- the z coordinateangle
- the angle of rotation in radianspublic final void set(double[] a)
a
- the array of length 4 containing x,y,z,angle in orderpublic final void set(AxisAngle4d a1)
a1
- the axis angle to be copiedpublic final void set(AxisAngle4f a1)
a1
- the axis angle to be copiedpublic final void set(Vector3d axis, double angle)
axis
- the axisangle
- the angle of rotation in radianspublic final void get(double[] a)
a
- the array of length fourpublic final void set(Matrix4f m1)
m1
- the matrix4fpublic final void set(Matrix4d m1)
m1
- the matrix4dpublic final void set(Matrix3f m1)
m1
- the matrix3fpublic final void set(Matrix3d m1)
m1
- the matrix3dpublic final void set(Quat4f q1)
q1
- the Quat4fpublic final void set(Quat4d q1)
q1
- the Quat4dpublic String toString()
public boolean equals(AxisAngle4d a1)
a1
- the axis-angle with which the comparison is madepublic boolean equals(Object o1)
public boolean epsilonEquals(AxisAngle4d a1, double epsilon)
a1
- the axis-angle to be compared to this axis-angleepsilon
- the threshold valuepublic int hashCode()
public Object clone()
clone
in class Object
OutOfMemoryError
- if there is not enough memory.Cloneable
public final double getAngle()
public final void setAngle(double angle)
angle
- The angle to set, in radians.public double getX()
public final void setX(double x)
x
- the x coordinate.public final double getY()
public final void setY(double y)
y
- the y coordinate.public double getZ()
public final void setZ(double z)
z
- the z coordinate.Copyright © 2015–2021 Fiji. All rights reserved.