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

#include <Vector3d.hpp>

Public Member Functions

Vector3d cross (const Vector3d &other) const
 cross product with another Vector3d More...
 
double dot (const Vector3d &other) const
 dot product with another Vector3d More...
 
double length () const
 get length More...
 
bool normalize ()
 normalize to one More...
 
bool operator!= (const Vector3d &other) const
 check inequality More...
 
Vector3d operator+ (const Vector3d &other) const
 addition More...
 
Vector3doperator+= (const Vector3d &other)
 addition More...
 
Vector3d operator- (const Vector3d &other) const
 subtraction More...
 
Vector3doperator-= (const Vector3d &other)
 subtraction More...
 
Vector3doperator= (const Vector3d &)=default
 
Vector3doperator= (Vector3d &&) noexcept=default
 
bool operator== (const Vector3d &other) const
 check equality More...
 
Vector3d orthogonalLeft () const
 orthogonal left More...
 
Vector3d orthogonalRight () const
 orthogonal right More...
 
Vector3d reverseVector () const
 get a vector which is the reverse of this More...
 
bool setLength (double newLength)
 set length More...
 
Vector vector () const
 get the Vector directly More...
 
 Vector3d ()
 default constructor creates vector with 0, 0, 0 More...
 
 Vector3d (double x, double y, double z)
 constructor with x, y, z More...
 
 Vector3d (const Vector3d &other)=default
 
 Vector3d (Vector3d &&other) noexcept=default
 
double x () const
 get x More...
 
double y () const
 get y More...
 
double z () const
 get z More...
 

Constructor & Destructor Documentation

openstudio::Vector3d::Vector3d ( )

default constructor creates vector with 0, 0, 0

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

constructor with x, y, z

openstudio::Vector3d::Vector3d ( const Vector3d other)
default
openstudio::Vector3d::Vector3d ( Vector3d &&  other)
defaultnoexcept

Member Function Documentation

Vector3d openstudio::Vector3d::cross ( const Vector3d other) const

cross product with another Vector3d

double openstudio::Vector3d::dot ( const Vector3d other) const

dot product with another Vector3d

double openstudio::Vector3d::length ( ) const

get length

bool openstudio::Vector3d::normalize ( )

normalize to one

bool openstudio::Vector3d::operator!= ( const Vector3d other) const

check inequality

Vector3d openstudio::Vector3d::operator+ ( const Vector3d other) const

addition

Vector3d& openstudio::Vector3d::operator+= ( const Vector3d other)

addition

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

subtraction

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

subtraction

Vector3d& openstudio::Vector3d::operator= ( const Vector3d )
default
Vector3d& openstudio::Vector3d::operator= ( Vector3d &&  )
defaultnoexcept
bool openstudio::Vector3d::operator== ( const Vector3d other) const

check equality

Vector3d openstudio::Vector3d::orthogonalLeft ( ) const

orthogonal left

Vector3d openstudio::Vector3d::orthogonalRight ( ) const

orthogonal right

Vector3d openstudio::Vector3d::reverseVector ( ) const

get a vector which is the reverse of this

bool openstudio::Vector3d::setLength ( double  newLength)

set length

Vector openstudio::Vector3d::vector ( ) const

get the Vector directly

double openstudio::Vector3d::x ( ) const

get x

double openstudio::Vector3d::y ( ) const

get y

double openstudio::Vector3d::z ( ) const

get z