Sly 1:LM: Difference between revisions

Updated to use Struct template
(Wording and layout)
(Updated to use Struct template)
Line 7:
'''LM''' ('''l'''i'''m'''it) is a data structure used in {{Sly 1}}. Limits are used to clamp values to ensure they fall within a certain range.
 
==Structure Fields ==
{{Struct|
The LM struct is declared as follows:
{{Struct field|0x4|0x4|float|gMin|Lower bound}}
<syntaxhighlight lang="c++">
{{Struct field|0x8|0x4|float|gMax|Upper bound}}
struct LM {
{{Struct field|0xC|0x4|float|u4ag|}}
float gMin;
}}
float gMax;
float u4ag;
</syntaxhighlight>
 
==Usage==