TheDeveloperBlog.com

Home | Contact Us

C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML

Computer Graphics 3D Rotation about Arbitrary Axis

Computer Graphics 3D Rotation about Arbitrary Axis with Computer Graphics Tutorial, Line Generation Algorithm, 2D Transformation, 3D Computer Graphics, Types of Curves, Surfaces, Computer Animation, Animation Techniques, Keyframing, Fractals etc.

<< Back to COMPUTER

Rotation about Arbitrary Axis

When the object is rotated about an axis that is not parallel to any one of co-ordinate axis, i.e., x, y, z. Then additional transformations are required. First of all, alignment is needed, and then the object is being back to the original position. Following steps are required

  1. Translate the object to the origin
  2. Rotate object so that axis of object coincide with any of coordinate axis.
  3. Perform rotation about co-ordinate axis with whom coinciding is done.
  4. Apply inverse rotation to bring rotation back to the original position.
  5. Rotation about Arbitrary Axis

    Matrix for representing three-dimensional rotations about the Z axis

    Rotation about Arbitrary Axis

    Matrix for representing three-dimensional rotations about the X axis

    Rotation about Arbitrary Axis

    Matrix for representing three-dimensional rotations about the Y axis

    Rotation about Arbitrary Axis

    Following figure show the original position of object and position of object after rotation about the x-axis

    Rotation about Arbitrary Axis

    5. Apply inverse translation to bring rotation axis to the original position.

    For such transformations, composite transformations are required. All the above steps are applied on points P' and P".Each step is explained using a separate figure.

    Step1: Initial position of P' and P"is shown

    Rotation about Arbitrary Axis

    Step2: Translate object P' to origin

    Rotation about Arbitrary Axis

    Step3: Rotate P" to z axis so that it aligns along the z-axis

    Rotation about Arbitrary Axis

    Step4: Rotate about around z- axis

    Rotation about Arbitrary Axis

    Step5: Rotate axis to the original position

    Rotation about Arbitrary Axis

    Step6: Translate axis to the original position.

    Rotation about Arbitrary Axis




Related Links:


Related Links

Adjectives Ado Ai Android Angular Antonyms Apache Articles Asp Autocad Automata Aws Azure Basic Binary Bitcoin Blockchain C Cassandra Change Coa Computer Control Cpp Create Creating C-Sharp Cyber Daa Data Dbms Deletion Devops Difference Discrete Es6 Ethical Examples Features Firebase Flutter Fs Git Go Hbase History Hive Hiveql How Html Idioms Insertion Installing Ios Java Joomla Js Kafka Kali Laravel Logical Machine Matlab Matrix Mongodb Mysql One Opencv Oracle Ordering Os Pandas Php Pig Pl Postgresql Powershell Prepositions Program Python React Ruby Scala Selecting Selenium Sentence Seo Sharepoint Software Spellings Spotting Spring Sql Sqlite Sqoop Svn Swift Synonyms Talend Testng Types Uml Unity Vbnet Verbal Webdriver What Wpf