SbRotationd Structure |
Object that stores a rotation using double precision values. Although Open Inventor fields still store only single precision values, for certain applications it is useful and convenient to be able to store and manipulate double precision values, for example, double precision coordinate data or values that will be used for further computation.
There are several ways to specify a rotation: quaternion (4 doubles, in the order x, y, z, w), 4x4 rotation matrix, or axis and angle. All angles are in radians and all rotations are right-handed.
Namespace: OIV.Inventor
The SbRotationd type exposes the following members.
Name | Description | |
---|---|---|
SbRotationd(Double) |
Constructor for rotation.
| |
SbRotationd(SbMatrixd) |
Constructor for rotation.
| |
SbRotationd(SbMatrixd) |
Constructor for rotation.
| |
SbRotationd(SbVec3d, SbVec3d) |
Constructors for rotation. The rotate From/To constructor defines rotation
that rotates from one vector into another. The rotateFrom
and rotateTo vectors are normalized by the constructor
before calculating the rotation.
| |
SbRotationd(SbVec3d, Double) |
Constructor for rotation. The axis/radians constructor
creates a rotation of angle radians about the given axis.
| |
SbRotationd(SbVec3d, SbVec3d) |
Constructors for rotation. The rotate From/To constructor defines rotation
that rotates from one vector into another. The rotateFrom
and rotateTo vectors are normalized by the constructor
before calculating the rotation.
| |
SbRotationd(SbVec3d, Double) |
Constructor for rotation. The axis/radians constructor
creates a rotation of angle radians about the given axis.
| |
SbRotationd(Double, Double, Double, Double) |
Constructor for rotation.
|
Name | Description | |
---|---|---|
Equals(Object) |
Returns a value indicating whether this instance is equal to a specified object.
(Overrides ValueTypeEquals(Object).) | |
Equals(Object, Double) |
Returns a value indicating whether this instance is equal to a specified object
with given tolerance.
| |
GetHashCode |
Returns the hash code for the value of this instance.
(Overrides ValueTypeGetHashCode.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetValue(SbMatrix) |
Returns corresponding 4x4 rotation matrix.
| |
GetValue(SbMatrixd) |
Returns corresponding 4x4 rotation matrix.
| |
GetValue(SbVec3d, Double) |
Gives an axis / angle representation of this rotation.
| |
GetValue(Double, Double, Double, Double) |
Gives a quaternion representation of this rotation.
| |
Identity |
Returns a null (identity) rotation.
| |
Inverse |
Returns the inverse of a rotation.
| |
Invert |
Changes a rotation to be its inverse.
| |
Mult(SbRotationd) |
Multiplies the matrix of this rotation by the rotation r.
| |
Mult(SbRotationd) |
Multiplies the matrix of this rotation by the rotation r.
| |
MultVec(SbVec3d) |
Multiplies the given vector by the matrix of this rotation.
| |
MultVec(SbVec3d, SbVec3d) |
Multiplies the given vector by the matrix of this rotation.
| |
MultVec(SbVec3d, SbVec3d) |
Multiplies the given vector by the matrix of this rotation.
| |
ScaleAngle |
Keep the axis the same. Multiply the angle of rotation by
the amount scaleFactor.
| |
SetValue(Double) |
Sets value of rotation from array of 4 components of a quaternion.
| |
SetValue(SbMatrix) |
Sets value of rotation from a rotation matrix.
| |
SetValue(SbMatrix) |
Sets value of rotation from a rotation matrix.
| |
SetValue(SbMatrixd) |
Sets value of rotation from a rotation matrix.
| |
SetValue(SbMatrixd) |
Sets value of rotation from a rotation matrix.
| |
SetValue(SbRotation) |
Sets rotation from a single precision rotation.
| |
SetValue(SbRotation) |
Sets rotation from a single precision rotation.
| |
SetValue(SbVec3d, SbVec3d) |
Sets rotation to rotate one direction vector to another. The rotateFrom
and @rotateTo arguments are normalized before the rotation is calculated.
| |
SetValue(SbVec3d, Double) |
Sets value of vector from 3D rotation axis vector and angle in radians.
| |
SetValue(SbVec3d, SbVec3d) |
Sets rotation to rotate one direction vector to another. The rotateFrom
and @rotateTo arguments are normalized before the rotation is calculated.
| |
SetValue(SbVec3d, Double) |
Sets value of vector from 3D rotation axis vector and angle in radians.
| |
SetValue(Double, Double, Double, Double) |
Sets value of rotation from 4 individual components of a quaternion.
| |
Slerp(SbRotationd, SbRotationd, Double) |
Spherical linear interpolation: as t goes from 0 to 1,
returned value goes from rot0 to rot1.
| |
Slerp(SbRotationd, SbRotationd, Double) |
Spherical linear interpolation: as t goes from 0 to 1,
returned value goes from rot0 to rot1.
| |
ToString |
Converts this SbRotationd structure to a human readable string.
(Overrides ValueTypeToString.) |
Name | Description | |
---|---|---|
Equality |
The equality operator.
| |
(SbRotationd to SbMatrixd) |
Set a matrix from a SbRotationd
| |
Inequality |
The inequality operator.
| |
Multiply |
The multiplication operator (*).
Operated multiplication of two rotations;
results in product of rotations.
|