|
From: Mikhail G. <bb...@ma...> - 2004-07-29 12:41:39
|
Thanks for your answer, are there plans to implement operator* for euler&Vec? If so, I can do it when I'll have free time. Otherwise it should be removed from the documentation. kevin meinert wrote: > > 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 >> > > > > > ------------------------------------------------------- > 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 > > |