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 8643439
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T12:02:22+00:00 2026-06-12T12:02:22+00:00

I have an array which contains 3d modeling information x, y, z coordinates for

  • 0

I have an array which contains 3d modeling information x, y, z coordinates for a structure rotated and placed in the desired stance. I also have a new array which has similar structure without the rotation or placement. The new structures coordinates begin at [0 0 0].
It is easy to get the first portion of the structure into the right place by adding the first element of the properly rotated array to the unstructured array. My problem now is the rotation. How do I rotate the new element so that it matches the angle in x, y and z of the properly rotated array?
Thank you

  • 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-06-12T12:02:23+00:00Added an answer on June 12, 2026 at 12:02 pm

    If you can find three representative vectors up, front and right from the data then the rotation matrix would be:

    [rx ux fx ox]
    [ry uy fy oy]
    [rz uz fz oz]
    [ 0  0  0  1]
    

    where O = [ox oy oz] is the origin

    This is feasible if you know enough of the geometry of rotated structure.

    Why it works is seen from the interpretation of identity matrix and rotation matrix:
    In the reference coordinate system

     'Right' = [1 0 0 0], 
     'Up'    = [0 1 0 0],
     'Front' = [0 0 1 0],
    
     Multiplying each of these by the rotation matrix:
       [a d g 0]   Right*R = [a b c 0];
     R=[b e h 0]   Up * R  = [d e f 0];
       [c f i 0]   Front*R = [g h i 0];
       [0 0 0 1] 
    
     If there is no rotation, R = I == identity matrix; 
    
     Then Right * I = [1 0 0 0]; Up*I = [0 1 0 0 ]; Front*I = [0 0 1 0];
    

    Conversely, if you know that your geometry contains a cube (perhaps even scaled…)
    Then knowing which point in the array of rotated vertices corresponds to points
    o, F, R, U, and in the case of cube it’s largely a matter of choice…

     U
     |
     |        ___---F
     |  ___---    
     o--
        --__
            --R
    

    Front vector = (F-o)/|F-o|, Right = (R-o)/|R-o|, Up = (U-o)/|U-o|

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like abcdefg123hijklm . I also have an array which contains
I have a Array list which contains Objects of Restaurants ArrayList<Restaurants> array_sort = new
I have a 2D array which contains height information. I want to see it
I have an array which contains a great deal of data, which has been
I have an sorted array which contains first names of people. This array has
I have an array which contains a set of information from a database, but
I have an array which contains 12 numbers and I want to save this
I have an array which contains a set of UIImage in byte forms. --My
I have an array which contains another array Would I notate it this way?
I have an array which contains around 50-200 hyperlinks. How can I pass this

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.