![]() |
PeriDyno 1.0.0
|
#include <PrimitiveSweep3D.h>
Public Types | |
typedef ::dyno::Vector< Real, 2 > | Coord2D |
typedef ::dyno::Vector< Real, 3 > | Coord3D |
Public Member Functions | |
DYN_FUNC | TPointSweep3D (TPoint3D< Real > &start, TPoint3D< Real > &end) |
DYN_FUNC | TPointSweep3D (const TPointSweep3D &point_sweep) |
DYN_FUNC bool | intersect (const TTriangleSweep3D< Real > &triangle_sweep, typename TTriangle3D< Real >::Param &baryc, Real &t, const Real threshold=Real(0.00001)) const |
Calculate the possible intersection for a moving point and a moving triangle. We assume both the point and the triangle move along a straight line. In case both the point and triangle does not move, it return 1 and t = 1.0;. | |
DYN_FUNC TPoint3D< Real > | interpolate (Real t) const |
Return the intermediate state for a point. | |
Public Attributes | |
TPoint3D< Real > | start_point |
TPoint3D< Real > | end_point |
Definition at line 22 of file PrimitiveSweep3D.h.
typedef ::dyno::Vector<Real, 2> dyno::TPointSweep3D< Real >::Coord2D |
Definition at line 25 of file PrimitiveSweep3D.h.
typedef ::dyno::Vector<Real, 3> dyno::TPointSweep3D< Real >::Coord3D |
Definition at line 26 of file PrimitiveSweep3D.h.
DYN_FUNC dyno::TPointSweep3D< Real >::TPointSweep3D | ( | const TPointSweep3D< Real > & | point_sweep | ) |
DYN_FUNC TPoint3D< Real > dyno::TPointSweep3D< Real >::interpolate | ( | Real | t | ) | const |
Return the intermediate state for a point.
t | A paramenter ranging from 0 to 1 |
Definition at line 59 of file PrimitiveSweep3D.inl.
DYN_FUNC bool dyno::TPointSweep3D< Real >::intersect | ( | const TTriangleSweep3D< Real > & | triangle_sweep, |
typename TTriangle3D< Real >::Param & | baryc, | ||
Real & | t, | ||
const Real | threshold = Real(0.00001) ) const |
Calculate the possible intersection for a moving point and a moving triangle. We assume both the point and the triangle move along a straight line. In case both the point and triangle does not move, it return 1 and t = 1.0;.
triangle_sweep | |
t | |
threshold |
Definition at line 25 of file PrimitiveSweep3D.inl.
TPoint3D<Real> dyno::TPointSweep3D< Real >::end_point |
Definition at line 52 of file PrimitiveSweep3D.h.
TPoint3D<Real> dyno::TPointSweep3D< Real >::start_point |
Definition at line 51 of file PrimitiveSweep3D.h.