Contents

rotated(by:)

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

Declaration

func rotated(by quaternion: Self.Quaternion) -> Self

Parameters

  • quaternion:

    The quaternion that defines the rotation.

Discussion

  • Returns The rotated primitive.