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

#include <Vector3d.hpp>

Public Member Functions

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

Constructor & Destructor Documentation

◆ Vector3d() [1/4]

openstudio::Vector3d::Vector3d ( )

default constructor creates vector with 0, 0, 0

◆ Vector3d() [2/4]

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

constructor with x, y, z

◆ Vector3d() [3/4]

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

◆ Vector3d() [4/4]

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

Member Function Documentation

◆ cross()

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

cross product with another Vector3d

◆ dot()

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

dot product with another Vector3d

◆ length()

double openstudio::Vector3d::length ( ) const

get length

◆ normalize()

bool openstudio::Vector3d::normalize ( )

normalize to one

◆ operator!=()

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

check inequality

◆ operator+()

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

addition

◆ operator+=()

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

addition

◆ operator-()

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

subtraction

◆ operator-=()

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

subtraction

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ operator==()

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

check equality

◆ orthogonalLeft()

Vector3d openstudio::Vector3d::orthogonalLeft ( ) const

orthogonal left

◆ orthogonalRight()

Vector3d openstudio::Vector3d::orthogonalRight ( ) const

orthogonal right

◆ reverseVector()

Vector3d openstudio::Vector3d::reverseVector ( ) const

get a vector which is the reverse of this

◆ setLength()

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

set length

◆ vector()

Vector openstudio::Vector3d::vector ( ) const

get the Vector directly

◆ x()

double openstudio::Vector3d::x ( ) const

get x

◆ y()

double openstudio::Vector3d::y ( ) const

get y

◆ z()

double openstudio::Vector3d::z ( ) const

get z