Returns the area of a quadrilateral given two points.
If no ellipsoid is given the result will be a fraction of a unit sphere with a radius of one meter. If an ellipsoid struct is supplied the result’s unit will be the squared unit of that ellipsoid; otherwise, if just an ellipsoid name is given result will be in standard units squared (e.g., m^2).
Input
These coordinate inputs be scalars, vectors or 2D arrays. If any of these is non-scalar, all other LAT/LON inputs must either have the same size or be scalars.
[semimajoraxis eccentricity]
can be supplied. If specified,
spheroid must be the 5th input argument.
Output:
Example No ellipsoid (fraction of a sphere)
aq = areaquad (0, 0, 90, 360) aq = 0.50000
With radians
aq = areaquad (0, 0, pi / 2 , 2 * pi, "radians") aq = 0.50000
With ellipsoid in m^2
aq = areaquad (0, 0, 90, 360, "wgs84") aq = 2.5503e+14
With vector
aq = areaquad(-90,0,90,360,[6000 0]); aq = 4.5239e+08
See also: referenceEllipsoid,referenceSphere.
Package: mapping