Contents

rotated(by:around:)

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

Declaration

func rotated(by quaternion: simd_quatf, around pivot: Point3DFloat) -> Ray3DFloat

Parameters

  • quaternion:

    The quaternion that defines the rotation.

  • pivot:

    The center of rotation.