GeometryLineIntersectsLine2d Method |
Checks if the two lines (from_a, dir_a) and (from_b, dir_b) intersect. If yes, return the point of intersection as Vector2. If no intersection takes place, returns an empty Variant.
Note: The lines are specified using direction vectors, not end points.
Namespace: Godot
public static Object LineIntersectsLine2d( Vector2 fromA, Vector2 dirA, Vector2 fromB, Vector2 dirB )
[Missing <param name="fromA"/> documentation for "M:Godot.Geometry.LineIntersectsLine2d(Godot.Vector2,Godot.Vector2,Godot.Vector2,Godot.Vector2)"]
[Missing <param name="dirA"/> documentation for "M:Godot.Geometry.LineIntersectsLine2d(Godot.Vector2,Godot.Vector2,Godot.Vector2,Godot.Vector2)"]
[Missing <param name="fromB"/> documentation for "M:Godot.Geometry.LineIntersectsLine2d(Godot.Vector2,Godot.Vector2,Godot.Vector2,Godot.Vector2)"]
[Missing <param name="dirB"/> documentation for "M:Godot.Geometry.LineIntersectsLine2d(Godot.Vector2,Godot.Vector2,Godot.Vector2,Godot.Vector2)"]
[Missing <returns> documentation for "M:Godot.Geometry.LineIntersectsLine2d(Godot.Vector2,Godot.Vector2,Godot.Vector2,Godot.Vector2)"]