OpenSextant / geodesy

Geodetic primitive library
Other
22 stars 4 forks source link

[Proposal] getPointInDistance() #6

Closed klmi closed 10 years ago

klmi commented 10 years ago

Hi, just change a project from ant to maven and came along your library.

I'm not that deep into the geodesy topic so I'll simply ask. I'm looking for a function which calculates a point in the distance e.g. public Geodetic2DPoint getPointInDistance(Geodetic2DPoint startPoint, double distance, double angle); Any idea if the lib supports sth similar already or how it could be implemented? Took a closer look at Angel.java but could make it :-/

Can you give me an hint?

King regard

klmi

docjason commented 10 years ago

Look at the Geodetic2DArc class.

This constructor takes a point, distance, and angle.

    public Geodetic2DArc(Geodetic2DPoint point1, double distanceInMeters, Angle forwardAzimuth)

Then call getPoint2() to get the calculated point.