Constructs a Line from a radius and an angle (in degrees).

**Namespace:**
AForge.Math.Geometry

**Assembly:**
AForge.Math (in AForge.Math.dll) Version: 2.2.5.0 (2.2.5.0)

# Syntax

#### Parameters

- radius
- Type: System..::.Single

The minimum distance from the line to the origin.

- theta
- Type: System..::.Single

The angle of the vector from the origin to the line.

#### Return Value

Returns a Line representing the specified line.# Remarks

radius is the minimum distance from the origin to the line, and theta is the counterclockwise rotation from the positive X axis to the vector through the origin and normal to the line.

This means that if theta is in [0,180), the point on the line closest to the origin is on the positive X or Y axes, or in quadrants I or II. Likewise, if theta is in [180,360), the point on the line closest to the origin is on the negative X or Y axes, or in quadrants III or IV.

# Exceptions

Exception | Condition |
---|---|

System..::.ArgumentOutOfRangeException | Thrown if radius is negative. |