MEPP2 Project
Namespaces | Functions
ClippingAndIntersection.hpp File Reference
#include "FEVV/Tools/Math/MatrixOperations.hpp"
Include dependency graph for ClippingAndIntersection.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 FEVV
 Interfaces for plugins These interfaces will be used for different plugins.
 
 FEVV::Operators
 
 FEVV::Operators::Geometry
 

Functions

template<typename GeometryTraits >
static bool FEVV::Operators::Geometry::sphere_clip_vector (const typename GeometryTraits::Point &center, double r, const typename GeometryTraits::Point &p, typename GeometryTraits::Vector &v, const GeometryTraits &gt)
 Compute the intersection of a sphere (center + radius) with a ray/line (starting point + direction vector). Sphere equation is given by (x-Cx)^2+(y-Cy)^2+(z-Cz)^2=r^2 Line equation is given by (x, y, z) = p + txV. More...