Contents

rotated(by:)

Returns the vector rotated by the specified quaternion around the origin.

Declaration

func rotated(by quaternion: simd_quatf) -> Vector3DFloat

Parameters

  • quaternion:

    The quaternion that defines the rotation.

Discussion

  • Returns The rotated vector.