Intersection of two Lines (2D)

Given two lines the program computes their intersection point, the angle of intersection and their distances from the origin.

Example 1:

g : x + y = 0
h : x - y = 5

Intersection point of g and h : S(2,5|-2,5)

Intersection angle of g and h : 90°

Distances from origin :
  d(g,O) = 0
  d(h,O) = 3,5355339

Example 2:

g : x + y = 0
h : 2·x + 2·y = -5
                                                                
g and h are parallel
  d(g,h) = 1,767767

Distances from origin
  d(O,g) = 0
  d(O,h) = 1,767767

See also:

Setting the graphics
Intersection of two Lines (3D)