Contents

rotated(by:)

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

Declaration

func rotated(by quaternion: simd_quatf) -> Ray3DFloat

Parameters

  • quaternion:

    The quaternion that defines the rotation.

Discussion

  • Returns A ray with a direction that’s rotated by the specified quaternion.