LlAngleBetween/zh-Hant

From Second Life Wiki
< LlAngleBetween
Revision as of 20:27, 7 May 2011 by Blackcan Babii (talk | contribs) (Created page with "{{Issues/SVC-2424}}{{LSL_Function/zh-Hant |func_id=174|func_sleep=0.0|func_energy=10.0 |func=llAngleBetween|sort=AngleBetween |return_type=float |p1_type=rotation|p1_name=a|p1_de…")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

概要

函式: float llAngleBetween( rotation a, rotation b );
174 函式ID
0.0 延遲
10.0 能量

回傳一個float為ab之間的角度。

• rotation a start rotation
• rotation b end rotation

注意事項

Important Issues

~ All Issues ~ Search JIRA for related Bugs
   llAngleBetween() is sometimes inaccurate

範例

參照

函式

•  llRotBetween
•  llRot2Angle Similar functionality used for the Axis-Angle format

Deep Notes

<lsl>float AngleBetween(rotation a, rotation b) {

   return 2.0 * llAcos((a.x * b.x + a.y * b.y + a.z * b.z + a.s * b.s)
              / llSqrt((a.x * a.x + a.y * a.y + a.z * a.z + a.s * a.s)
                     * (b.x * b.x + b.y * b.y + b.z * b.z + b.s * b.s)));

}</lsl>

All Issues

~ Search JIRA for related Issues
   llAngleBetween() is sometimes inaccurate