Nigel Tao
8ab1ac6834
math/fixed: add rectangle types and the R function.
...
Change-Id: Ibb3785bcd57f13c7b6f1dc37526f65e44b4ac695
Reviewed-on: https://go-review.googlesource.com/13823
Reviewed-by: Rob Pike <r@golang.org>
2015-08-24 01:31:27 +00:00
Nigel Tao
d9c0088098
math/fixed: add I and P helper functions.
...
The P function is especially common in e.g. Freetype code that works
with both the integer-pixel (X,Y) coordinates used by the stdlib image
package and sub-pixel (X,Y) coordinates used by its raster package.
Change-Id: I68be8ca71ceb24f40277ecc39a0896323f6671f5
Reviewed-on: https://go-review.googlesource.com/13652
Reviewed-by: Rob Pike <r@golang.org>
2015-08-17 07:17:06 +00:00
Nigel Tao
b96af5338f
math/fixed: add Point methods (Add, Sub, Mul, Div).
...
These mirror the image.Point methods in the standard library.
Change-Id: I7309af308a8182e325af20b47341f72703cbc95a
Reviewed-on: https://go-review.googlesource.com/13603
Reviewed-by: David Crawshaw <crawshaw@golang.org>
2015-08-13 13:30:46 +00:00
Nigel Tao
3029cff51e
math/fixed: add point types.
...
Change-Id: Ie9ae62eab3c484034ee8207a2b2e573ec6f1464e
Reviewed-on: https://go-review.googlesource.com/13294
Reviewed-by: Rob Pike <r@golang.org>
2015-08-07 00:23:53 +00:00
Nigel Tao
5ec5e003b2
math/fixed: new package.
...
Fixes golang/go#11906
Change-Id: I2b43311ff145e8453cd255f085c82add6da7de5b
Reviewed-on: https://go-review.googlesource.com/12863
Reviewed-by: Rob Pike <r@golang.org>
2015-07-30 06:07:28 +00:00
Nigel Tao
7bd522e167
math/f32, math/f64: add a comment that "Aff" stands for affine
...
transformation.
Change-Id: Ia5762d0578f78b17d85f4a952b397a05e6927bd0
Reviewed-on: https://go-review.googlesource.com/6914
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: David Crawshaw <crawshaw@golang.org>
2015-03-06 02:15:01 +00:00
Nigel Tao
7283107efc
math/f32, math/f64: add Aff3 and Aff4 types.
...
Change-Id: I504a070cf178aa688090ba50136db06856c16f73
Reviewed-on: https://go-review.googlesource.com/6552
Reviewed-by: David Crawshaw <crawshaw@golang.org>
2015-03-03 04:33:37 +00:00
Nigel Tao
4f76d37dff
math/f32, math/f64: new packages for vector and matrix types.
...
Change-Id: I937d16429d7321360d0b9f3a811f8d3d719e9bff
Reviewed-on: https://go-review.googlesource.com/6076
Reviewed-by: David Crawshaw <crawshaw@golang.org>
Reviewed-by: Stephen Gutekanst <stephen.gutekanst@gmail.com>
2015-03-02 00:58:44 +00:00