Permalink
Switch branches/tags
Nothing to show
Find file Copy path
64ed245 Jul 9, 2015
1 contributor

Users who have contributed to this file

36 lines (29 sloc) 337 Bytes

#Matrix transformations

Using homogeneous coordinates

###Translation

[ 
  1, 0, 0, 0, 
  0, 1, 0, 0,
  0, 0, 1, 0,
  t.x, t.y, t.z, 1
]

###Scale

[ 
  s.x, 0, 0, 0, 
  0, s.y, 0, 0,
  0, 0, s.z, 0,
  0, 0, 0, 1
]