#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 | |
Vector3d & | operator+= (const Vector3d &other) |
addition | |
Vector3d | operator- (const Vector3d &other) const |
subtraction | |
Vector3d & | operator-= (const Vector3d &other) |
subtraction | |
Vector3d & | operator= (const Vector3d &)=default |
Vector3d & | operator= (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 | |
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
|
default |
|
defaultnoexcept |
cross 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
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