-
Notifications
You must be signed in to change notification settings - Fork 202
feat(math): Route game logic math through WWMath with 3-mode deterministic support #2670
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
d7bd992
65fa335
779f714
a344ef2
ddea128
ae08fa9
afe36e5
d05cbba
1856ad9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -248,7 +248,7 @@ struct Coord2D | |
| return x == value && y == value; | ||
| } | ||
|
|
||
| Real length() const { return (Real)sqrt( x*x + y*y ); } | ||
| Real length() const { return (Real)Sqrt( x*x + y*y ); } | ||
| Real lengthSqr() const { return x*x + y*y; } | ||
|
|
||
| void normalize() | ||
|
|
@@ -273,7 +273,7 @@ inline Real Coord2D::toAngle() const | |
| vector.x = x; | ||
| vector.y = y; | ||
|
|
||
| Real dist = (Real)sqrt(vector.x * vector.x + vector.y * vector.y); | ||
| Real dist = (Real)Sqrt(vector.x * vector.x + vector.y * vector.y); | ||
|
|
||
| // normalize | ||
| if (dist == 0.0f) | ||
|
|
@@ -340,7 +340,7 @@ struct ICoord2D | |
| return x == value && y == value; | ||
| } | ||
|
|
||
| Int length() const { return (Int)sqrt( (double)(x*x + y*y) ); } | ||
| Int length() const { return (Int)Sqrt( (double)(x*x + y*y) ); } | ||
| }; | ||
|
|
||
| struct Region2D | ||
|
|
@@ -388,7 +388,7 @@ struct Coord3D | |
| { | ||
| Real x, y, z; | ||
|
|
||
| Real length() const { return (Real)sqrt( x*x + y*y + z*z ); } | ||
| Real length() const { return (Real)Sqrt( x*x + y*y + z*z ); } | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is now calling a
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, intentional. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And |
||
| Real lengthSqr() const { return ( x*x + y*y + z*z ); } | ||
|
|
||
| void normalize() | ||
|
|
@@ -476,7 +476,7 @@ struct ICoord3D | |
| { | ||
| Int x, y, z; | ||
|
|
||
| Int length() const { return (Int)sqrt( (double)(x*x + y*y + z*z) ); } | ||
| Int length() const { return (Int)Sqrt( (double)(x*x + y*y + z*z) ); } | ||
|
|
||
| void zero() | ||
| { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,3 +28,4 @@ Real Cos(Real); | |
| Real Tan(Real); | ||
| Real ACos(Real); | ||
| Real ASin(Real x); | ||
| double Sqrt(double x); | ||
Uh oh!
There was an error while loading. Please reload this page.