Click or drag to resize
DigitalRuneRectangleShape Constructor (Single, Single)
Initializes a new instance of the RectangleShape class with the given width and height.

Namespace: DigitalRune.Geometry.Shapes
Assembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax
public RectangleShape(
	float widthX,
	float widthY
)

Parameters

widthX
Type: SystemSingle
The width along the x-axis.
widthY
Type: SystemSingle
The width along the y-axis.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionwidthX is negative.
ArgumentOutOfRangeExceptionwidthY is negative.
See Also