Click or drag to resize
Accord.NET (logo)

LineFromPointTheta Method

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

Namespace:  Accord.Math.Geometry
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax
public static Line FromPointTheta(
	Point point,
	float theta
)
Request Example View Source

Parameters

point
Type: AccordPoint
The minimum distance from the line to the origin.
theta
Type: SystemSingle
The angle of the normal vector from the origin to the line.

Return Value

Type: Line
Returns a Line representing the specified line.
Remarks

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.

See Also