Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3315718
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T22:22:59+00:00 2026-05-17T22:22:59+00:00

Given the following definitions for x,y,z rotation matrices, how do I represent this as

  • 0

Given the following definitions for x,y,z rotation matrices, how do I represent this as one complete matrix? Simply multiply x, y, & matrices?

X Rotation:

[1 0 0 0]
[0 cos(-X Angle) -sin(-X Angle) 0]
[0 sin(-X Angle) cos(-X Angle) 0]
[0 0 0 1]

Y Rotation:

[cos(-Y Angle) 0 sin(-Y Angle) 0]
[0 1 0 0]
[-sin(-Y Angle) 0 cos(-Y Angle) 0]
[0 0 0 1]

Z Rotation:

[cos(-Z Angle) -sin(-Z Angle) 0 0]
[sin(-Z Angle) cos(-Z Angle) 0 0]
[0 0 1 0]
[0 0 0 1] 

Edit: I have a separate rotation class that contains an x, y, z float value, which I later convert to a matrix in order to combine with other translations / scales / rotations.

Judging from the answers here, I can assume that if I do something like:

Rotation rotation;
rotation.SetX(45);
rotation.SetY(90);
rotation.SetZ(180);

Then it’s actually really important as to which order the rotations are applied? Or is it safe to make the assumption that when using the rotation class, you accept that they are applied in x, y, z order?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T22:22:59+00:00Added an answer on May 17, 2026 at 10:22 pm

    Yes, multiplying the three matrices in turn will compose them.

    EDIT:

    The order that you apply multiplication to the matrices will determine the order the rotations will be applied to the point.

    P × (X × Y × Z)     Rotations in X, Y, then Z will be performed
    P × (Y × X × Z)     Rotations in Y, X, then Z will be performed
    P × (Z × X × Y)     Rotations in Z, X, then Y will be performed
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm getting the following warning with this code: WARNING: Using 'Given/When/Then' in step definitions
Given the following class definitions: public class BaseClass { public string SomeProp1 { get;
Given the following entity definitions: @Entity class abstract A { Collection<A> parents; } @Entity
My features file looks at this: Given there are the following users: | email
Given the following definitions Foo has_many :bars, :dependent => :nullify, :autosave => false Bar
Given the following definitions: public enum SampleEnum1 { Uno, Dos, Tres } public enum
Given the following data table definitions in SQLite Version 3.7.5: CREATE TABLE [Books] (
Given the following C definitions: #define SYNC_BYTE_1 0x5A #define SYNC_BYTE_2 0xA5 and pointer declaration:
I was given the following struct definitions for an assignment revolving around queues and
Given the following C# class definitions and code: public class BaseClass { public virtual

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.