CoreRect2
CoreRect2
Float-based 2D rectangle for bounds and areas. Engine-agnostic equivalent of Godot’s CoreRect2.
Project: GridPlacement v6.0
Layer: Core
Source: Core/_incomplete/Types/Rect2.cs
Namespace: GridBuilding.Core.Types
Kind: struct
Parsing Method: AST-based (Roslyn) - NOT regex
⚠️ IMPORTANT: This documentation was generated using AST parsing, not regex.
Properties
X
Y
Width
Height
End
Area
Methods
HasPoint
Returns: bool
Parameters:
CoreVector2 point
Intersects
Returns: bool
Parameters:
CoreRect2 other
Intersection
Returns: CoreRect2
Parameters:
CoreRect2 other
Merge
Returns: CoreRect2
Parameters:
CoreRect2 other
Expand
Returns: CoreRect2
Parameters:
CoreVector2 point
Grow
Returns: CoreRect2
Parameters:
float amount
GrowIndividual
Returns: CoreRect2
Parameters:
float leftfloat topfloat rightfloat bottom
GetCenter
Returns: CoreVector2
Encloses
Returns: bool
Parameters:
CoreRect2 other
Abs
Returns: CoreRect2
IsEqualApprox
Returns: bool
Parameters:
CoreRect2 otherfloat tolerance
Equals
Returns: bool
Parameters:
CoreRect2 other
Equals
Returns: bool
Parameters:
object? obj
GetHashCode
Returns: int
ToString
Returns: string