Click or drag to resize

GeometrySegmentIntersectsSegment2d Method

Checks if the two segments (from_a, to_a) and (from_b, to_b) intersect. If yes, return the point of intersection as Vector2. If no intersection takes place, returns an empty Variant.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static Object SegmentIntersectsSegment2d(
	Vector2 fromA,
	Vector2 toA,
	Vector2 fromB,
	Vector2 toB
)

Parameters

fromA
Type: GodotVector2

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

toA
Type: GodotVector2

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

fromB
Type: GodotVector2

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

toB
Type: GodotVector2

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

Return Value

Type: Object

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

See Also