-
Metaprogramming on "operator-" for example breaks things like
Vec3d vA, vB;
gmtl::length( vA - vB )
That produces the error:
no matching function for call to ‘length(gmtl::VecBase)’
Instead it is...
2009-09-17 21:59:20 UTC by nobody
-
Metaprogramming on "operator-" for example breaks things like
Vec3d vA, vB;
gmtl::length( vA - vB )
That produces the error:
no matching function for call to ‘length(gmtl::VecBase)’
Instead it is...
2009-09-17 21:24:14 UTC by nobody
-
...and the compiler with optimization turned on produces the same code in either case since in eliminates unnecessary temp vars. I checked:
gmtl::Vec3d vec1(1.0, 1.5, -1.0), vec2(1.5, 1.0, -1.0), vec3;
gmtl::cross(vec1, vec2, vec3);
vs
gmtl::Vec3d vec1(1.0, 1.5, -1.0), vec2(1.5, 1.0, -1.0), vec3;
vec3 = gmtl::makeCross(vec1, vec2);
With -O3 in gcc is the same.
2009-09-17 20:40:13 UTC by nobody
-
It looks like maybe the documentation is out of sync with the code
Some versions have it in VecOps.h some in Generate.h some it doesn't exist, and there is only makeCross
WTF.
2009-09-17 20:18:17 UTC by nobody
-
How in god's name is someone supposed to know that they need to include Generate.h to get the FAQ code for cross products to work? And why would this not be in VecOps.h?
gmtl::Vec3f vecA, vecB, crossVec;
crossVec = gmtl::cross( vecA, vecB );
I was beating my head up against the wall for hours first thinking that cross( vec3f, vec3f ) had been removed completely.
Please put some...
2009-09-17 20:09:51 UTC by nobody
-
In whichSide with eps
PlaneSide whichSide ( const Plane& plane, const Point& pt, const DATA_TYPE& eps )
instead of
if ( dist < eps ) return NEG_SIDE;
should be
if ( dist < -eps ) return NEG_SIDE;
because in this case we have right situation: NEG_SIDE for (-infinity, -eps), ON_PLANE for (-eps, +eps) and POS_SIDE for (+eps, +infinity)
2009-07-27 21:58:26 UTC by nobody
-
patrickh added the gmtl-0.5.4-0.6.0.patch.gz file.
2009-03-10 18:38:42 UTC by patrickh
-
patrickh added the gmtl-0.6.0.tar.bz2 file.
2009-03-10 18:22:34 UTC by patrickh
-
patrickh added the gmtl-0.6.0.7z file.
2009-03-10 18:22:34 UTC by patrickh
-
patrickh added the gmtl-0.6.0.tar.gz file.
2009-03-10 18:22:34 UTC by patrickh