GlobalPoint class

A point at the specified WGS84 coordinates. Referenced from GeometryUtils, NavigationManager, Position, Sublocation.

Example:

// Create global points with latitude, longitude
GlobalPoint globalPoint1 = GlobalPoint(55.7558, 37.6176); // Moscow
GlobalPoint globalPoint2 = GlobalPoint(59.9311, 30.3609); // St. Petersburg
GlobalPoint globalPoint3 = GlobalPoint(55.7522, 37.6156); // Moscow center
print("Created global points: GP1(${globalPoint1.latitude}, ${globalPoint1.longitude}), GP2(${globalPoint2.latitude}, ${globalPoint2.longitude})");

Constructors

GlobalPoint(double latitude, double longitude)
Default constructor.

Properties

hashCode int
The hash code for this object.
no setterinherited
latitude double
point's latitude.
getter/setter pair
longitude double
point's longitude.
getter/setter pair
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