init(origin:direction:)
Creates a ray with the specified origin and the specified direction from Spatial primitives.
Declaration
init(origin: Point3D, direction: Vector3D)Parameters
- origin:
A point that specifies the ray’s origin.
- direction:
A vector that specifies the ray’s direction.