Deze module is nog in ontwikkeling (versie 0.0) en wordt getest.
De Module:Layout is bedoeld om snel, consistent en uitgebreid een pagina op te maken.
Er is een op de module afgestemde handleiding over deze onderwijswiki beschikbaar.
localcalculator={};-- The arithmetic clamp function restricts a value to a certain range.-- The function has a value to be clamped, a minimum value and a maximum value.functioncalculator.clamp(value,minimum,maximum)ifvalue<minimumthenreturnminimumend;ifvalue>maximumthenreturnmaximumend;returnvalue;end-- This function does a linear interpolation.-- It is a method of finding a value that lies between two given values a en b-- by assuming a linear relationship between them.-- The "position" of C between A and B is t, where t ranges from 0 to 1.functioncalculator.lerp(a,b,t)returna+(b-a)*t;endreturncalculator;