 | RectangleFFromBounds 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 RectangleF FromBounds(
float xMin,
float yMin,
float xMax,
float yMax
)
Public Shared Function FromBounds (
xMin As Single,
yMin As Single,
xMax As Single,
yMax As Single
) As RectangleF
public:
static RectangleF^ FromBounds(
float xMin,
float yMin,
float xMax,
float yMax
)
static member FromBounds :
xMin : float32 *
yMin : float32 *
xMax : float32 *
yMax : float32 -> RectangleF
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:
RectangleFNew rectangle with the specified bounds.
ExceptionsException | Condition |
---|
ArgumentException | Thrown if a minimum bound is bigger than the associated maximum bound. |
See Also