RelativeRectangle
Overview
RelativeRectangle is a struct in Aspose.3D FOSS for .NET.
RelativeRectangle.RelativeRectangle creates a rectangle with given left, top, width, and height offsets.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
ScaleX | float | Read/Write | Gets or sets the horizontal scale factor of the rectangle |
ScaleY | float | Read/Write | Gets or sets the vertical scale factor of the rectangle |
ScaleWidth | float | Read/Write | Gets or sets the width scale factor of the rectangle |
ScaleHeight | float | Read/Write | Gets or sets the height scale factor of the rectangle |
OffsetX | int | Read/Write | Gets or sets the left offset in pixels |
OffsetY | int | Read/Write | Gets or sets the top offset in pixels |
OffsetWidth | int | Read/Write | Gets or sets the rectangle width in pixels |
OffsetHeight | int | Read/Write | Gets or sets the rectangle height in pixels |
Methods
| Signature | Description |
|---|---|
RelativeRectangle(left: int, top: int, width: int, height: int) | Creates a rectangle with given left, top, width, and height offsets |
ToAbsolute(left: int, top: int, width: int, height: int) | Converts the relative rectangle to absolute coordinates using 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 |