Unplugged Viz
High-performance scientific visualization isn't just for the workstation anymore
|
A one-dimensional range defined by two float endpoints. More...
Public Member Functions | |
RangeF (float from, float to) | |
Initializes a new instance of the T:Unplugged.Visualization.XForms.RangeF class. More... | |
double | Clamp (double value) |
If the value is within the range, returns the value; otherwise, return Minimum or Maximum for values below and above the range, respectively. More... | |
double | MapTo (RangeF destination, double value) |
Maps the value relative to this range to the corresponsing value in the destination range. For example, More... | |
double | MapToClamped (RangeF destination, double value) |
Combines MapTo and Clamp; returns the value mapped and clamped to the destination range/ More... | |
Static Public Member Functions | |
static RangeF | AboutZero (float length) |
Returns a RangeF with SignedLength == length, centered about 0. More... | |
Static Public Attributes | |
static readonly RangeF | Normal |
The "normal" range of 0 to 1. More... | |
static readonly RangeF | OfByte |
The total range of Bytes, from Byte.MinValue to Byte.MaxValue. More... | |
static readonly RangeF | OfInt16 |
The total range of Int16s, from Int16.MinValue to Int16.MaxValue. More... | |
static readonly RangeF | OfInt32 |
The total range of Int32s, from Int32.MinValue to Int32.MaxValue. More... | |
Properties | |
float | From [get] |
The beginning of the range. More... | |
float | To [get] |
The end of the range. More... | |
float | SignedLength [get] |
The signed difference between To and From. More... | |
float | Center [get] |
The center of the range. More... | |
float | Minimum [get] |
The minimum of the range. More... | |
float | Maximum [get] |
The maximum of the range. More... | |
A one-dimensional range defined by two float endpoints.
Durwella.Unplugged.Viz.RangeF.RangeF | ( | float | from, |
float | to | ||
) |
Initializes a new instance of the T:Unplugged.Visualization.XForms.RangeF class.
from | The beginning of the range. |
to | The end of the range. |
|
static |
Returns a RangeF with SignedLength == length, centered about 0.
length | The desired SignedLength for the returned RangeF. |
double Durwella.Unplugged.Viz.RangeF.Clamp | ( | double | value | ) |
double Durwella.Unplugged.Viz.RangeF.MapTo | ( | RangeF | destination, |
double | value | ||
) |
double Durwella.Unplugged.Viz.RangeF.MapToClamped | ( | RangeF | destination, |
double | value | ||
) |
|
static |
The "normal" range of 0 to 1.
|
static |
The total range of Bytes, from Byte.MinValue to Byte.MaxValue.
|
static |
The total range of Int16s, from Int16.MinValue to Int16.MaxValue.
|
static |
The total range of Int32s, from Int32.MinValue to Int32.MaxValue.
|
get |
The center of the range.
|
get |
The beginning of the range.
|
get |
The maximum of the range.
|
get |
The minimum of the range.
|
get |
The end of the range.