OpenStudio:utilities
Loading...
Searching...
No Matches
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
 
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
 
std::vector< PointLatLonfromUTM (const std::vector< Point3d > &points) const
 
double height () const
 get height
 
double lat () const
 get lat
 
double lon () const
 get lon
 
double operator- (const PointLatLon &other) const
 point minus another point is distance along geodesic line
 
PointLatLonoperator= (const PointLatLon &other)
 
PointLatLonoperator= (PointLatLon &&other) noexcept
 
bool operator== (const PointLatLon &other) const
 check equality
 
 PointLatLon ()
 default constructor creates point at 0, 0, 0
 
 PointLatLon (const PointLatLon &other)
 
 PointLatLon (double lat, double lon, double height=0)
 constructor with lat, lon, and height
 
 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
 
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
 
std::vector< Point3dtoUTM (const std::vector< PointLatLon > &points) const
 
int utmZone () const
 gets the UTM zone for this point
 
 ~PointLatLon () noexcept
 

Constructor & Destructor Documentation

◆ PointLatLon() [1/4]

openstudio::PointLatLon::PointLatLon ( )

default constructor creates point at 0, 0, 0

◆ PointLatLon() [2/4]

openstudio::PointLatLon::PointLatLon ( double lat,
double lon,
double height = 0 )

constructor with lat, lon, and height

◆ PointLatLon() [3/4]

openstudio::PointLatLon::PointLatLon ( const PointLatLon & other)

◆ PointLatLon() [4/4]

openstudio::PointLatLon::PointLatLon ( PointLatLon && other)
noexcept

◆ ~PointLatLon()

openstudio::PointLatLon::~PointLatLon ( )
noexcept

Member Function Documentation

◆ fromLocalCartesian() [1/2]

PointLatLon openstudio::PointLatLon::fromLocalCartesian ( const Point3d & point) const

converts a Point3d in Local Cartesian coordinate system centered on this to LatLon

◆ fromLocalCartesian() [2/2]

std::vector< PointLatLon > openstudio::PointLatLon::fromLocalCartesian ( const std::vector< Point3d > & points) const

◆ fromUTM() [1/2]

PointLatLon openstudio::PointLatLon::fromUTM ( const Point3d & point) const

converts a Point3d in UTM centered on this to LatLon

◆ fromUTM() [2/2]

std::vector< PointLatLon > openstudio::PointLatLon::fromUTM ( const std::vector< Point3d > & points) const

◆ height()

double openstudio::PointLatLon::height ( ) const

get height

◆ lat()

double openstudio::PointLatLon::lat ( ) const

get lat

◆ lon()

double openstudio::PointLatLon::lon ( ) const

get lon

◆ operator-()

double openstudio::PointLatLon::operator- ( const PointLatLon & other) const

point minus another point is distance along geodesic line

◆ operator=() [1/2]

PointLatLon & openstudio::PointLatLon::operator= ( const PointLatLon & other)

◆ operator=() [2/2]

PointLatLon & openstudio::PointLatLon::operator= ( PointLatLon && other)
noexcept

◆ operator==()

bool openstudio::PointLatLon::operator== ( const PointLatLon & other) const

check equality

◆ toLocalCartesian() [1/2]

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

◆ toLocalCartesian() [2/2]

std::vector< Point3d > openstudio::PointLatLon::toLocalCartesian ( const std::vector< PointLatLon > & points) const

◆ toUTM() [1/2]

Point3d openstudio::PointLatLon::toUTM ( const PointLatLon & point) const

converts a PointLatLon to a Point3d in UTM centered on this

◆ toUTM() [2/2]

std::vector< Point3d > openstudio::PointLatLon::toUTM ( const std::vector< PointLatLon > & points) const

◆ utmZone()

int openstudio::PointLatLon::utmZone ( ) const

gets the UTM zone for this point