 | RectangleIFromBounds Method |
Creates a new rectangle from the specified bounds.
Namespace: Slash.Math.Geometry.RectanglesAssembly: Slash.Math (in Slash.Math.dll) Version: 1.0.6018.40177
Syntaxpublic static RectangleI FromBounds(
int xMin,
int yMin,
int xMax,
int yMax
)
Public Shared Function FromBounds (
xMin As Integer,
yMin As Integer,
xMax As Integer,
yMax As Integer
) As RectangleI
public:
static RectangleI^ FromBounds(
int xMin,
int yMin,
int xMax,
int yMax
)
static member FromBounds :
xMin : int *
yMin : int *
xMax : int *
yMax : int -> RectangleI
Parameters
- xMin
- Type: SystemInt32
Minimum x value. - yMin
- Type: SystemInt32
Minimum y value. - xMax
- Type: SystemInt32
Maximum x value. - yMax
- Type: SystemInt32
Maximum y value.
Return Value
Type:
RectangleINew rectangle with the specified bounds.
ExceptionsException | Condition |
---|
ArgumentException | Thrown if a minimum bound is bigger than the associated maximum bound. |
See Also