Packagecom.yahoo.maps.api.utils
Classpublic class Geodesic



Public Properties
 PropertyDefined by
  angle : Number
[read-only] The angle formed with the center of the earth.
Geodesic
  distance : DistanceResult
[read-only] Distance
Geodesic
  pointOne : LatLon
[read-only] The starting point of the geodesic.
Geodesic
  pointTwo : LatLon
[read-only] The ending point of the geodesic.
Geodesic
Public Methods
 MethodDefined by
  
Geodesic(pointOne:LatLon, pointTwo:LatLon)
Creates a new Geodesic.
Geodesic
  
getPoint(position:Number):LatLon
Returns a LatLon object at a position along the geodesic.
Geodesic
Public Constants
 ConstantDefined by
  EARTH_CIRCUMFERENCE : Number = 40000000
[static] The circumference of Earth in meters.
Geodesic
  EARTH_RADIUS : Number = 6366197.7236758135
[static] The radius of Earth in meters.
Geodesic
Property detail
angleproperty
angle:Number  [read-only]

The angle formed with the center of the earth.

Implementation
    public function get angle():Number
distanceproperty 
distance:DistanceResult  [read-only]

Distance

Implementation
    public function get distance():DistanceResult
pointOneproperty 
pointOne:LatLon  [read-only]

The starting point of the geodesic.

Implementation
    public function get pointOne():LatLon
pointTwoproperty 
pointTwo:LatLon  [read-only]

The ending point of the geodesic.

Implementation
    public function get pointTwo():LatLon
Constructor detail
Geodesic()constructor
public function Geodesic(pointOne:LatLon, pointTwo:LatLon)

Creates a new Geodesic.

Parameters
pointOne:LatLon
 
pointTwo:LatLon
Method detail
getPoint()method
public function getPoint(position:Number):LatLon

Returns a LatLon object at a position along the geodesic.

Parameters
position:Number — A floating-point number from 0.0 to 1.0 that determines the point along the geodesic.

Returns
LatLon
Constant detail
EARTH_CIRCUMFERENCEconstant
public static const EARTH_CIRCUMFERENCE:Number = 40000000

The circumference of Earth in meters.

EARTH_RADIUSconstant 
public static const EARTH_RADIUS:Number = 6366197.7236758135

The radius of Earth in meters.