Norm returns the value of x, given in the data coordinate system, normalized to its distance as a fraction of the range of this axis. For example, if x is a.Min then the return value is 0, and if x is a.Max then the return value is 1.
(x float32)
| 162 | // range of this axis. For example, if x is a.Min then the return |
| 163 | // value is 0, and if x is a.Max then the return value is 1. |
| 164 | func (ax *Axis) Norm(x float32) float32 { |
| 165 | return ax.Scale.Normalize(ax.Min, ax.Max, x) |
| 166 | } |