LineUtils class

Line utils

Constructors

LineUtils.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

angleOf2Lines(Line line1, dynamic line2) double
Get the angle between 2 lines
getSegmentIntersect(Line line1, Line line2) Point<num>?
Get intersect of 2 line segments
isPointBelongToLineSegment(Point<num> point, Line line) bool
Check if a point is belonged to the segment
isTwoLineSegmentsIntersect(Line line1, Line line2) bool
Check if 2 lines segments intersects
lineLength(Line line) double
Calculate length of line segment
midPoint(Line line) Point<num>
Get mid point of line segment
pointToLineDistance(Point<num> point, Line line) double