Constructors
LinearSegment
#Create a 2d spatial line from start and end coordinates.
LinearSegment
#Create a spatial line from start and end coordinates.
Properties
Methods
ClosestParameter
#Get the parameter on the line closest to a point.
Parameters:
| point (Locus) | Point to approach. |
Returns: Parameter on line.
CrossingPoint
#Find the parameter on the line at which it intersects a given slice.
Parameters:
| slice (InfinitePlane) | Slice to intersect. |
| t (out double) | Parameter on line. |
Returns: True if line and slice intersect.
CrossingPoint
#Find the crossing points for two lines. The crossing point is where they approach each other the closest.
Parameters:
| line (LinearSegment) | Line to cross. |
| t0 (out double) | Parameter of crossing on this line. |
| t1 (out double) | Parameter of crossing on other line. |
Returns: True if lines cross, false if not.
DistanceTo
#Gets the distance to a line.
Parameters:
| line (LinearSegment) | Line. |
Returns: Distance to line.
Evaluate
#Evaluate this line a given parameter.
Parameters:
| t (double) | Parameter to evaluate. |
Returns: Point on line at parameter.
QuadranceTo
#Gets the quadrance to a line.
Parameters:
| line (LinearSegment) | Line. |
Returns: Quadrance to line.