# Line

Represents a line in 3D space.

- Kind: struct
- Assembly: `Sandbox.System`
- Modifiers: sealed

## Constructors

- [`Line`](/api/Line/.ctor)

## Properties

- [`Center`](/api/Line/Center): Returns the midpoint between a and b
- [`Delta`](/api/Line/Delta): Returns the result of b - a
- [`End`](/api/Line/End): End position of the line.
- [`Start`](/api/Line/Start): Start position of the line.

## Methods

- [`ClosestPoint`](/api/Line/ClosestPoint): Returns closest point on this line to the given point.
- [`Distance`](/api/Line/Distance): Returns closest distance from this line to given point.
- [`SqrDistance`](/api/Line/SqrDistance): Returns closest squared distance from this line to given point.
- [`Trace`](/api/Line/Trace): Perform a "trace" between this line and given ray. If the 2 lines intersect, returns true.
