georegression.struct.so
Class Rodrigues_F32
- java.lang.Object
-
- georegression.struct.so.Rodrigues_F32
-
- All Implemented Interfaces:
- java.io.Serializable
public class Rodrigues_F32 extends java.lang.Object implements java.io.SerializableDefines a 3D rotation based upon the axis of rotation and the angle of rotation in SO(3).
R(θ) = ew*θ
R(θ) = 1 + w*sin(θ) + w2*(1-cos(θ))
where θ is the angle of rotation, 'w' is a skew symmetric matrix around the axis of rotation.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description floatthetaVector3D_F32unitAxisRotation
-
Constructor Summary
Constructors Constructor and Description Rodrigues_F32()Rodrigues_F32(float theta, float x, float y, float z)Constructor which specifies the transform using an unnormalized rotation axis.Rodrigues_F32(float theta, Vector3D_F32 unitAxisRotation)Constructor which specifies the transform.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description floatgetTheta()Vector3D_F32getUnitAxisRotation()voidsetParamVector(float x, float y, float z)Assign the Rodrigues coordinates using a 3 element vector.voidsetTheta(float theta)voidsetUnitAxisRotation(Vector3D_F32 unitAxisRotation)java.lang.StringtoString()
-
-
-
Field Detail
-
unitAxisRotation
public Vector3D_F32 unitAxisRotation
-
theta
public float theta
-
-
Constructor Detail
-
Rodrigues_F32
public Rodrigues_F32()
-
Rodrigues_F32
public Rodrigues_F32(float theta, Vector3D_F32 unitAxisRotation)Constructor which specifies the transform.- Parameters:
theta- Angle of rotationunitAxisRotation- Axis of rotation Must be normalized to 1.
-
Rodrigues_F32
public Rodrigues_F32(float theta, float x, float y, float z)Constructor which specifies the transform using an unnormalized rotation axis.- Parameters:
theta- Angle of rotationx- Axis of rotation. x-component.y- Axis of rotation. y-component.z- Axis of rotation. z-component.
-
-
Method Detail
-
getUnitAxisRotation
public Vector3D_F32 getUnitAxisRotation()
-
setUnitAxisRotation
public void setUnitAxisRotation(Vector3D_F32 unitAxisRotation)
-
getTheta
public float getTheta()
-
setTheta
public void setTheta(float theta)
-
setParamVector
public void setParamVector(float x, float y, float z)Assign the Rodrigues coordinates using a 3 element vector. Theta is the vector's magnitude and the axis of rotation is the unit vector.- Parameters:
x- x-component of 3 vectory- y-component of 3 vectorz- z-component of 3 vector
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DataMelt 3.0 © DataMelt by jWork.ORG