commit | d9c0088098f91b3d6e080f260217cdddc270052e | [log] [tgz] |
---|---|---|
author | Nigel Tao <nigeltao@golang.org> | Mon Aug 17 11:44:06 2015 +1000 |
committer | Nigel Tao <nigeltao@golang.org> | Mon Aug 17 07:17:06 2015 +0000 |
tree | 2023f091217d59f2dfdf50ae7566327aeed3021a | |
parent | b137518d4734b730bc80d02ea19d2c8cd04f80fd [diff] |
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>