RelativeRectangle
Overview
RelativeRectangle is a struct in Aspose.3D FOSS for .NET.
RelativeRectangle.RelativeRectangle creates a rectangle with given left, top, width, height offsets.
This struct provides 4 methods for working with RelativeRectangle objects in .NET programs.
Available methods include: FromScale, RelativeRectangle, ToAbsolute, ToString.
All public members are accessible to any .NET application after installing the Aspose.3D FOSS for .NET package.
Properties: OffsetHeight, OffsetWidth, OffsetX, OffsetY, ScaleHeight, ScaleWidth, and 2 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
ScaleX | float | Read/Write | Gets or sets the scale x. |
ScaleY | float | Read/Write | Gets or sets the scale y. |
ScaleWidth | float | Read/Write | Gets or sets the scale width. |
ScaleHeight | float | Read/Write | Gets or sets the scale height. |
OffsetX | int | Read/Write | Gets or sets the offset x. |
OffsetY | int | Read/Write | Gets or sets the offset y. |
OffsetWidth | int | Read/Write | Gets or sets the offset width. |
OffsetHeight | int | Read/Write | Gets or sets the offset height. |
Methods
| Signature | Description |
|---|---|
RelativeRectangle(left: int, top: int, width: int, height: int) | Creates a rectangle with given left, top, width, height offsets |
ToAbsolute(left: int, top: int, width: int, height: int) | Converts the relative rectangle to absolute coordinates using provided container dimensions |
FromScale(scaleX: float, scaleY: float, scaleWidth: float, scaleHeight: float) | Creates a rectangle from scale factors for position and size |
ToString() | Returns a string representation of the rectangle |