OpenStudio:utilities
Loading...
Searching...
No Matches
openstudio::Point3d Class Reference

#include <Point3d.hpp>

Public Member Functions

bool operator!= (const Point3d &other) const
 check inequality
 
Point3d operator+ (const Vector3d &vec) const
 point plus a vector is a new point
 
Point3doperator+= (const Vector3d &vec)
 point plus a vector is a new point
 
Vector3d operator- (const Point3d &other) const
 point minus another point is a vector
 
Point3doperator= (const Point3d &)=default
 
Point3doperator= (Point3d &&) noexcept=default
 
bool operator== (const Point3d &other) const
 check equality
 
 Point3d ()
 default constructor creates point at 0, 0, 0
 
 Point3d (const Point3d &other)=default
 
 Point3d (double x, double y, double z)
 constructor with x, y, z
 
 Point3d (Point3d &&other) noexcept=default
 
double x () const
 get x
 
double y () const
 get y
 
double z () const
 get z
 

Constructor & Destructor Documentation

◆ Point3d() [1/4]

openstudio::Point3d::Point3d ( )

default constructor creates point at 0, 0, 0

◆ Point3d() [2/4]

openstudio::Point3d::Point3d ( double x,
double y,
double z )

constructor with x, y, z

◆ Point3d() [3/4]

openstudio::Point3d::Point3d ( const Point3d & other)
default

◆ Point3d() [4/4]

openstudio::Point3d::Point3d ( Point3d && other)
defaultnoexcept

Member Function Documentation

◆ operator!=()

bool openstudio::Point3d::operator!= ( const Point3d & other) const

check inequality

◆ operator+()

Point3d openstudio::Point3d::operator+ ( const Vector3d & vec) const

point plus a vector is a new point

◆ operator+=()

Point3d & openstudio::Point3d::operator+= ( const Vector3d & vec)

point plus a vector is a new point

◆ operator-()

Vector3d openstudio::Point3d::operator- ( const Point3d & other) const

point minus another point is a vector

◆ operator=() [1/2]

Point3d & openstudio::Point3d::operator= ( const Point3d & )
default

◆ operator=() [2/2]

Point3d & openstudio::Point3d::operator= ( Point3d && )
defaultnoexcept

◆ operator==()

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

check equality

◆ x()

double openstudio::Point3d::x ( ) const

get x

◆ y()

double openstudio::Point3d::y ( ) const

get y

◆ z()

double openstudio::Point3d::z ( ) const

get z