Added line generator, corrected 135 degrees.
Refactored rotation function
Rotation 3d