GeometricalFunctions.h File Reference

Detailed Description

Utility functions for geometrical calculations.

Author
Klaus Iglberger
Sebastian Eibl sebas.nosp@m.tian.nosp@m..eibl.nosp@m.@fau.nosp@m..de
#include "core/DataTypes.h"
#include "core/math/Limits.h"
#include "core/math/Matrix3.h"
#include "core/math/Vector3.h"

Namespaces

 walberla
 \file TimestepTracker.h \ingroup lbm \author Frederik Hennig frede.nosp@m.rik..nosp@m.henni.nosp@m.g@fa.nosp@m.u.de
 
 walberla::geometry
 

Functions

Geometry functions
void walberla::geometry::getClosestLineBoxPoints (const Vector3< real_t > &p1, const Vector3< real_t > &p2, const Vector3< real_t > &c, const Matrix3< real_t > &R, const Vector3< real_t > &side, Vector3< real_t > &lret, Vector3< real_t > &bret)
 Find the closest points on a box and a line segment. More...
 
void walberla::geometry::getClosestLineSegmentPoints (const Vector3< real_t > &a1, const Vector3< real_t > &a2, const Vector3< real_t > &b1, const Vector3< real_t > &b2, Vector3< real_t > &cp1, Vector3< real_t > &cp2)
 Find the closest points on two line segments. More...
 
void walberla::geometry::intersectLines (const Vector3< real_t > &o1, const Vector3< real_t > &d1, const Vector3< real_t > &o2, const Vector3< real_t > &d2, real_t &s, real_t &t)
 Find the intersection point or the point of the closest approach between two straight. More...
 
Geometry functions
void walberla::geometry::getClosestLineBoxPoints (const Vector3< real_t > &p1, const Vector3< real_t > &p2, const Vector3< real_t > &c, const Matrix3< real_t > &R, const Vector3< real_t > &side, Vector3< real_t > &lret, Vector3< real_t > &bret)
 Find the closest points on a box and a line segment. More...
 
void walberla::geometry::getClosestLineSegmentPoints (const Vector3< real_t > &a1, const Vector3< real_t > &a2, const Vector3< real_t > &b1, const Vector3< real_t > &b2, Vector3< real_t > &cp1, Vector3< real_t > &cp2)
 Find the closest points on two line segments. More...
 
void walberla::geometry::intersectLines (const Vector3< real_t > &o1, const Vector3< real_t > &d1, const Vector3< real_t > &o2, const Vector3< real_t > &d2, real_t &s, real_t &t)
 Find the intersection point or the point of the closest approach between two straight. More...
 
bool walberla::geometry::originInTetrahedron (const Vector3< real_t > &A, const Vector3< real_t > &B, const Vector3< real_t > &C, const Vector3< real_t > &D)
 Estimates whether or not the origin lies within the given tetrahedron. More...
 
bool walberla::geometry::pointInTetrahedron (const Vector3< real_t > &A, const Vector3< real_t > &B, const Vector3< real_t > &C, const Vector3< real_t > &D, const Vector3< real_t > &point)
 Estimates whether or not a given point lies within the given tetrahedron. More...
 
bool walberla::geometry::pointInFrontOfPlane (const Vector3< real_t > &normal, const Vector3< real_t > &pointOnPlane, const Vector3< real_t > &point)
 Estimates whether a given point is in front of a plane. More...
 
Geometry functions
void walberla::geometry::getClosestLineBoxPoints (const Vector3< real_t > &p1, const Vector3< real_t > &p2, const Vector3< real_t > &c, const Matrix3< real_t > &R, const Vector3< real_t > &side, Vector3< real_t > &lret, Vector3< real_t > &bret)
 Find the closest points on a box and a line segment. More...
 
void walberla::geometry::getClosestLineSegmentPoints (const Vector3< real_t > &a1, const Vector3< real_t > &a2, const Vector3< real_t > &b1, const Vector3< real_t > &b2, Vector3< real_t > &cp1, Vector3< real_t > &cp2)
 Find the closest points on two line segments. More...
 
void walberla::geometry::intersectLines (const Vector3< real_t > &o1, const Vector3< real_t > &d1, const Vector3< real_t > &o2, const Vector3< real_t > &d2, real_t &s, real_t &t)
 Find the intersection point or the point of the closest approach between two straight. More...
 
bool walberla::geometry::originInTetrahedron (const Vector3< real_t > &A, const Vector3< real_t > &B, const Vector3< real_t > &C, const Vector3< real_t > &D)
 Estimates whether or not the origin lies within the given tetrahedron. More...
 
bool walberla::geometry::pointInTetrahedron (const Vector3< real_t > &A, const Vector3< real_t > &B, const Vector3< real_t > &C, const Vector3< real_t > &D, const Vector3< real_t > &point)
 Estimates whether or not a given point lies within the given tetrahedron. More...
 
bool walberla::geometry::pointInFrontOfPlane (const Vector3< real_t > &normal, const Vector3< real_t > &pointOnPlane, const Vector3< real_t > &point)
 Estimates whether a given point is in front of a plane. More...