# Class Ray

A ray. This is a directed half-line.

- Defined in geometry/ray.d.ts:9

#####
Index

### Constructors

constructor

### Properties

dir
origin

### Methods

pointAt

## Constructors

### constructor

- new Ray(origin, dir): 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

  - Defined in geometry/ray.d.ts:24

## Properties

### dir

dir: Vector

The direction of propagation of the ray.

- Defined in geometry/ray.d.ts:17

### origin

origin: Vector

The starting point of the ray.

- Defined in geometry/ray.d.ts:13

## Methods

### pointAt

- pointAt(t): Vector

- #### Parameters

  - t: number

  #### Returns Vector

  - Defined in geometry/ray.d.ts:25