LlAngleBetween/de

From Second Life Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Beschreibung

Funktion: float llAngleBetween( rotation a, rotation b );

Gibt eine Gleitkommazahl, welche den Winkel zwischen Rotation a und b darstellt.

• rotation a start rotation
• rotation b end rotation

Beispiele

Siehe auch

Funktionen

•  llRotBetween Berechnet die Rotation zwischen zwei Vektoren

Weiterführende Anmerkungen

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

   return 2 * 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>

Nach JIRA-Issues suchen, die sich hierauf beziehen

Signature

function float llAngleBetween( rotation a, rotation b );
Dieser Artikel war nicht hilfreich für Dich? Vielleicht bringt der zugehörige Artikel im SLinfo Wiki Erleuchtung.