Class for orthographic projection of ball surface. More...
#include <OrthoProjection.h>
Public Member Functions | |
OrthoProjection (geo::Point center, double radius) | |
FlatPoint | project (double lat, double lon) |
Project geospatial point onto plane. | |
FlatPoint | project (geo::Point const &p) |
Project geospatial point onto plane. | |
geo::Point | unproject (double x, double y) |
Transform point on a plane to a geospatial point that would be projected on it. | |
geo::Point | unproject (FlatPoint const &p) |
Transform point on a plane to a geospatial point that would be projected on it. | |
virtual | ~OrthoProjection () |
Class for orthographic projection of ball surface.
All angles are in degrees.
Definition at line 21 of file OrthoProjection.h.
proj::OrthoProjection::OrthoProjection | ( | geo::Point | center, |
double | radius | ||
) |
Definition at line 14 of file OrthoProjection.cpp.
proj::OrthoProjection::~OrthoProjection | ( | ) | [virtual] |
Definition at line 41 of file OrthoProjection.cpp.
FlatPoint proj::OrthoProjection::project | ( | double | lat, |
double | lon | ||
) | [virtual] |
Project geospatial point onto plane.
lat | latitude of projected point |
lon | longitude of projected point |
Implements proj::MapProjection.
Definition at line 21 of file OrthoProjection.cpp.
FlatPoint proj::OrthoProjection::project | ( | geo::Point const & | p | ) | [virtual] |
Project geospatial point onto plane.
p | point to project |
Reimplemented from proj::MapProjection.
Definition at line 50 of file OrthoProjection.cpp.
geo::Point proj::OrthoProjection::unproject | ( | double | x, |
double | y | ||
) | [virtual] |
Transform point on a plane to a geospatial point that would be projected on it.
x | the x coordinate of point |
y | the y coordinate of point |
Implements proj::MapProjection.
Definition at line 30 of file OrthoProjection.cpp.
geo::Point proj::OrthoProjection::unproject | ( | FlatPoint const & | p | ) | [virtual] |
Transform point on a plane to a geospatial point that would be projected on it.
p | the point |
Reimplemented from proj::MapProjection.
Definition at line 55 of file OrthoProjection.cpp.