User:Jules/transformationmatrix

From XPUB & Lens-Based wiki
< User:Jules
Revision as of 12:47, 15 January 2016 by Jules (talk | contribs) (Created page with "<div style="width:60%"> File:Cepheus.jpg <br /><br /> I got some constellation shapes by looking for children activities consisting in Graphing simple constellation.<br /...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Cepheus.jpg

I got some constellation shapes by looking for children activities consisting in Graphing simple constellation.
http://www.spacefoundation.org/sites/default/files/lessonbank/addendums/%5B6-8%5DMapping%20Constellations.pdf

To keep the shape proportionate and enable it to rotate, I had to learn about how to work with a transformation matrix. (luckily enough Ruben teaches me Maths very well)

Transformationmatrix.png


I picked Cepheus to start with an easy one.
These are the coordinates I got :
(2,24); (7,24); (12,27); (7,29); (1,30)
So from that I wanted to calculate the stars position from the first one in the list, becoming the origin.
stars = ([0,0], [5,0], [10,3], [5,5], [-1,6])

So the first thing to do was to find the vector determining the direction.

direction_vector = va - v1
va corresponds to actual coordinates from the database or possible position of starA - starB.
v1 is the same with the proportions instead of actual coordinates from the database.