Contents

init(origin:direction:)

Creates a ray with the specified origin and the specified direction from double-precision vectors.

Declaration

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

Parameters

  • origin:

    A vector that specifies the ray’s origin.

  • direction:

    A vector that specifies the ray’s direction.

See Also

Creating a 3D ray structure