CoreVector2
CoreVector2
Simple CoreVector2 bridge type for Core project Provides basic vector operations without Godot dependency
Project: GridPlacement v6.0
Layer: Core
Source: Core/Types/CoreVector2.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
Gets or sets the X coordinate
Y
Gets or sets the Y coordinate
Methods
Length
Calculates the length (magnitude) of the vector
Returns: float
LengthSquared
Calculates the squared length of the vector
Returns: float
Normalized
Returns a normalized version of the vector
Returns: CoreVector2
DistanceTo
Calculates the distance to another vector
Returns: float
Parameters:
CoreVector2 other
IsZero
Checks if the vector is zero
Returns: bool
IsEqualApprox
Checks if the vector is approximately equal to another vector
Returns: bool
Parameters:
CoreVector2 otherfloat tolerance
Equals
Compares this vector to another vector for equality
Returns: bool
Parameters:
CoreVector2 other
Equals
Compares this vector to an object for equality
Returns: bool
Parameters:
object? obj
GetHashCode
Returns the hash code for this vector
Returns: int
ToString
Returns a string representation of the vector
Returns: string