Click or drag to resize

Curve2DGetClosestOffset Method

Returns the closest offset to to_point. This offset is meant to be used in InterpolateBaked(Single, Boolean).

to_point must be in this curve's local space.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public float GetClosestOffset(
	Vector2 toPoint
)

Parameters

toPoint
Type: GodotVector2

[Missing <param name="toPoint"/> documentation for "M:Godot.Curve2D.GetClosestOffset(Godot.Vector2)"]

Return Value

Type: Single

[Missing <returns> documentation for "M:Godot.Curve2D.GetClosestOffset(Godot.Vector2)"]

See Also