Synced
GraphCanvasView.HitConnection
Section titled “GraphCanvasView.HitConnection”
- Checks pointer distance against the displayed cubic connection without any UI or document access.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Editor.Graph.ImGui
Declaration
Section titled “Declaration”public static bool Inno.Editor.Graph.ImGui.GraphCanvasView.HitConnection(System.Numerics.Vector2 point, System.Numerics.Vector2 output, System.Numerics.Vector2 input, float radius = 6)Parameters
Section titled “Parameters”Parameter point: The screen-space pointer location.
Parameter output: The displayed output endpoint.
Parameter input: The displayed input endpoint.
Parameter radius: Nonnegative screen-space acceptance radius.
Returns
Section titled “Returns”True when the pointer is within the curve’s hit area, including its endpoints.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentOutOfRangeException: Radius is negative or nonfinite.