# Ray

Show Deprecated

The Ray data type represents a half-line, finite in one direction but infinite in the other. It can be defined by a 3D point, where the line originates from, and a direction vector, which is the direction it goes in.

## Summary

### Constructors

### Properties

### Methods

## Constructors

## Properties

### Origin

The position of the origin.

## Methods

### Distance

Returns the distance between the given point and the point on the ray nearest to the given point (Ray.ClosestPoint()).