Table of Contents

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

value double

The value to place.

minimum double

The axis bottom.

maximum double

The axis top.

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.