Contents

rotated(by:around:)

Returns a ray that’s rotated by the specified quaternion around a specified pivot.

Declaration

func rotated(by quaternion: simd_quatd, around pivot: Point3D) -> Ray3D

Parameters

  • quaternion:

    The quaternion that defines the rotation.

  • pivot:

    The center of the rotation.

See Also

Transforming a 3D ray structure