36 const Vec3d&
xi, & xi1, & xj, & xj1;
47 EdgeEdgeCCDState(
const Vec3d& i0,
const Vec3d& i1,
const Vec3d& j0,
const Vec3d& j1);
50 const double si()
const 56 const double sj()
const 62 const Vec3d&
pi()
const 68 const Vec3d&
pj()
const 84 return xi + ei *
si();
90 return xj + ej *
sj();
93 void setThickness(
double thickness)
95 m_thickness = thickness;
98 double thickness()
const 103 void setTolerance(
double eps)
125 double m_epsilon = 1e-10;
128 double m_thickness = 0.0016;
163 return a() * c() - b() * b();
167 double computeSi()
const;
170 double computeSj()
const;
173 Vec3d shortestDistanceVector()
const;
const Vec3d ej
vector defining segment j (xj1 - xj)
Vec3d computeWBar2() const
const Vec3d & pj() const
Pj is the closest point on segment xj–xj1 to segment xi–xi1.
const Vec3d & pi() const
Pi is the closest point on segment xi–xi1 to segment xj–xj1.
const Vec3d w
Shortest distance vector between the infinite lines defined by the two segments.
static int testCollision(const EdgeEdgeCCDState &prev, EdgeEdgeCCDState &curr, double &relativeTimeOfImpact)
Performs a collision test based on two given timesteps that store the state of two lines each...
const Vec3d ei
Vectors that represent the edges / line-segments.
Vec3d computePi() const
Pi and Pj are closest points on segments xi–xi1 and xj–xj1 respectively.
const double sj() const
Parameterized position of closest point on segment xj–xj1 to segment xi–xi1.
Vec3d computePj() const
Pi and Pj are closest points on segments xi–xi1 and xj–xj1 respectively.
const double si() const
Parameterized position of closest point on segment xi–xi1 to segment xj–xj1.
const Vec3d w0
vector from first point on segement i to first point on segment j (xj - xi)