Constructor
new MeasuredLocation(latitude, longitude, measure)
Constructs a measured location from a specified latitude and longitude in degrees associated with a measure.
Parameters:
Name | Type | Description |
---|---|---|
latitude |
Number | The latitude in degrees. |
longitude |
Number | The longitude in degrees. |
measure |
Number | The measure in an arbitrary unit. |
- Source:
Extends
Members
latitude :Number
The latitude in degrees.
Type:
- Number
- Inherited From:
- Source:
longitude :Number
The longitude in degrees.
Type:
- Number
- Inherited From:
- Source:
measure :Number
The measure in an arbitrary unit.
Type:
- Number
- Source:
Methods
(static) fromRadians(latitudeRadians, longitudeRadians, measure) → {Location}
Creates a measured location from angles specified in radians.
Parameters:
Name | Type | Description |
---|---|---|
latitudeRadians |
Number | The latitude in radians. |
longitudeRadians |
Number | The longitude in radians. |
measure |
Number | The measure in an arbitrary unit. |
- Source:
Returns:
The new location with latitude and longitude in degrees.
- Type
- Location
copy(measuredLocation) → {MeasuredLocation}
Copies this measured location to the latitude, longitude and measure of a specified measured location.
Parameters:
Name | Type | Description |
---|---|---|
measuredLocation |
MeasuredLocation | The measured location to copy. |
- Overrides:
- Source:
Throws:
-
If the specified measured location is null or undefined.
- Type
- ArgumentError
Returns:
This measured location, set to the values of the specified measured location.
- Type
- MeasuredLocation
equals(measuredLocation) → {Boolean}
Indicates whether this measured location is equal to a specified measured location.
Parameters:
Name | Type | Description |
---|---|---|
measuredLocation |
MeasuredLocation | The measured location to compare this one to. |
- Overrides:
- Source:
Returns:
true
if this measured location is equal to the specified measured location,
otherwise false
.
- Type
- Boolean
set(latitude, longitude, measure) → {MeasuredLocation}
Sets this measured location to the latitude, longitude and measure.
Parameters:
Name | Type | Description |
---|---|---|
latitude |
Number | The latitude to set |
longitude |
Number | The longitude to set |
measure |
Number | The measure to set. |
- Overrides:
- Source:
Returns:
This measured location, set to the values of the specified latitude, longitude and
measure.
- Type
- MeasuredLocation