![]() |
OpenLB 1.8.1
|
Definition of a analytical line embedded in 3D space. More...
#include <line3D.h>
Public Member Functions | |
Line3D ()=default | |
Line3D & | originAt (const Vector< T, 3 > &origin) |
Center the line at the given origin vector. | |
Line3D & | centeredIn (const Cuboid3D< T > &cuboid) |
Center the line relative to the given cuboid. | |
Line3D & | parallelTo (const Vector< T, 3 > &direction) |
Set the direction of the line parallel to a vector. | |
Line3D & | normalTo (const Vector< T, 3 > &normal) |
Calculate the direction vector of the line to be orthogonal to the given normal. | |
bool | isParallelToX () const |
bool | isParallelToY () const |
bool | isParallelToZ () const |
Public Attributes | |
Vector< T, 3 > | origin |
Vector< T, 3 > | u |
Vector< T, 3 > | normal |
Definition of a analytical line embedded in 3D space.
Line3D defines a line using its origin and a direction vector.
|
default |
Line3D< T > & olb::Line3D< T >::centeredIn | ( | const Cuboid3D< T > & | cuboid | ) |
Center the line relative to the given cuboid.
Definition at line 45 of file line3D.hh.
References olb::util::fabs(), olb::Cuboid< T, D >::getDeltaR(), olb::Cuboid< T, D >::getExtent(), and olb::Cuboid< T, D >::getOrigin().
bool olb::Line3D< T >::isParallelToX | ( | ) | const |
Definition at line 103 of file line3D.hh.
References olb::util::dotProduct3D(), and olb::util::nearZero().
bool olb::Line3D< T >::isParallelToY | ( | ) | const |
Definition at line 109 of file line3D.hh.
References olb::util::dotProduct3D(), and olb::util::nearZero().
bool olb::Line3D< T >::isParallelToZ | ( | ) | const |
Definition at line 114 of file line3D.hh.
References olb::util::dotProduct3D(), and olb::util::nearZero().
Line3D< T > & olb::Line3D< T >::normalTo | ( | const Vector< T, 3 > & | normal | ) |
Calculate the direction vector of the line to be orthogonal to the given normal.
Definition at line 75 of file line3D.hh.
References olb::crossProduct(), olb::util::dotProduct3D(), olb::util::nearZero(), olb::normalize(), and OLB_POSTCONDITION.
Line3D< T > & olb::Line3D< T >::originAt | ( | const Vector< T, 3 > & | origin | ) |
Center the line at the given origin vector.
Definition at line 35 of file line3D.hh.
References olb::util::fabs().
Line3D< T > & olb::Line3D< T >::parallelTo | ( | const Vector< T, 3 > & | direction | ) |
Set the direction of the line parallel to a vector.
Definition at line 62 of file line3D.hh.
References olb::crossProduct(), olb::util::dotProduct3D(), olb::util::nearZero(), olb::normalize(), and OLB_POSTCONDITION.
Vector<T,3> olb::Line3D< T >::normal |
Vector<T,3> olb::Line3D< T >::origin |
Vector<T,3> olb::Line3D< T >::u |