DragPathCalculator
DragPathCalculator
Pure C# drag path calculation and smoothing logic Extracted from DragPathData to enable unit testing and reusability Handles Catmull-Rom spline smoothing and path analysis
Project: GridPlacement v6.0
Layer: Godot
Source: Godot/Core/_incomplete/Systems/Geometry/DragPathCalculator.cs
Namespace: GridBuilding.Core.Systems.Geometry
Kind: class
Parsing Method: AST-based (Roslyn) - NOT regex
⚠️ IMPORTANT: This documentation was generated using AST parsing, not regex.
Properties
Settings
IsActive
RawPoints
SmoothedPoints
TotalDistance
Duration
Methods
StartPath
Starts a new drag path
Returns: void
Parameters:
CoreVector2 startPoint
UpdatePath
Updates the drag path with a new point
Returns: void
Parameters:
CoreVector2 point
CompletePath
Completes the drag path and returns the result
Returns: DragPathResult
CancelPath
Cancels the current drag path
Returns: void
ClearPath
Clears all path data
Returns: void
GetStatistics
Gets path statistics
Returns: DragPathStatistics
CalculateSmoothedPoints
Calculates smoothed points from raw points using Catmull-Rom spline
Returns: CoreVector2[]
Parameters:
CoreVector2[] pointsfloat tension