Range
This commit is contained in:
@ -74,12 +74,12 @@ internal abstract class Mapping
|
||||
return new(id, normalizedPixelPercentage, mappingCollection);
|
||||
}
|
||||
|
||||
internal static int GetAreaPermille(int bottom, int height, int left, int right, int top, int width)
|
||||
internal static int GetAreaPermille(int faceAreaPermille, int bottom, int height, int left, int right, int top, int width)
|
||||
{
|
||||
int result;
|
||||
double area = width * height;
|
||||
double locationArea = (right - left) * (bottom - top);
|
||||
result = (int)Math.Round(locationArea / area * 1000, 0);
|
||||
result = (int)Math.Round(locationArea / area * faceAreaPermille, 0);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user