Line class

An infinite line on the 2D Cartesian space, represented in the form of ax + by = c.

If you just want to represent a part of a line, look into LineSegment.

Constructors

Line(double a, double b, double c)
const
Line.fromPoints(Vector2 p1, Vector2 p2)

Properties

a double
final
angle double
The angle of this line in relation to the x-axis
no setter
b double
final
c double
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

intersections(Line otherLine) List<Vector2>
Returns an empty list if there is no intersection If the lines are concurrent it returns one point in the list. If they coincide it returns an empty list as well
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited