Game Development Community

Where's the math documentation?

by baylor wetzel · in Torque Game Builder · 05/27/2009 (11:18 pm) · 4 replies

It took me a long time to realize TGB already had functions like max, round and floor. i stumbled over it when i read the PDF manual front to back. The math functions were near the back of the reference list, past the simsets and pick functions but before the debug statements. In 1.7.4, i don't see the entry and it doesn't pull up in a Mozilla search or that search in the top right corner of the docs frame

i *knew* there was a ceiling function but i couldn't remember the name, which made searching hard (i eventually found mCeil in some old code)

Where are these functions now?

#1
05/28/2009 (1:15 am)
Check this link.
#2
05/29/2009 (6:54 am)
That TDN link is missing all the t2d vector math functions.
#3
05/29/2009 (8:41 am)
On the page that links to, the last several functions (1.28-1,36) are vector functions. But you're right that they aren't the functions prefixed with t2d. Odd given that the other vector functions *are* listed in the HTML documentation that comes with the engine. Some of the functions overlap (e.g., t2dVectorDot and VectorDot), some do not (t2dAngleBetween, t2dAngleToPoint, etc.)
#4
05/29/2009 (8:55 am)
My mistake - the vector functions in TDN are 3D vectors so don't work in TGB. So yes, the t2d vector functions are missing