Abstract
A graphical computer system must give the user an opportunity to look at an object from different angles. For that, we must be able, given two points P 1 and P 2 in space and an angle Φ, to rotate an object by the angle Φ about the line P 1 P 2. This is usually done by rotating vertices (or other points that represent an object) and connecting them. Since an image can have lots of vertices, it is important to be able to rotate each of them quickly. Therefore, we are interested in a rotation method that would consist of the smallest possible number of computational steps. The usual method (see, e.g., [1]) includes four nonarithmetic operations (namely, computing sin Φ, cos Φ, and two square roots), and seven multiplications of 4 × 4 matrices. Nonarithmetic operations are necessary because the known expression for a rotated point includes sin Φ, cos Φ, and a square root. However, we can try to reduce the number of arithmetic operations (+, -, ×, :). In this paper, we propose an algorithm that consists of only 30 arithmetic steps: it is less than 1 10 of the number of steps used in the traditional method.
Talk to us
Join us for a 30 min session where you can share your feedback and ask us any queries you have
Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.