#include <PointLatLon.hpp>
Public Member Functions | |
PointLatLon | fromLocalCartesian (const Point3d &point) const |
converts a Point3d in Local Cartesian coordinate system centered on this to LatLon More... | |
std::vector< PointLatLon > | fromLocalCartesian (const std::vector< Point3d > &points) const |
PointLatLon | fromUTM (const Point3d &point) const |
converts a Point3d in UTM centered on this to LatLon More... | |
std::vector< PointLatLon > | fromUTM (const std::vector< Point3d > &points) const |
double | height () const |
get height More... | |
double | lat () const |
get lat More... | |
double | lon () const |
get lon More... | |
double | operator- (const PointLatLon &other) const |
point minus another point is distance along geodesic line More... | |
PointLatLon & | operator= (const PointLatLon &other) |
PointLatLon & | operator= (PointLatLon &&other) noexcept |
bool | operator== (const PointLatLon &other) const |
check equality More... | |
PointLatLon () | |
default constructor creates point at 0, 0, 0 More... | |
PointLatLon (double lat, double lon, double height=0) | |
constructor with lat, lon, and height More... | |
PointLatLon (const PointLatLon &other) | |
PointLatLon (PointLatLon &&other) noexcept | |
Point3d | toLocalCartesian (const PointLatLon &point) const |
converts a PointLatLon to a Point3d in a Local Cartesian frame centered on this with y oriented North and z oriented up More... | |
std::vector< Point3d > | toLocalCartesian (const std::vector< PointLatLon > &points) const |
Point3d | toUTM (const PointLatLon &point) const |
converts a PointLatLon to a Point3d in UTM centered on this More... | |
std::vector< Point3d > | toUTM (const std::vector< PointLatLon > &points) const |
int | utmZone () const |
gets the UTM zone for this point More... | |
~PointLatLon () noexcept | |
openstudio::PointLatLon::PointLatLon | ( | ) |
default constructor creates point at 0, 0, 0
openstudio::PointLatLon::PointLatLon | ( | double | lat, |
double | lon, | ||
double | height = 0 |
||
) |
constructor with lat, lon, and height
openstudio::PointLatLon::PointLatLon | ( | const PointLatLon & | other | ) |
|
noexcept |
|
noexcept |
PointLatLon openstudio::PointLatLon::fromLocalCartesian | ( | const Point3d & | point | ) | const |
converts a Point3d in Local Cartesian coordinate system centered on this to LatLon
std::vector<PointLatLon> openstudio::PointLatLon::fromLocalCartesian | ( | const std::vector< Point3d > & | points | ) | const |
PointLatLon openstudio::PointLatLon::fromUTM | ( | const Point3d & | point | ) | const |
converts a Point3d in UTM centered on this to LatLon
std::vector<PointLatLon> openstudio::PointLatLon::fromUTM | ( | const std::vector< Point3d > & | points | ) | const |
double openstudio::PointLatLon::height | ( | ) | const |
get height
double openstudio::PointLatLon::lat | ( | ) | const |
get lat
double openstudio::PointLatLon::lon | ( | ) | const |
get lon
double openstudio::PointLatLon::operator- | ( | const PointLatLon & | other | ) | const |
point minus another point is distance along geodesic line
PointLatLon& openstudio::PointLatLon::operator= | ( | const PointLatLon & | other | ) |
|
noexcept |
bool openstudio::PointLatLon::operator== | ( | const PointLatLon & | other | ) | const |
check equality
Point3d openstudio::PointLatLon::toLocalCartesian | ( | const PointLatLon & | point | ) | const |
converts a PointLatLon to a Point3d in a Local Cartesian frame centered on this with y oriented North and z oriented up
std::vector<Point3d> openstudio::PointLatLon::toLocalCartesian | ( | const std::vector< PointLatLon > & | points | ) | const |
Point3d openstudio::PointLatLon::toUTM | ( | const PointLatLon & | point | ) | const |
converts a PointLatLon to a Point3d in UTM centered on this
std::vector<Point3d> openstudio::PointLatLon::toUTM | ( | const std::vector< PointLatLon > & | points | ) | const |
int openstudio::PointLatLon::utmZone | ( | ) | const |
gets the UTM zone for this point