Method Fraction
- Namespace
- DocWright.Core.Primitives
- Assembly
- DocWright.Core.dll
Fraction(double, double, double)
Where a value sits on the axis, as a fraction from minimum (0) to
maximum (1).
public static double Fraction(double value, double minimum, double maximum)
Parameters
Returns
- double
The fraction, clamped to 0..1; zero when the axis has no span or any argument is not a usable number, so a degenerate axis draws flat rather than off the page.