feat: yaaay a triangle :)))

This commit is contained in:
2024-04-16 15:32:23 +02:00
parent 8f594aebe3
commit ddd0e6a0cf
16 changed files with 340 additions and 100 deletions

View File

@@ -1,10 +1,10 @@
use crate::encoding;
pub fn math_node(args: &[i32]) -> (i32, i32) {
pub fn math_node(args: &[i32]) -> i32 {
let math_type = args[0];
let a = encoding::decode_float(args[1], args[2]);
let b = encoding::decode_float(args[3], args[4]);
let a = encoding::decode_float(args[1]);
let b = encoding::decode_float(args[2]);
let result = match math_type {
0 => a + b,