SOFA API  014b24ea
Open source framework for multi-physics simuation
sofa::component::collision::RayTriangleIntersection Class Reference

#include <RayTriangleIntersection.h>

this class computes if a Triangle P intersects a line segment More...

Detailed Description

this class computes if a Triangle P intersects a line segment

Public Member Functions

 RayTriangleIntersection ()
 
 ~RayTriangleIntersection ()
 
bool NewComputation (const sofa::defaulttype::Vector3 &p1, const sofa::defaulttype::Vector3 &p2, const sofa::defaulttype::Vector3 &p3, const sofa::defaulttype::Vector3 &origin, const sofa::defaulttype::Vector3 &direction, SReal &t, SReal &u, SReal &v)
 
bool NewComputation (Triangle *triP, const sofa::defaulttype::Vector3 &origin, const sofa::defaulttype::Vector3 &direction, SReal &t, SReal &u, SReal &v)
 

Constructor details

sofa::component::collision::RayTriangleIntersection::RayTriangleIntersection ( )
sofa::component::collision::RayTriangleIntersection::~RayTriangleIntersection ( )

Function details

bool sofa::component::collision::RayTriangleIntersection::NewComputation ( const sofa::defaulttype::Vector3 &  p1,
const sofa::defaulttype::Vector3 &  p2,
const sofa::defaulttype::Vector3 &  p3,
const sofa::defaulttype::Vector3 &  origin,
const sofa::defaulttype::Vector3 &  direction,
SReal &  t,
SReal &  u,
SReal &  v 
)
bool sofa::component::collision::RayTriangleIntersection::NewComputation ( Triangle triP,
const sofa::defaulttype::Vector3 &  origin,
const sofa::defaulttype::Vector3 &  direction,
SReal &  t,
SReal &  u,
SReal &  v 
)
inline