## Intersection of Sphere and Line

Given a sphere and a line, the intersection points are calculated.

The Sphere may be entered by its center and radius, the line in parametric representation or by two points.

### Example:

Sphere : ¯¯¯¯¯¯¯¯ K : M(5|5|5) , r = 5 Line : ¯¯¯¯¯¯ -> ⎧ 1 ⎫ ⎧ 1 ⎫ g : x = ⎪ 0 ⎪ + r·⎪ 1 ⎪ ⎩ 0 ⎭ ⎩ 1 ⎭ Intersection points : ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ S1(2,818665|1,818665|1,818665) S2(8,514668|7,514668|7,514668) Length of the chord : ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ s = 9,8657657

The diagram can be panned with the left mouse button and be zoomed with the right mouse button.