Class Rect
Inheritance
System.Object
Rect
Assembly: Eco.Shared.dll
Syntax
[Serialized]
public sealed class Rect : ValueType
Fields
Max
Declaration
Field Value
Min
Declaration
Field Value
One
Declaration
public static readonly Rect One
Field Value
Properties
Bottom
Declaration
public float Bottom { get; }
Property Value
Type |
Description |
System.Single |
|
BottomLeft
Declaration
public Vector2 BottomLeft { get; }
Property Value
BottomRight
Declaration
public Vector2 BottomRight { get; }
Property Value
Center
Declaration
public Vector2 Center { get; }
Property Value
Height
Declaration
public float Height { get; }
Property Value
Type |
Description |
System.Single |
|
Left
Declaration
public float Left { get; }
Property Value
Type |
Description |
System.Single |
|
Right
Declaration
public float Right { get; }
Property Value
Type |
Description |
System.Single |
|
Size
Declaration
public Vector2 Size { get; }
Property Value
Top
Declaration
public float Top { get; }
Property Value
Type |
Description |
System.Single |
|
TopLeft
Declaration
public Vector2 TopLeft { get; }
Property Value
TopRight
Declaration
public Vector2 TopRight { get; }
Property Value
Width
Declaration
public float Width { get; }
Property Value
Type |
Description |
System.Single |
|
Methods
Contains(Rect)
Declaration
public bool Contains(Rect other)
Parameters
Type |
Name |
Description |
Rect |
other |
|
Returns
Type |
Description |
System.Boolean |
|
Contains(Vector2)
Declaration
public bool Contains(Vector2 position)
Parameters
Type |
Name |
Description |
Vector2 |
position |
|
Returns
Type |
Description |
System.Boolean |
|
Contains(Vector3)
Declaration
public bool Contains(Vector3 position)
Parameters
Type |
Name |
Description |
System.Numerics.Vector3 |
position |
|
Returns
Type |
Description |
System.Boolean |
|
Intersects(Rect)
Declaration
public bool Intersects(Rect other)
Parameters
Type |
Name |
Description |
Rect |
other |
|
Returns
Type |
Description |
System.Boolean |
|
Operators
Addition(Rect, Vector3)
Declaration
public static Rect operator +(Rect a, Vector3 offset)
Parameters
Type |
Name |
Description |
Rect |
a |
|
System.Numerics.Vector3 |
offset |
|
Returns
Extension Methods