/*@brief Return the vector scaled by s */ public static void Mult( float s, ref btVector3 v, out btVector3 result ) { v.Mult( s, out result ); }
/*@brief Return a rotated version of this vector @param wAxis The axis to rotate about @param angle The angle to rotate by */ public void rotate( ref btVector3 wAxis, float angle, out btVector3 result ) { btVector3 o; wAxis.Mult( wAxis.dot( ref this ), out o ); btVector3 _x; this.Sub( ref o, out _x ); btVector3 _y; wAxis.cross( ref this, out _y ); btVector3 tmp; btVector3 tmp2; _x.Mult( btScalar.btCos( angle ), out tmp ); o.Add( ref tmp, out tmp2 ); _y.Mult( btScalar.btSin( angle ), out tmp ); tmp2.Add( ref tmp, out result ); }