Click or drag to resize

GeometryGetClosestPointToSegmentUncapped2d Method

Returns the 2D point on the 2D line defined by (s1, s2) that is closest to point. The returned point can be inside the segment (s1, s2) or outside of it, i.e. somewhere on the line extending from the segment.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static Vector2 GetClosestPointToSegmentUncapped2d(
	Vector2 point,
	Vector2 s1,
	Vector2 s2
)

Parameters

point
Type: GodotVector2

[Missing <param name="point"/> documentation for "M:Godot.Geometry.GetClosestPointToSegmentUncapped2d(Godot.Vector2,Godot.Vector2,Godot.Vector2)"]

s1
Type: GodotVector2

[Missing <param name="s1"/> documentation for "M:Godot.Geometry.GetClosestPointToSegmentUncapped2d(Godot.Vector2,Godot.Vector2,Godot.Vector2)"]

s2
Type: GodotVector2

[Missing <param name="s2"/> documentation for "M:Godot.Geometry.GetClosestPointToSegmentUncapped2d(Godot.Vector2,Godot.Vector2,Godot.Vector2)"]

Return Value

Type: Vector2

[Missing <returns> documentation for "M:Godot.Geometry.GetClosestPointToSegmentUncapped2d(Godot.Vector2,Godot.Vector2,Godot.Vector2)"]

See Also