thelsdj
23-10-2005 22:01:45
One thing that seems to be missing from the Vector# classes is an easy way to scale the vector, ie something like:
public Vector3 Scale(float/int/double mag)
{
return new Vector3(this.x * mag, this.y * mag, this.z * mag);
}
Also is there a particular reason why the Vectors are limited to float storage rather than double? some people compile Ogre with Ogre::Real as a double so precision is going to be lost somewhere in that case.
public Vector3 Scale(float/int/double mag)
{
return new Vector3(this.x * mag, this.y * mag, this.z * mag);
}
Also is there a particular reason why the Vectors are limited to float storage rather than double? some people compile Ogre with Ogre::Real as a double so precision is going to be lost somewhere in that case.