Cycle for calculation of a straight line in 3D

Cycle for calculation of a straight line in 3D 1:
Calculation of a straight line in 3D