Difference between revisions of "LlVecMag"

From Second Life Wiki
Jump to: navigation, search
m (LlVecMag moved to LSL llVecMag)
Line 1: Line 1:
{{lowercase|llVecMag}}
+
{{llVecMag
__NOTOC__
+
|func=llCeil
 
+
|func_id=10
{| width="100%"
+
|func_sleep=0.0
|-
+
|func_energy=10.0
|<div id="box">
+
|func_footnote
== [[LSL_Type_float|float]] llVecMag( [[LSL_Type_vector|vector]] vec); ==
+
|p1_type=vector
<div style="padding: 0.5em">
+
|p1_name=vec
* vec - Any valid vector value
+
|p1_desc
</div>
+
|p2_type|p2_name|p2_desc
</div>
+
|p3_type|p3_name|p3_desc
|-
+
|p4_type|p4_name|p4_desc
|
+
|p5_type|p5_name|p5_desc
<div id="box">
+
|p6_type|p6_name|p6_desc
 
+
|p7_type|p7_name|p7_desc
== Specification ==
+
|p8_type|p8_name|p8_desc
<div style="padding: 0.5em">
+
|p9_type|p9_name|p9_desc
Returns the magnitude of vec
+
|p10_type|p10_name|p10_desc
{|  
+
|p11_type|p11_name|p11_desc
|-
+
|p12_type|p12_name|p12_desc
| [[LSL_Energy|Energy]]:
+
|return_type=float
| 10.0
+
|return_text=that is the magnitude of the vector (the distance from vec to <0.0, 0.0, 0.0>).
|-
+
|spec
| [[LSL_Sleep|Sleep]]:
+
|caveats
| 0.0
+
|examples=
|-
+
| [[LSL_Function_ID|Function ID]]:
+
| 12
+
|}
+
</div>
+
</div>
+
|-
+
|
+
<div id="box">
+
 
+
== Caveats ==
+
<div style="padding: 0.5em">
+
</div>
+
</div>
+
 
+
|-
+
|
+
<div id="box">
+
== Examples ==
+
<div style="padding: 0.5em">
+
 
<lsl>
 
<lsl>
 
default {
 
default {
Line 53: Line 33:
 
}
 
}
 
</lsl>
 
</lsl>
</div>
+
|helpers
</div>
+
|related={{LSLG|llRound}}<br/>{{LSLG|llFloor}}
|-
+
|also
|
+
|notes
<div id="box">
+
}}
 
+
== Helper Functions ==
+
<div style="padding: 0.5em">
+
<lsl>
+
</lsl>
+
</div>
+
</div>
+
|-
+
|
+
<div id="box">
+
== See Also ==
+
<div style="padding: 0.5em">
+
</div>
+
</div>
+
|-
+
|
+
<div id="box">
+
== Notes ==
+
<div style="padding: 0.5em">
+
</div>
+
</div>
+
|}
+
  
 
[[Category:LSL_Functions]]
 
[[Category:LSL_Functions]]
 
[[Category:LSL_Math]]
 
[[Category:LSL_Math]]

Revision as of 20:48, 25 January 2007

Template:LlVecMag