The reference in which this geodesy performs its calculations
Calculates the area of the given shape.
Note: Currently only polygons are supported.
The shape for which to calculate the area.
The area of the shape in m^2.
Calculates the distance between two points in meters in 2D space.
If the reference of a point is
null
it will be assumed to be the same as this instance's
calculation reference.
the first point
the second point
the type of line along which to calculate the distance (LineType.SHORTEST_DISTANCE if not specified)
the distance between the two points in meters
Calculates the distance between two points in 3D space expressed in meters (Cartesian Geodesy only).
This method can be used only on Geodesy instances created by createCartesianGeodesy. Invoking this method on other types of Geodesy results in throwing a ProgrammingError.
the distance between two points in 3D space expressed in meters.
Calculates the forward azimuth between two points.
If the reference of a point is null it will be assumed to be the same as this instances calculation reference.
the first point
the second point
the type of line along which to calculate the distance (LineType.SHORTEST_DISTANCE if not specified)
the forward azimuth between the two points in degrees
Interpolate a point at the fraction of the segment defined by the two points.
If the reference of the input point(s) is null it will be assumed to be the same as this instance's calculation reference.
the starting point
the end point.
a fraction between 0.0 and 1.0.
the line type along which to compute the point (LineType.SHORTEST_DISTANCE if not specified)
an interpolated point specified with respect to the calculation reference
Computes the point at a given distance and azimuth from the given point.
If the reference of the input point(s) is null it will be assumed to be the same as this instance's calculation reference.
If the distance is negative, this will result in an interpolation in the opposite direction.
the starting point
the distance in meters
the azimuth (this is an angle in degrees)
the line type along which to compute the point (LineType.SHORTEST_DISTANCE if not specified)
an interpolated point specified with respect to the calculation reference
Calculates the shortest distance from point fromPoint
to the line linePointOne-linePointTwo
.
Puts the result in the given point as a side effect, and returns the distance from fromPoint
to that calculated point.
The point from which to calculate the distance to the line.
The first point of the line
The second point of the line
The options for the calculation
If false
, the shortest distance will be calculated for the whole line.
Otherwise it will only be calculated for the line segment linePointOne-linePointTwo
.
Point on the line linePointOne-linePointTwo
that
is calculated to be at the shortest distance from fromPoint
. This point may be clipped onto the
line segment depending on the value of clipToSegment
property in the options
.
The distance to the line (or line segment) in meters
Provides geodesy calculations. Use the factory methods in the GeodesyFactory module to create instances of this interface. For boolean operations on shapes see the ConstructiveGeometryFactory module.