Contents

rotated(by:)

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

Declaration

func rotated(by quaternion: simd_quatd) -> Vector3D

Parameters

  • quaternion:

    The quaternion that defines the rotation.

Discussion

  • Returns The rotated vector.

See Also

Transforming a vector