LlAtan2/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 llAtan2( float y, float x );

gibt den "Wikipedia logo"arctangent2 von y, x.

• float y
• float x

Ähnlich dem arctangent(y/x) außer dass es die Vorzeichen von x & y nutzt um den Quadrant zu berechnen. Gibt Null zurück falls x und y Null sind.

Beispiele

<lsl>default {

 state_entry()
 {
   float num1 = llFrand(100.0);
   float num2 = llFrand(100.0);
   llOwnerSay("y = " + (string)num1);
   llOwnerSay("x = " + (string)num2);
   llOwnerSay("The arctangent of y divided by x is " + (string)llAtan2(num1, num2));
 }
}</lsl>

Siehe auch

Funktionen

• llSin llAsin Sinus und Arkussinus
• llCos llAcos Cosinus und Arkuscosinus
• llTan llAtan2 Tangens und Arkustangens

Artikel

•  "Wikipedia logo"Atan2
•  "Wikipedia logo"Arkusfunktion

Weiterführende Anmerkungen

Nach JIRA-Issues suchen, die sich hierauf beziehen

Signature

function float llAtan2( float y, float x );
Dieser Artikel war nicht hilfreich für Dich? Vielleicht bringt der zugehörige Artikel im SLinfo Wiki Erleuchtung.