FMatrix3Rotate(FVector3, FVector3, AxisType) Method

Rotate the 3D point by a specified angle, in radians.

Definition

Namespace: Geometry
Assembly: Geometry (in Geometry.dll) Version: 25.2613.4238
C#
public static FVector3 Rotate(
	FVector3 vector,
	FVector3 theta,
	AxisType upAxis = AxisType.Z
)

Parameters

vector  FVector3
Reference to the vector to be rotated.
theta  FVector3
The angles around the X, Y, and Z axis by which to rotate the vector, in radians.
upAxis  AxisType  (Optional)
The optional 'up' direction axis used to help determine which axis is yaw.

Return Value

FVector3
The rotated 3D vector, relative to 0,0,0.

Remarks

The order of rotations is Yaw, Pitch, Roll, with the UpDirection helping to distinguish which axis is Yaw.

Yaw, pitch and roll are descriptions from the perspective of the pilot.

  • Yaw is left/right turning rotation with a constant horizon.
  • Pitch is forward/back rotation.
  • Roll is wingtip left/right rotation.

See Also