mirrorAngle(HALF_PI) should be -HALFPI rather than HALF_PI
This commit is contained in:
@@ -169,7 +169,7 @@ public class MathUtil
|
||||
* Returns the mirror angle of the specified angle (assumed to be in [-pi, +pi]).
|
||||
*/
|
||||
public static float mirrorAngle (float a) {
|
||||
return (a > 0f ? FloatMath.PI : -FloatMath.PI) - a;
|
||||
return a + (a > 0f ? -FloatMath.PI : FloatMath.PI);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user