Loading...
Searching...
No Matches
GlobalPoint Class Reference

A point at the specified WGS84 coordinates. More...

Public Member Functions

 GlobalPoint (this.latitude, this.longitude)
 Default constructor.
 

Public Attributes

double latitude
 point's latitude.
 
double longitude
 point's longitude.
 

Detailed Description

A point at the specified WGS84 coordinates.

Referenced from GeometryUtils, NavigationManager, Position, Sublocation.

Dart code snippet:

// 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})");

Definition at line 24 of file global_point.dart.

Constructor & Destructor Documentation

◆ GlobalPoint()

GlobalPoint.GlobalPoint ( this. latitude,
this. longitude )

Default constructor.

Member Data Documentation

◆ latitude

double GlobalPoint.latitude

point's latitude.

Dart code snippet:

// Get latitude
double lat1 = globalPoint1.latitude;
print("GlobalPoint1 latitude: $lat1");

Definition at line 36 of file global_point.dart.

◆ longitude

double GlobalPoint.longitude

point's longitude.

Dart code snippet:

// Get longitude
double lon1 = globalPoint1.longitude;
print("GlobalPoint1 longitude: $lon1");

Definition at line 46 of file global_point.dart.


The documentation for this class was generated from the following file: