PeachDrawing.Text

PeachDrawing.Text

AxisRange Struct

An inclusive range of values along one design axis: the weights, widths or slants a face declares that it covers (the range form of the CSS @font-face descriptors font-weight, font-stretch and font-style: oblique).

public readonly struct AxisRange : System.IEquatable<PeachDrawing.Text.AxisRange>

Implements System.IEquatable<AxisRange>

Remarks

A range whose two ends are equal is a single value. The constructor puts the ends in order, so the smaller is always Minimum.

Constructors  
AxisRange(double) Creates the range that holds one value.
AxisRange(double, double) Creates the range between two values, in whichever order they are given.
Properties  
Maximum The highest value of the range.
Minimum The lowest value of the range.
Methods  
Clamp(double) The value of the range that is nearest to value: the value itself when it is inside.
Contains(double) Whether a value lies inside the range, both ends included.
Operators  
operator ==(AxisRange, AxisRange) Whether two ranges have the same ends.
operator !=(AxisRange, AxisRange) Whether two ranges differ in an end.