mpcarlos87
mpcarlos87

Reputation: 132

XZY transformation matrix to XYZ

I have a transformation matrix from an application where the basis are XZY and I want to obtain this matrix into a system with XYZ basis. ¿Is it possible?

This is because i'm importing some 3D objects from an app in XZY basis and I want to rotate and translate them -but the axis here changed to XYZ-.

¿Could I have the quaternion of the rotation with the new basis?

Thanks.

Upvotes: 2

Views: 3235

Answers (2)

minorlogic
minorlogic

Reputation: 1916

There is a 2 ways to go.

  1. Simply swap Y <-> Z components of quaternion or rotation matrix.
  2. Build transformation from one Basis to other and multiply current transformation. Transformation changing coordinate axes can be described with 4x4 matrix or 3x3 if only rotation used

Upvotes: 0

Codor
Codor

Reputation: 17605

It can be done by a basis transformation; however from your description exchanging of coordinates might be sufficient.

Upvotes: 2

Related Questions