#include <Transformation.hpp>
Public Member Functions | |
| EulerAngles | eulerAngles () const |
| get the Euler angles for the transformation, does not include translation | |
| Transformation | inverse () const |
| returns a transformation which is the inverse of this | |
| Matrix | matrix () const |
| get the matrix representation directly | |
| BoundingBox | operator* (const BoundingBox &boundingBox) const |
| apply the transformation to the bounding box | |
| Plane | operator* (const Plane &plane) const |
| apply the transformation to the plane | |
| Point3d | operator* (const Point3d &point) const |
| apply the transformation to the point | |
| std::vector< Point3d > | operator* (const std::vector< Point3d > &points) const |
| apply the transformation to a vector of points | |
| std::vector< Vector3d > | operator* (const std::vector< Vector3d > &vectors) const |
| apply the transformation to a vector of vector | |
| Transformation | operator* (const Transformation &other) const |
| apply the transformation to the other transformation | |
| Vector3d | operator* (const Vector3d &vector) const |
| apply the transformation to the vector | |
| Transformation & | operator= (const Transformation &)=default |
| Transformation & | operator= (Transformation &&) noexcept=default |
| Matrix | rotationMatrix () const |
| get the rotation matrix for the transformation, does not include translation | |
| Transformation () | |
| default constructor creates identity transformation | |
| Transformation (const Matrix &matrix) | |
| constructor from storage, asserts matrix is 4x4 | |
| Transformation (const Transformation &other)=default | |
| Transformation (const Vector &vector) | |
| constructor from storage, asserts vector is size 16 | |
| Transformation (Transformation &&other) noexcept=default | |
| Vector3d | translation () const |
| get the translation for the transformation, does not include rotation | |
| Vector | vector () const |
| get the vector representation directly | |
Static Public Member Functions | |
| static Transformation | alignFace (const std::vector< Point3d > &vertices) |
| transforms face coordinates to regular system, face normal will be z' will try to align y' with z, but if that fails will align y' with y face origin will be minimum point in x', y' and z'=0 will return identity transformation if cannot compute plane for vertices | |
| static Transformation | alignZPrime (const Vector3d &zPrime) |
| transforms system with z' to regular system will try to align y' with z, but if that fails will align y' with y | |
| static Transformation | rotation (const EulerAngles &angles) |
| rotation specified by Euler angles | |
| static Transformation | rotation (const Point3d &origin, const Vector3d &axis, double radians) |
| rotation about point defined by axis and angle (radians) | |
| static Transformation | rotation (const Vector3d &axis, double radians) |
| rotation about origin defined by axis and angle (radians) | |
| static Transformation | translation (const Vector3d &translation) |
| translation along vector | |
| openstudio::Transformation::Transformation | ( | ) |
default constructor creates identity transformation
| openstudio::Transformation::Transformation | ( | const Matrix & | matrix | ) |
constructor from storage, asserts matrix is 4x4
| openstudio::Transformation::Transformation | ( | const Vector & | vector | ) |
constructor from storage, asserts vector is size 16
|
default |
|
defaultnoexcept |
|
static |
transforms face coordinates to regular system, face normal will be z' will try to align y' with z, but if that fails will align y' with y face origin will be minimum point in x', y' and z'=0 will return identity transformation if cannot compute plane for vertices
|
static |
transforms system with z' to regular system will try to align y' with z, but if that fails will align y' with y
| EulerAngles openstudio::Transformation::eulerAngles | ( | ) | const |
get the Euler angles for the transformation, does not include translation
| Transformation openstudio::Transformation::inverse | ( | ) | const |
returns a transformation which is the inverse of this
| Matrix openstudio::Transformation::matrix | ( | ) | const |
get the matrix representation directly
| BoundingBox openstudio::Transformation::operator* | ( | const BoundingBox & | boundingBox | ) | const |
apply the transformation to the bounding box
apply the transformation to the plane
apply the transformation to the point
| std::vector< Point3d > openstudio::Transformation::operator* | ( | const std::vector< Point3d > & | points | ) | const |
apply the transformation to a vector of points
| std::vector< Vector3d > openstudio::Transformation::operator* | ( | const std::vector< Vector3d > & | vectors | ) | const |
apply the transformation to a vector of vector
| Transformation openstudio::Transformation::operator* | ( | const Transformation & | other | ) | const |
apply the transformation to the other transformation
apply the transformation to the vector
|
default |
|
defaultnoexcept |
|
static |
rotation specified by Euler angles
|
static |
rotation about point defined by axis and angle (radians)
|
static |
rotation about origin defined by axis and angle (radians)
| Matrix openstudio::Transformation::rotationMatrix | ( | ) | const |
get the rotation matrix for the transformation, does not include translation
| Vector3d openstudio::Transformation::translation | ( | ) | const |
get the translation for the transformation, does not include rotation
|
static |
translation along vector
| Vector openstudio::Transformation::vector | ( | ) | const |
get the vector representation directly