@@ -152,7 +152,7 @@ PBAT_HOST_DEVICE auto PointOnPlane(TMatrixX const& X, TMatrixP const& P, TMatrix
152
152
assert (bIsNormalUnit);
153
153
#endif
154
154
/* *
155
- * Ericson, Christer. Real-time collision detection. Crc Press, 2004. section 5.ScalarType(1)1
155
+ * See \cite ericson2004real section 5.11
156
156
*/
157
157
ScalarType const t = Dot (n, X - P);
158
158
mini::SVector<ScalarType, TMatrixX::kRows > Xplane = X - t * n;
@@ -166,7 +166,7 @@ PBAT_HOST_DEVICE auto PointOnLineSegment(TMatrixX const& X, TMatrixP const& P, T
166
166
using ScalarType = typename TMatrixX::ScalarType;
167
167
using namespace std ;
168
168
/* *
169
- * Ericson, Christer. Real-time collision detection. Crc Press, 2004. section 5.ScalarType(1)2
169
+ * See \cite ericson2004real section 5.12
170
170
*/
171
171
mini::SVector<ScalarType, TMatrixX::kRows > const PQ = Q - P;
172
172
// Project X onto PQ, computing parameterized position R(t) = P + t*(Q � P)
@@ -185,7 +185,7 @@ PointOnAxisAlignedBoundingBox(TMatrixX const& P, TMatrixL const& L, TMatrixU con
185
185
{
186
186
using namespace std ;
187
187
/* *
188
- * Ericson, Christer. Real-time collision detection. Crc Press, 2004. section 5.ScalarType(1)3
188
+ * See \cite ericson2004real section 5.13
189
189
*/
190
190
mini::SVector<typename TMatrixX::ScalarType, TMatrixX::kRows > X = P;
191
191
pbat::common::ForRange<0 , TMatrixX::kRows >(
@@ -204,7 +204,7 @@ UvwPointInTriangle(TMatrixP const& P, TMatrixA const& A, TMatrixB const& B, TMat
204
204
{
205
205
using ScalarType = typename TMatrixP::ScalarType;
206
206
/* *
207
- * Ericson, Christer. Real-time collision detection. Crc Press, 2004. section 5.ScalarType(1)5
207
+ * See \cite ericson2004real section 5.15
208
208
*/
209
209
210
210
// Check if P in vertex region outside A
@@ -310,7 +310,7 @@ PBAT_HOST_DEVICE auto PointInTetrahedron(
310
310
static_assert (kRows == kDims , " This overlap test is specialized for 3D" );
311
311
312
312
/* *
313
- * Ericson, Christer. Real-time collision detection. Crc Press, 2004. section 5.ScalarType(1)6
313
+ * See \cite ericson2004real section 5.16
314
314
*/
315
315
316
316
// Start out assuming point inside all halfspaces, so closest to itself
0 commit comments