Click or drag to resize

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
)

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: Quaternion
The created Quaternion.
See Also