David Crawshaw
c579c527c1
go.mobile/f32: add Inverse
...
LGTM=nigeltao
R=nigeltao
CC=golang-codereviews
https://golang.org/cl/157990043
2014-10-15 09:42:53 -04:00
Nigel Tao
6d01e6fdd5
go.mobile/f32: add Scale, Translate and Rotate methods to Affine.
...
Also make Mat4 methods consistent with Affine's methods.
LGTM=crawshaw
R=crawshaw
CC=golang-codereviews
https://golang.org/cl/156000043
2014-10-09 13:48:17 +11:00
Nigel Tao
925df10ad0
go.mobile/f32: make matrix multiplication work even if the dst matrix
...
is the same as an arg matrix.
LGTM=crawshaw
R=crawshaw
CC=golang-codereviews
https://golang.org/cl/152850043
2014-10-03 14:33:15 +10:00
Nigel Tao
d3df5eca0b
go.mobile/f32: fix matrix multiply to be m0*m1 not m1*m0.
...
Also fix String methods' receivers to be T, not *T, so that
var m f32.Mat32
s := fmt.Sprintf("m=%v", m)
works.
LGTM=crawshaw
R=crawshaw
CC=golang-codereviews
https://golang.org/cl/147490043
2014-10-03 12:33:49 +10:00
Nigel Tao
52d35457e3
go.mobile/f32: add an Affine type.
...
Also fix the f32_test.
LGTM=crawshaw
R=crawshaw
CC=golang-codereviews
https://golang.org/cl/149310043
2014-10-03 09:25:48 +10:00