Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Ray

A ray. This is a directed half-line. A ray. This is a directed half-line.

Hierarchy

  • Ray

Index

Constructors

Properties

Methods

Constructors

constructor

  • 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

  • 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

dir

dir: Vector

The direction of propagation of the ray. The direction of propagation of the ray.

origin

origin: Vector

The starting point of the ray. The starting point of the ray.

Methods

pointAt

  • Parameters

    • t: number

    Returns Vector

  • Parameters

    • t: number

    Returns Vector

Generated using TypeDoc