LlAngleBetween/zh-Hant
< LlAngleBetween
Jump to navigation
Jump to search
Revision as of 19: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…")
概要
函式: float llAngleBetween( rotation a, rotation b );範例
參照
函式
• | 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 IssuesSVC-2424 | A | llAngleBetween() is sometimes inaccurate |