minor performance patch calcAngle
This commit is contained in:
parent
fb9334bf24
commit
a81d1685db
1 changed files with 2 additions and 3 deletions
|
@ -434,8 +434,7 @@ public final class RoutingContext
|
|||
|
||||
double offset = 0.;
|
||||
double s2 = sinp*sinp;
|
||||
double c2 = cosp*cosp;
|
||||
if ( c2 < s2 )
|
||||
if ( s2 > 0.5 )
|
||||
{
|
||||
if ( sinp > 0. )
|
||||
{
|
||||
|
@ -447,7 +446,7 @@ public final class RoutingContext
|
|||
offset = -90.;
|
||||
sinp = cosp;
|
||||
}
|
||||
s2 = c2;
|
||||
s2 = cosp*cosp;
|
||||
}
|
||||
else if ( cosp < 0. )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue