|
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: 1.0.0.0 (1.0.0.0)
Syntax public 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