Click or drag to resize
RectangleFFromBounds 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 RectangleF FromBounds(
	float xMin,
	float yMin,
	float xMax,
	float yMax
)

Parameters

xMin
Type: SystemSingle
Minimum x value.
yMin
Type: SystemSingle
Minimum y value.
xMax
Type: SystemSingle
Maximum x value.
yMax
Type: SystemSingle
Maximum y value.

Return Value

Type: RectangleF
New rectangle with the specified bounds.
Exceptions
ExceptionCondition
ArgumentExceptionThrown if a minimum bound is bigger than the associated maximum bound.
See Also