GeometryGetClosestPointToSegment2d Method |
Returns the 2D point on the 2D segment (s1, s2) that is closest to point. The returned point will always be inside the specified segment.
Namespace: Godot
public static Vector2 GetClosestPointToSegment2d( Vector2 point, Vector2 s1, Vector2 s2 )
[Missing <param name="point"/> documentation for "M:Godot.Geometry.GetClosestPointToSegment2d(Godot.Vector2,Godot.Vector2,Godot.Vector2)"]
[Missing <param name="s1"/> documentation for "M:Godot.Geometry.GetClosestPointToSegment2d(Godot.Vector2,Godot.Vector2,Godot.Vector2)"]
[Missing <param name="s2"/> documentation for "M:Godot.Geometry.GetClosestPointToSegment2d(Godot.Vector2,Godot.Vector2,Godot.Vector2)"]
[Missing <returns> documentation for "M:Godot.Geometry.GetClosestPointToSegment2d(Godot.Vector2,Godot.Vector2,Godot.Vector2)"]