init(origin:direction:)
Creates a ray from Spatial primitives that describe the origin and direction.
Declaration
init(origin: Point3DFloat = .zero, direction: Vector3DFloat)Parameters
- origin:
The origin of the ray.
- direction:
The direction of the ray.