gonum / gonum/plot

vg: consider migrating vg.Length and vg.Point to x/image/math/fixed

Open
#265 3 comments 0 reactions 0 assignees View on GitHub
enhancement question
Dominant language
Go
Stars
3k
Forks
201
PR merge metrics
No merged PRs in 30d

Description

The package [`golang.org/x/image/math/fixed`](https://godoc.org/golang.org/x/image/math/fixed) defines fixed point integer types such as `fixed.Int26_6` and `fixed.Int52_12` (and corresponding `Point` and `Rectangle` struct types).

migrating `vg.Length` from:

``` go
package vg
type Length float64
```

to:

``` go
package vg
import "golang.org/x/image/math/fixed"
type Length fixed.Int26_6
```

would (_perhaps_) ease interoperabiliy with all the other 2D packages.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.