FQuaternionFromAxisAngle Method

Create a quaternion from an arbitrary axis and an angle.

Definition

Namespace: Geometry
Assembly: Geometry (in Geometry.dll) Version: 25.2613.4238
C#
public static FQuaternion FromAxisAngle(
	FVector3 axis,
	float angle
)

Parameters

axis  FVector3
Reference to the axis around which the rotation is guing to take place.
angle  Single
The angle of rotation that is going to be applied around the axis, in radians.

Return Value

FQuaternion
Reference to a newly created quaternion where rotation around the caller's arbitrary axis has been applied, if legitimate.

See Also