OpenMetaverse Protocol Library Developers API Documentation
FloatToByte Method (val, lower, upper)
NamespacesOpenMetaverseUtilsFloatToByte(Single, Single, Single)
Convert a float value to a byte given a minimum and maximum range
Declaration Syntax
C#
public
static
byte
FloatToByte(

float
val,

float
lower,

float
upper
)
Parameters
val ( Single)
Value to convert to a byte
lower ( Single)
Minimum value range
upper ( Single)
Maximum value range
Return Value
A single byte representing the original float value

Assembly: OpenMetaverseTypes(Module: OpenMetaverseTypes.dll) Version: 0.0.0.0