Click or drag to resize

GeometryGetClosestPointsBetweenSegments Method

Given the two 3D segments (p1, p2) and (q1, q2), finds those two points on the two segments that are closest to each other. Returns a Vector3 that contains this point on (p1, p2) as well the accompanying point on (q1, q2).

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static Vector3[] GetClosestPointsBetweenSegments(
	Vector3 p1,
	Vector3 p2,
	Vector3 q1,
	Vector3 q2
)

Parameters

p1
Type: GodotVector3

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

p2
Type: GodotVector3

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

q1
Type: GodotVector3

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

q2
Type: GodotVector3

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

Return Value

Type: Vector3

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

See Also