|
From: kevin m. <ke...@su...> - 2004-07-28 18:43:21
|
most likely that operation is undefined. i.e. there is no xform() or operator* for Euler/vec try matrix or quat. remember you can convert euler to matrix newvec = gmtl::xform( gmtl::makeRot<gmtl::Matrix44f>( gmtl::EulerAngle( 4,5,6 ) ), oldvec ); try that... I'm wondering if we should add a vec operator to the AxisAngle class that returns a pointer to the internal vec memory - since the vector part is in yzw, we'd cast the &mData[1] to a Vec3f* *--*---*---*----*-----*------*------*-----*----*---*---*--* Kevin Meinert /_/ home - http://www.vrsource.org/~kevin \ / music - http://www.subatomicglue.com \/ __ \/ \__ \_\ > I tried to rotate a vector as > described in FAQ, i.e. multiply it > by rotational datatype(EulerAngle), > but program does not compile. > Is documentation outdated or this is > not implemented? > Here's my test program: > > #include <gmtl/gmtl.h> > #include <iostream> > > int main( void ) > { > gmtl::EulerAngleXYZf > ang(gmtl::Math::deg2Rad(1.0f), 0.0, > 0.0); > gmtl::Vec3f vec(1.0, 0.0, 0.0); > std::cout << vec << std::endl; > vec = vec*ang; > std::cout << vec << std::endl; > } > > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click > _______________________________________________ > ggt-devel mailing list > ggt...@li... > https://lists.sourceforge.net/lists/listinfo/ggt-devel > |