Missing Vector3 members?

WarehouseJim

09-03-2011 14:29:18

I was looking at http://www.ogre3d.org/docs/api/html/classOgre_1_1Vector3.html and it mentions some members that don't appear to be in the Mogre version of Vector3, most notably Vector3.Distance and Vector3.SquaredDistance (but there may be more).

Is this a bug?

ianhfar

09-03-2011 14:34:20

the following properties are what you are looking for

Length
SquaredLength

WarehouseJim

09-03-2011 15:24:45

I know I could use them, but they are separate functions and I assume that doing (vectorA-vectorB).Length creates an extra object on its way to finding the answer to vectorA.Distance(vectorB).

Also missing I've noticed is Vector3.AngleBetween(Vector3 dest).