Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/vrmedia2/public_html/forums/Sources/Load.php(225) : runtime-created function on line 3
atan2 function definition
forums.vrmedia.it
Welcome, Guest. Please login or register.
March 27, 2017, 07:25:54 PM

Login with username, password and session length
Search:     Advanced search
SMF - Just Installed
1444 Posts in 465 Topics by 370 Members
Latest Member: landiandrea
* Home Help Search Login Register
+  forums.vrmedia.it
|-+  General Category
| |-+  BUGs reporting
| | |-+  atan2 function definition
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: atan2 function definition  (Read 7861 times)
davidtheory
Newbie
*
Offline Offline

Posts: 1


« on: September 19, 2011, 08:46:39 AM »

why this next code:

-----
var x, y, result;
x = -10.0;
y = 10.0;
result = atan2 (y,x);
outputln(result*180.0/3.14159265);
----

gives me:  result = - 45 ? it should be 135. http://www.cplusplus.com/reference/clibrary/cmath/atan2/


EDIT: I forgot to mention I am using XVR Developer Studio. version 2.0.7b


Logged
marcello
Global Moderator
Hero Member
*****
Offline Offline

Posts: 135


« Reply #1 on: September 26, 2011, 12:09:00 AM »

You are right, the latest two builds of engine 0153 have this buggy behaviour.
Next build, released within a few days, will restore the correct behaviour.
Thanks for your report.
Marcello
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.8 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!