uwacan.positional.Line.at_position#

classmethod Line.at_position(position, length, bearing, n_points=100, symmetric=False, dim='line')[source]#

Create a line at a given position with a specified length and bearing.

Parameters:
positionPosition

The starting position of the line.

lengthfloat

The total length of the line, in meters.

bearingfloat

The bearing (direction) of the line in degrees.

n_pointsint, default=100

The number of points to generate along the line.

symmetricbool, default=False

If True, the line is centered on the given position.

dimstr, default=”line”

The dimension name for the line points.

Returns:
Line

A new instance of the Line class representing the line at the specified position.