Rect

Overview

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

Rect.Rect initializes a rectangle with the given X, Y, width, and height.

Properties

NameTypeAccessDescription
XintRead/WriteGets or sets the horizontal coordinate of the rectangle’s left edge
YintRead/WriteGets or sets the vertical coordinate of the rectangle’s top edge
WidthintRead/WriteGets or sets the rectangle’s width
HeightintRead/Write
LeftintReadGets the X coordinate of the rectangle’s left side
RightintRead
TopintReadGets the Y coordinate of the rectangle’s top side
BottomintRead

Methods

SignatureDescription
Rect(x: int, y: int, width: int, height: int)Initializes a rectangle with the given X, Y, width, and height
Contains(x: int, y: int)Returns true if the point (x, y) lies within the rectangle bounds

See Also