Skip to contents

Finds the intersection point of two line segments.

Usage

find.line.intersection(P1, P2, Q1, Q2)

Arguments

P1

First point of first line segment c(x, y)

P2

Second point of first line segment c(x, y)

Q1

First point of second line segment c(x, y)

Q2

Second point of second line segment c(x, y)

Value

Coordinates of intersection point or NULL if no intersection