LlVecDist

From Second Life Wiki
Revision as of 02:13, 25 January 2007 by Strife Onizuka (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
The correct title of this article is llVecDist. The initial letter is shown capitalized due to technical restrictions.


float llVecDist( vector vec_1, vector vec_2);

  • vec_1 - Any valid vector value
  • vec_2 - Any valid vector value

Specification

Returns the 3D distance between vec_1 and vec_2

Energy: 10.0
Sleep: 0.0
Function ID: 14

Caveats

Examples

<lsl> default {

   state_entry()
   {
       vector input_1 = <1.0,2.0,3.0>;
       vector input_2 = <1.0,2.0,3.0>;
       llSay(0,"The normalize of " + (string)input + " is: "+(string)llVecDist(input_1, input_2) );
   }

} </lsl>

Helper Functions

<lsl> </lsl>

See Also

Notes