Line
- class rhino3dm.Line
- Line(from, to)
Constructs a new line segment between two points.
- Parameters:
from (rhino3dm.Point3d) – Start point of line.
to (rhino3dm.Point3d) – End point of line.
- From
rhino3dm.Point3d: Start point of line segment.
- To
rhino3dm.Point3d: End point of line segment.
- IsValid
bool: Gets a value indicating whether or not this line is valid. Valid lines must have valid start and end points, and the points must not be equal.
- Length
float: Gets or sets the length of this line segment. Note that a negative length will invert the line segment without making the actual length negative. The line From point will remain fixed when a new Length is set.
- Direction
rhino3dm.Vector3d: Gets the direction of this line segment. The length of the direction vector equals the length of the line segment.
- UnitTangent
rhino3dm.Vector3d: Gets the tangent of the line segment. Note that tangent vectors are always unit vectors.
- PointAt(t)
Evaluates the line at the specified parameter.
- Parameters:
t (float) – Parameter to evaluate line segment at. Line parameters are normalized parameters.
- Returns:
The point at the specified parameter.
- Return type: