This class is designed to be easily mutable (to the extent of having its contained points public). This supports a common pattern of reusing a single LineSegment object as a way of computing segment properties on the segments defined by arrays or lists of Coordinates.
true if the segment is horizontal
true if the segment is vertical
seg is to the left of this segment
seg is to the right of this segment
seg is collinear to or crosses this segment
p is to the left of this segment
p is to the right of this segment
p is collinear with this segment
0.0 returns the start point of the segment; a fraction of
1.0 returns the end point of the segment. If the fraction is < 0.0 or > 1.0 the point returned will lie before the start or beyond the end of the segment.
0.0 offsets from the start point of the segment; a fraction of
1.0 offsets from the end point of the segment. The computed point is offset to the left of the line if the offset distance is positive, to the right if negative.
The projection factor will lie in the range (-inf, +inf), or be NaN if the line segment has zero length..
Essentially, this is the projectionFactor clamped to the range [0.0, 1.0]. If the segment has zero length, 1.0 is returned.
Note that the projected point may lie outside the line segment. If this is the case, the projection factor will lie outside the range [0.0, 1.0].
Note that the returned line may have zero length (i.e. the same endpoints). This can happen for instance if the lines are perpendicular to one another.
null if there is no overlap
null if there is none
null if there is no point of intersection or an infinite number of intersection points
true if
other has the same values for its points.
LineSegment with which to do the comparison.
true if
other is a
LineSegment with the same values for the x and y ordinates.
LineSegment with which this
LineSegment is being compared
LineSegment is less than, equal to, or greater than the specified
LineSegment
true if
other is topologically equal to this LineSegment (e.g. irrespective of orientation).
LineSegment with which to do the comparison.
true if
other is a
LineSegment with the same values for the x and y ordinates.