# Ray

A struct describing an origin and direction

- Kind: struct
- Assembly: `Sandbox.System`
- Modifiers: sealed

## Constructors

- [`Ray`](/api/Ray/.ctor)

## Properties

- [`Forward`](/api/Ray/Forward): Direction of the ray.
- [`Position`](/api/Ray/Position): Origin of the ray.

## Methods

- [`Project`](/api/Ray/Project): Returns a point on the ray at given distance.
- [`ToLocal`](/api/Ray/ToLocal): Convert a ray to be local to this transform
- [`ToWorld`](/api/Ray/ToWorld): Convert a ray from being local to this transform
