Contents

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.

Discussion