Move const usage out of Shared
This commit is contained in:
		| @ -31,15 +31,15 @@ public class Location : Properties.ILocation, IEquatable<Location> | ||||
|         Stateless.Methods.Location.Check(bottom, left, normalizedPixelPercentage, right, top, zCount: 1); | ||||
|     } | ||||
|  | ||||
|     public Location(double confidence, int height, Location location, int width, int zCount) : | ||||
|         this(location.Bottom, confidence, location.Left, Stateless.Methods.Location.GetNormalizedPixelPercentage(location.Bottom, height, location.Left, location.Right, location.Top, width, zCount), location.Right, location.Top) => | ||||
|     public Location(double confidence, int height, Location location, int locationDigits, int locationFactor, int width, int zCount) : | ||||
|         this(location.Bottom, confidence, location.Left, Stateless.Methods.Location.GetNormalizedPixelPercentage(location.Bottom, height, location.Left, locationDigits, locationFactor, location.Right, location.Top, width, zCount), location.Right, location.Top) => | ||||
|         Stateless.Methods.Location.Check(_Bottom, _Left, _NormalizedPixelPercentage, _Right, _Top, zCount); | ||||
|  | ||||
|     public Location(int bottom, double confidence, int height, int left, int right, int top, int width, int zCount) : | ||||
|         this(bottom, confidence, left, Stateless.Methods.Location.GetNormalizedPixelPercentage(bottom, height, left, right, top, width, zCount), right, top) => | ||||
|     public Location(int bottom, double confidence, int height, int left, int locationDigits, int locationFactor, int right, int top, int width, int zCount) : | ||||
|         this(bottom, confidence, left, Stateless.Methods.Location.GetNormalizedPixelPercentage(bottom, height, left, locationDigits, locationFactor, right, top, width, zCount), right, top) => | ||||
|         Stateless.Methods.Location.Check(_Bottom, height, _Left, _NormalizedPixelPercentage, _Right, _Top, width, zCount); | ||||
|  | ||||
|     public Location(double confidence, int factor, int height, Location location, int width, int zCount) | ||||
|     public Location(double confidence, int factor, int height, Location location, int locationDigits, int locationFactor, int width, int zCount) | ||||
|     { | ||||
|         int x = (location.Right - location.Left) / factor; | ||||
|         int y = (location.Bottom - location.Top) / factor; | ||||
| @ -47,7 +47,7 @@ public class Location : Properties.ILocation, IEquatable<Location> | ||||
|         int left = Math.Max(location.Left - x, 0); | ||||
|         int right = Math.Min(location.Right + x, width); | ||||
|         int top = Math.Max(location.Top - y, 0); | ||||
|         int normalizedPixelPercentage = Stateless.Methods.Location.GetNormalizedPixelPercentage(location.Bottom, height, location.Left, location.Right, location.Top, width, zCount); | ||||
|         int normalizedPixelPercentage = Stateless.Methods.Location.GetNormalizedPixelPercentage(location.Bottom, height, location.Left, locationDigits, locationFactor, location.Right, location.Top, width, zCount); | ||||
|         Stateless.Methods.Location.Check(bottom, left, _NormalizedPixelPercentage, right, top, zCount); | ||||
|         _Confidence = confidence; | ||||
|         _Bottom = bottom; | ||||
|  | ||||
		Reference in New Issue
	
	Block a user