After
(637967784888423594)-2,042.zip (637969699845057599)-548.zip
This commit is contained in:
@ -108,8 +108,6 @@ public class Location : Properties.ILocation, IEquatable<Location>
|
||||
{
|
||||
int result;
|
||||
double value;
|
||||
int decimals = 6;
|
||||
int factor = 1000000;
|
||||
double total = width * height;
|
||||
Check(bottom, left, right, top, zCount);
|
||||
double xCenter = left + ((right - left) / 2);
|
||||
@ -118,7 +116,7 @@ public class Location : Properties.ILocation, IEquatable<Location>
|
||||
value = at / total;
|
||||
if (value < 0)
|
||||
value = 3;
|
||||
result = (int)(Math.Round(value, decimals) * factor);
|
||||
result = (int)(Math.Round(value, Stateless.ILocation.Decimals) * Stateless.ILocation.Factor);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user