GeoCoordinate class
The GeoCoordinate class defines (x,y,z) coordinates on a 3-dimensional space.
- Implementers
Constructors
- GeoCoordinate(double x, double y, double z)
- Constructor for GeoCoordinate
Properties
- hashCode → int
-
Calculate hashcode of 3-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 pair
- y ↔ double
-
The y-coordinate in a 3-dimensional space
getter/setter pair
- z ↔ double
-
The x-coordinate in a 3-dimensional space
getter/setter pair
Methods
-
distanceTo(
GeoCoordinate point) → double - Calculate the distance between two points
-
lerpFrom(
GeoCoordinate other, double t) → GeoCoordinate -
Linearly interpolate from
other
coordinate to this coordinate by an extrapolation factort
. -
lerpTo(
GeoCoordinate other, double t) → GeoCoordinate -
Linearly interpolate from this coordinate to
other
coordinate by an extrapolation factort
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
Represent coordinate as a printable string (x: #, y: #, z: #).
override
Operators
-
operator *(
Object factor) → GeoCoordinate -
Multiple coordinates by
factor
. -
operator +(
Object other) → GeoCoordinate - Translate a coordinate by another by adding it's respective coordinates. Simply, addition of two coordinates.
-
operator ==(
Object other) → bool -
Compare two coordinates for equality.
override