LineSegment class
A LineSegment represent a segment of an infinitely long line, it is the segment between the from and to vectors (inclusive).
Constructors
- LineSegment(Vector2 from, Vector2 to)
- LineSegment.zero()
-
factory
Properties
Methods
-
containsPoint(
Vector2 point, {double epsilon = 0.000001}) → bool -
intersections(
LineSegment otherSegment) → List< Vector2> - Returns an empty list if there are no intersections between the segments If the segments are concurrent, the intersecting point is returned as a list with a single point
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pointsAt(
Line line) → bool -
toLine(
) → Line -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited