Trigonometric functions and line equations