Click or drag to resize

GeometryGetClosestPointToSegment Method

Returns the 3D point on the 3D segment (s1, s2) that is closest to point. The returned point will always be inside the specified segment.

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

Parameters

point
Type: GodotVector3

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

s1
Type: GodotVector3

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

s2
Type: GodotVector3

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

Return Value

Type: Vector3

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

See Also