A ray. This is a directed half-line.

Hierarchy

  • Ray

Constructors

Properties

Methods

Constructors

Image for: Constructors
  • Builds a ray from its origin and direction.

    Parameters

    • origin: Vector

      The ray's starting point.

    • dir: Vector

      The ray's direction of propagation.

    Returns Ray

Properties

Image for: Properties
dir: Vector

The direction of propagation of the ray.

origin: Vector

The starting point of the ray.

Methods

Image for: Methods
  • Parameters

    • t: number

    Returns Vector

Generated using TypeDoc