Takes a measure of a value against the maximum possible value and
transforms it to a scaled number that can be written within a specific domain.
The default (and absolutely common) situation writes a scaled number that can be represented by an unsigned 8u
.
Takes a measure of a value against the maximum possible value and
transforms it to a scaled number that can be written within a specific domain.
The default (and absolutely common) situation writes a scaled number that can be represented by an unsigned 8u
.
The maximum value is 255, or 28 - 1.
The minimum value is 0;
but, due to how game models are represented at various health,
the representable minimum value is allowed to plateau at 3.
Any result less than 3 creates the same situation as if the result were 0.