GeoCoordinate2D class

The GeoCoordinate2D class defines (x,y) coordinates on a 2-dimensional plane (w/ z = 0 implied).

Inheritance

Constructors

GeoCoordinate2D(double x, double y)
Constructor for GeoCoordinate

Properties

hashCode int
Calculate hashcode of 2-dimensional coordinate
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
x double
The x-coordinate in a 3-dimensional space
getter/setter pairinherited
y double
The y-coordinate in a 3-dimensional space
getter/setter pairinherited
z double
The x-coordinate in a 3-dimensional space
getter/setter pairinherited

Methods

asOffset() Offset
Convert 2-dimensional coordinate to Offset class (defined in dart:ui library).
distanceTo(GeoCoordinate point) double
Compute distance between 2 points
override
lerpFrom(GeoCoordinate other, double t) GeoCoordinate
Linearly interpolate from other coordinate to this coordinate by an extrapolation factor t.
inherited
lerpFrom2D(GeoCoordinate2D other, double t) GeoCoordinate2D
Linearly interpolate from other coordinate to this coordinate by an extrapolation factor t.
lerpTo(GeoCoordinate other, double t) GeoCoordinate
Linearly interpolate from this coordinate to other coordinate by an extrapolation factor t.
inherited
lerpTo2D(GeoCoordinate2D other, double t) GeoCoordinate2D
Linearly interpolate from this coordinate to other coordinate by an extrapolation factor t.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rotate(GeoAngle angle, [GeoCoordinate2D? pivot]) GeoCoordinate2D
Rotate coordinate by specified angle using pivot as center of rotation.
slopeTo(GeoCoordinate2D point) double
Calculate slope between 2 points
toString() String
Represent coordinate as a printable string (x: #, y: #).
override

Operators

operator *(Object factor) GeoCoordinate
Multiple coordinates by factor.
inherited
operator +(Object other) GeoCoordinate
Translate a coordinate by another by adding it's respective coordinates. Simply, addition of two coordinates.
inherited
operator ==(Object other) bool
Compare two coordinates for equality.
override