Struct Rectangle
Sets the bounding box of a rectangle.
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Fusee.Engine.Common
Assembly: Fusee.Engine.Common.dll
Syntax
public struct Rectangle
Constructors
Rectangle(Int32, Int32, Int32, Int32)
Initializes a new instance of the Rectangle struct.
Declaration
public Rectangle(int left, int top, int right, int bottom)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | left | The left. |
System.Int32 | top | The top. |
System.Int32 | right | The right. |
System.Int32 | bottom | The bottom. |
Fields
Bottom
The lower y-coordinate
Declaration
public int Bottom
Field Value
Type | Description |
---|---|
System.Int32 |
Left
The left x-coordinate
Declaration
public int Left
Field Value
Type | Description |
---|---|
System.Int32 |
Right
The right x-coordinate
Declaration
public int Right
Field Value
Type | Description |
---|---|
System.Int32 |
Top
The upper y-coordinate
Declaration
public int Top
Field Value
Type | Description |
---|---|
System.Int32 |
Properties
Height
Gets the height of the rectangle.
Declaration
public readonly int Height { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The height. |
Width
Gets the width of the rectangle.
Declaration
public readonly int Width { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The width. |