OpenLB 1.7
|
Definition of a analytical line embedded in 2D space. More...
#include <hyperplane2D.h>
Public Member Functions | |
Hyperplane2D ()=default | |
Hyperplane2D & | originAt (const Vector< T, 2 > &origin) |
Center the line at the given origin vector. | |
Hyperplane2D & | centeredIn (const Cuboid2D< T > &cuboid) |
Center the line relative to the given cuboid. | |
Hyperplane2D & | parallelTo (const Vector< T, 2 > &direction) |
Set the direction of the line parallel to a vector. | |
Hyperplane2D & | normalTo (const Vector< T, 2 > &normal) |
Calculate the direction vector of the line to be orthogonal to the given normal. | |
bool | isParallelToX () const |
bool | isParallelToY () const |
Public Attributes | |
Vector< T, 2 > | origin |
Vector< T, 2 > | u |
Vector< T, 2 > | normal |
Definition of a analytical line embedded in 2D space.
Hyperplane2D defines a line using its origin and a direction vector.
Definition at line 37 of file hyperplane2D.h.
|
default |
Hyperplane2D< T > & olb::Hyperplane2D< T >::centeredIn | ( | const Cuboid2D< T > & | cuboid | ) |
Center the line relative to the given cuboid.
Definition at line 44 of file hyperplane2D.hh.
References olb::util::fabs(), olb::Cuboid2D< T >::getDeltaR(), olb::Cuboid2D< T >::getExtent(), and olb::Cuboid2D< T >::getOrigin().
bool olb::Hyperplane2D< T >::isParallelToX | ( | ) | const |
Definition at line 95 of file hyperplane2D.hh.
References olb::util::dotProduct2D(), and olb::util::nearZero().
bool olb::Hyperplane2D< T >::isParallelToY | ( | ) | const |
Definition at line 101 of file hyperplane2D.hh.
References olb::util::dotProduct2D(), and olb::util::nearZero().
Hyperplane2D< T > & olb::Hyperplane2D< T >::normalTo | ( | const Vector< T, 2 > & | normal | ) |
Calculate the direction vector of the line to be orthogonal to the given normal.
Definition at line 70 of file hyperplane2D.hh.
References olb::util::dotProduct2D(), olb::util::nearZero(), olb::normalize(), and OLB_POSTCONDITION.
Hyperplane2D< T > & olb::Hyperplane2D< T >::originAt | ( | const Vector< T, 2 > & | origin | ) |
Center the line at the given origin vector.
Definition at line 35 of file hyperplane2D.hh.
References olb::util::fabs().
Hyperplane2D< T > & olb::Hyperplane2D< T >::parallelTo | ( | const Vector< T, 2 > & | direction | ) |
Set the direction of the line parallel to a vector.
Definition at line 59 of file hyperplane2D.hh.
References olb::util::dotProduct2D(), olb::util::nearZero(), olb::normalize(), and OLB_POSTCONDITION.
Vector<T,2> olb::Hyperplane2D< T >::normal |
Definition at line 40 of file hyperplane2D.h.
Vector<T,2> olb::Hyperplane2D< T >::origin |
Definition at line 38 of file hyperplane2D.h.
Vector<T,2> olb::Hyperplane2D< T >::u |
Definition at line 39 of file hyperplane2D.h.