kpt_lib 0.1.1

Keyboard plate prototyping
Documentation
1
2
3
4
5
6
7
8
9
10
pub fn transform(n: [f32; 2], horizontal_offset: f32, vertical_offset: f32) -> [f32; 2] {
    [
        (n[0] + horizontal_offset) / 3.,
        (n[1] + vertical_offset) / 3.,
    ]
}

pub fn transform_single(n: f32) -> f32 {
    n / 3.
}