mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 14:24:53 +08:00
[csharp] Fixed undefined MathUtils.Atan2Deg when USE_FAST_SIN_COS_ATAN2_APPROXIMATIONS enabled. Closes #2517.
This commit is contained in:
parent
8b59c1083d
commit
527b928db1
@ -78,6 +78,10 @@ namespace Spine {
|
|||||||
return sin[(int)((degrees + 90) * DegToIndex) & SIN_MASK];
|
return sin[(int)((degrees + 90) * DegToIndex) & SIN_MASK];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static public float Atan2Deg (float y, float x) {
|
||||||
|
return Atan2(y, x) * RadDeg;
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>Returns atan2 in radians, faster but less accurate than Math.Atan2. Average error of 0.00231 radians (0.1323
|
/// <summary>Returns atan2 in radians, faster but less accurate than Math.Atan2. Average error of 0.00231 radians (0.1323
|
||||||
/// degrees), largest error of 0.00488 radians (0.2796 degrees).</summary>
|
/// degrees), largest error of 0.00488 radians (0.2796 degrees).</summary>
|
||||||
static public float Atan2 (float y, float x) {
|
static public float Atan2 (float y, float x) {
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
"name": "com.esotericsoftware.spine.spine-csharp",
|
"name": "com.esotericsoftware.spine.spine-csharp",
|
||||||
"displayName": "spine-csharp Runtime",
|
"displayName": "spine-csharp Runtime",
|
||||||
"description": "This plugin provides the spine-csharp core runtime.",
|
"description": "This plugin provides the spine-csharp core runtime.",
|
||||||
"version": "4.2.22",
|
"version": "4.2.23",
|
||||||
"unity": "2018.3",
|
"unity": "2018.3",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Esoteric Software",
|
"name": "Esoteric Software",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user