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