Don't click here unless you want to be banned.

LSL Wiki : ZERO_VECTOR

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are ia360925.us.archive.org
vector ZERO_VECTOR

The vector <0.0, 0.0, 0.0>.

Q: Is there any reason to use <0.0, 0.0, 0.0> over "<0,0,0>"?
A: Either will work. Integers are implicitly cast to floats by the compiler (which will cost you 2 bytes per float -- if you're watching memory, this is an easy fix that could save you many bytes). But really all you need is a zero and a decimal to indicate a float.


Constants
Comments [Hide comments/form]
Actually, I mean to ask whether there is any non-aesthetic reason this LSL-global constant even exists. Is it just consistency with the existance of the not-so-directly-obvious ZERO_ROTATION?
-- IoneLameth (2005-11-09 10:20:24)
don't know. but can't hurt to have it.
-- BlindWanderer (2005-11-10 14:18:38)
Or can it?

"Hey, fellow Linden. Are you going to finish adding multidimensional arrays to LSL?"
"No, sorry... I have to work on ZERO_VECTOR!"

;)
-- CatherineOmega (2005-11-11 08:11:53)
"fellow Linden" ... does that mean you work at the lab :P
-- BlindWanderer (2005-11-20 16:01:43)
Catherine Linden? Hmmm...
-- EepQuirk (2006-02-26 16:04:02)
Attach a comment to this page: