OpenStudio:utilities
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | List of all members
openstudio::PointLatLon Class Reference

#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< PointLatLonfromLocalCartesian (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< PointLatLonfromUTM (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...
 
PointLatLonoperator= (const PointLatLon &other)
 
PointLatLonoperator= (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< Point3dtoLocalCartesian (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< Point3dtoUTM (const std::vector< PointLatLon > &points) const
 
int utmZone () const
 gets the UTM zone for this point More...
 
 ~PointLatLon () noexcept
 

Constructor & Destructor Documentation

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)
openstudio::PointLatLon::PointLatLon ( PointLatLon &&  other)
noexcept
openstudio::PointLatLon::~PointLatLon ( )
noexcept

Member Function Documentation

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)
PointLatLon& openstudio::PointLatLon::operator= ( 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