Click or drag to resize
RectangleIFromBounds Method
Creates a new rectangle from the specified bounds.

Namespace: Slash.Math.Geometry.Rectangles
Assembly: Slash.Math (in Slash.Math.dll) Version: 1.0.6018.40177
Syntax
public static RectangleI FromBounds(
	int xMin,
	int yMin,
	int xMax,
	int yMax
)

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: RectangleI
New rectangle with the specified bounds.
Exceptions
ExceptionCondition
ArgumentExceptionThrown if a minimum bound is bigger than the associated maximum bound.
See Also