init(origin:direction:)
Creates a ray with the specified origin and the specified direction from single-precision vectors.
Declaration
init(origin: simd_float3 = .zero, direction: simd_float3)Parameters
- origin:
A vector that specifies the ray’s origin.
- direction:
A vector that specifies the ray’s direction.