BoundaryType enum

Returns true if a point is on a line. Accepts an optional parameter to ignore the start and end vertices of the LineString. The ignoreEndVertices=false controls whether to ignore the start and end vertices. epsilon is the Fractional number to compare with the cross product result. It's useful for dealing with floating points in lng/lat example:

var pt = Point(coordinates:Position.of([0, 0]));
var line = LineString(coordinates: [
  Position.of([-1, -1]),
  Position.of([1, 1]),
  Position.of([1.5, 2.2]),
]);
var isPointOnLine = booleanPointOnLine(pt, line);
//=true
Inheritance
Available extensions

Values

none → const BoundaryType
start → const BoundaryType
end → const BoundaryType
both → const BoundaryType

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
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

Constants

values → const List<BoundaryType>
A constant List of the values in this enum, in order of their declaration.