Talk:LlVecNorm

From Second Life Wiki
Revision as of 07:16, 10 August 2009 by Zai Lynch (talk | contribs) (Created page with '== minimum magnitude == The vectors passed to llVecNorm() seem to need a minimum magnitude to be calculated correctly. <lsl>default { state_entry(){ llOwnerSay((...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

minimum magnitude

The vectors passed to llVecNorm() seem to need a minimum magnitude to be calculated correctly. <lsl>default {

   state_entry(){
       llOwnerSay((string)llVecNorm(<0.0,0.0,0.0000002>));
       llOwnerSay((string)llVecNorm(<0.0,0.0,0.0000001>));
   }

}</lsl> gives

Object: <0.00000, 0.00000, 1.00000>
Object: <0.00000, 0.00000, 0.00000>

Caveat or bug? --Zai signature.png (talk|contribs) 14:16, 10 August 2009 (UTC)