vtlib library
|
A location is represented as a earth-coordinate point, an elevation, and an orientation. The point is always in Geographic coordinates (Latitude/Longitude, WGS84). It should be converted to and from the actual, desired CRS as appropriate.
Location and view direction are encoded as two 3D points. The first is the location, the second is the "Look At" point. Heading and pitch are implicit in the second point.
The distance between the two points is arbitrary, but it should be neither very small nor very large, to avoid numerical problems.