Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transformation Matrix for Element Editor #56

Open
ghost opened this issue Jul 17, 2020 · 5 comments
Open

Transformation Matrix for Element Editor #56

ghost opened this issue Jul 17, 2020 · 5 comments

Comments

@ghost
Copy link

ghost commented Jul 17, 2020

https://qelectrotech.org/forum/viewtopic.php?id=1725

@ghost
Copy link
Author

ghost commented Jul 24, 2020

@ghost
Copy link
Author

ghost commented Jul 27, 2020

Translation is the simplest transformation. Setting dx and dy will move the coordinate system dx units along the X axis and dy units along the Y axis. Scaling can be done by setting m11 and m22. For example, setting m11 to 2 and m22 to 1.5 will double the height and increase the width by 50%. The identity matrix has m11, m22, and m33 set to 1 (all others are set to 0) mapping a point to itself. Shearing is controlled by m12 and m21. Setting these elements to values different from zero will twist the coordinate system. Rotation is achieved by setting both the shearing factors and the scaling factors. Perspective transformation is achieved by setting both the projection factors and the scaling factors.

@ghost
Copy link
Author

ghost commented Jul 27, 2020

A first attempt at location and layout

transform

https://qelectrotech.org/forum/viewtopic.php?pid=12796#p12796

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants