Contents

init(origin:direction:)

Creates a ray from single-precision simd vectors that describe the origin and direction.

Declaration

init(origin: simd_float3 = .zero, direction: simd_float3)

Parameters

  • origin:

    The origin of the ray.

  • direction:

    Direction of the rectangle.

Discussion