Dep/g3d: Remove unused data members from G3D::Ray
This commit is contained in:
@@ -31,3 +31,4 @@ G3D-v9.0 hotfix18.diff - 2024-02-17 - ARM64 support on MSVC
|
||||
G3D-v9.0 hotfix19.diff - 2024-06-09 - clang build fix on windows
|
||||
G3D-v9.0 hotfix20.diff - 2026-05-07 - gcc build fix on windows
|
||||
G3D-v9.0 hotfix21.diff - 2026-05-07 - gcc 16 warning fix
|
||||
G3D-v9.0 hotfix22.diff - 2026-09-06 - Remove unused data members from G3D::Ray
|
||||
|
||||
@@ -34,6 +34,7 @@ private:
|
||||
Vector3 m_invDirection;
|
||||
|
||||
|
||||
#if 0
|
||||
/** The following are for the "ray slope" optimization from
|
||||
"Fast Ray / Axis-Aligned Bounding Box Overlap Tests using Ray Slopes"
|
||||
by Martin Eisemann, Thorsten Grosch, Stefan Müller and Marcus Magnor
|
||||
@@ -48,6 +49,7 @@ private:
|
||||
|
||||
/** Precomputed components */
|
||||
float c_xy, c_xz, c_yx, c_yz, c_zx, c_zy;
|
||||
#endif
|
||||
|
||||
public:
|
||||
/** \param direction Assumed to have unit length */
|
||||
|
||||
@@ -22,6 +22,7 @@ void Ray::set(const Vector3& origin, const Vector3& direction) {
|
||||
|
||||
m_invDirection = Vector3::one() / direction;
|
||||
|
||||
#if 0
|
||||
// ray slope
|
||||
ibyj = m_direction.x * m_invDirection.y;
|
||||
jbyi = m_direction.y * m_invDirection.x;
|
||||
@@ -120,6 +121,7 @@ void Ray::set(const Vector3& origin, const Vector3& direction) {
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user