Rect

Overview

Rect is a struct in Aspose.3D FOSS for .NET.

Rect represents a rectangle with position and size, offering a Contains method to test whether a point lies inside it.

This struct provides 2 methods for working with Rect objects in .NET programs. Available methods include: Contains, Rect. All public members are accessible to any .NET application after installing the Aspose.3D FOSS for .NET package. Properties: Bottom, Height, Left, Right, Top, Width, and 2 more.

Properties

NameTypeAccessDescription
XintRead/WriteGets or sets the x.
YintRead/WriteGets or sets the y.
WidthintRead/WriteGets or sets the width.
HeightintRead/WriteGets or sets the height.
LeftintReadGets the left.
RightintReadGets the right.
TopintReadGets the top.
BottomintReadGets the bottom.

Methods

SignatureDescription
Rect(x: int, y: int, width: int, height: int)Initializes a rectangle with the specified x, y position and width, height
Contains(x: int, y: int)Returns true if the point (x, y) is inside the rectangle boundaries

See Also