|
QuaternionCreateFromAxisAngle Method
|
Creates a Quaternion from a vector and an angle to rotate about the vector.
Namespace:
Karamba.Geometry
Assembly:
KarambaCommon (in KarambaCommon.dll) Version: 2.2.0.4 (2.2.0.4)
Syntaxpublic static Quaternion CreateFromAxisAngle(
Vector3 axis,
double angle
)
Public Shared Function CreateFromAxisAngle (
axis As Vector3,
angle As Double
) As Quaternion
public:
static Quaternion CreateFromAxisAngle(
Vector3 axis,
double angle
)
static member CreateFromAxisAngle :
axis : Vector3 *
angle : float -> Quaternion
Parameters
- axis
- Type: Karamba.GeometryVector3
The vector to rotate around. - angle
- Type: SystemDouble
The angle, in radians, to rotate around the vector.
Return Value
Type:
QuaternionThe created Quaternion.
See Also