LongitudeLatitudeNumber Class
An AngleAngleNumber
is a pair of angles (named longitude
and latitude
) and an additional number.
- This is directly intended to support
Ellipsoid
computations, with the two angles used aslongitude
is "around the equator"latitude
is "equator to pole"h
is altitude above the `Ellipsoid surface.
- The structure may also be used for torus coordinates.
Implements
Methods
Name | Description | |
---|---|---|
clone(): LongitudeLatitudeNumber | Return a copy | |
isAlmostEqual(other: LongitudeLatitudeNumber): boolean | Test for near equality | |
setFromJSON(json: any): void | Set content from a JSON object. | |
toJSON(): any | Return a json object with this object's contents. | |
create(longitude: Angle, latitude: Angle, h: number0, result?: LongitudeLatitudeNumber): LongitudeLatitudeNumber Static | Create with strongly typed Angle inputs |
|
createDegrees(longitudeDegrees: number, latitudeDegrees: number, h: number0, result?: LongitudeLatitudeNumber): LongitudeLatitudeNumber Static | Create with angles in degrees. | |
createRadians(longitudeRadians: number, latitudeRadians: number, h: number0, result?: LongitudeLatitudeNumber): LongitudeLatitudeNumber Static | Create with angles in radians. | |
createZero(): LongitudeLatitudeNumber Static | Create with all zero angles and altitude. |
Properties
Name | Type | Description | |
---|---|---|---|
altitude Accessor | number | Get or set the altitude. | |
latitude Accessor ReadOnly | Angle | (property getter) (clone of) latitude as a strongly typed Angle |
|
latitudeDegrees Accessor ReadOnly | number | (property getter) latitude in degrees | |
latitudeRadians Accessor ReadOnly | number | (property getter) latitude in radians | |
latitudeRef Accessor ReadOnly | Angle | (property getter) (reference to) latitude as a strongly typed Angle |
|
longitude Accessor ReadOnly | Angle | (property getter) (clone of) longitude as a strongly typed Angle |
|
longitudeDegrees Accessor ReadOnly | number | (property getter) longitude in degrees | |
longitudeRadians Accessor ReadOnly | number | (property getter) longitude in radians | |
longitudeRef Accessor ReadOnly | Angle | (property getter) (reference to) longitude as a strongly typed Angle |
Defined in
Last Updated: 17 December, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.