CoreRect2
2D rectangle struct for POCS implementations (float coordinates)
Project: GridPlacement v6.0
Layer: Core
Source: plugins/gameplay/GridPlacement/cs/Core/Types/CoreRect2.cs
Namespace: GridPlacement.Core.Types
Kind: struct
Parsing Method: AST-based (Roslyn) - NOT regex
⚠️ IMPORTANT: This documentation was generated using AST parsing, not regex.
Properties
Position
Gets the rectangle position (top-left corner).
Size
Gets the rectangle size.
X
Gets the X coordinate of the rectangle position.
Y
Gets the Y coordinate of the rectangle position.
Width
Gets the rectangle width.
Height
Gets the rectangle height.
End
Gets the end position (Position + Size).
Methods
Contains
Returns whether the rectangle contains the given point.
Returns: bool
Parameters:
CoreVector2 point
HasPoint
Alias for Contains - matches Godot’s API
Returns: bool
Parameters:
CoreVector2 point
Intersects
Returns whether this rectangle intersects another rectangle.
Returns: bool
Parameters:
CoreRect2 other
Equals
Returns: bool
Parameters:
CoreRect2 other
Equals
Returns: bool
Parameters:
object? obj
GetHashCode
Returns: int
ToString
Returns: string