summaryrefslogtreecommitdiff
path: root/2026/games_submissions/asrael_io/source/src/math.rs
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2026-08-29 04:06:51 -0400
committerLLLL Colonq <llll@colonq>2026-08-29 04:06:51 -0400
commit761a3172bf4c15aed3836e4d1cd6f815b651b0e0 (patch)
treecc90491529e83349d84d42a8e9982e5f0f38338e /2026/games_submissions/asrael_io/source/src/math.rs
parent0d2d8cd897e94bd94e0b3ae7c6ce9aa580a44a0a (diff)
Fix
Diffstat (limited to '2026/games_submissions/asrael_io/source/src/math.rs')
-rw-r--r--2026/games_submissions/asrael_io/source/src/math.rs13
1 files changed, 0 insertions, 13 deletions
diff --git a/2026/games_submissions/asrael_io/source/src/math.rs b/2026/games_submissions/asrael_io/source/src/math.rs
deleted file mode 100644
index 371f165..0000000
--- a/2026/games_submissions/asrael_io/source/src/math.rs
+++ /dev/null
@@ -1,13 +0,0 @@
-use glam::Vec2;
-
-pub fn aabb(a_pos: Vec2, a_size: Vec2, b_pos: Vec2, b_size: Vec2) -> bool {
- a_pos.x < b_pos.x + b_size.x
- && b_pos.x < a_pos.x + a_size.x
- && a_pos.y < b_pos.y + b_size.y
- && b_pos.y < a_pos.y + a_size.y
-}
-
-pub fn bezier(p: [Vec2; 4], t: f32) -> Vec2 {
- let u = 1.0 - t;
- u * u * u * p[0] + 3.0 * u * u * t * p[1] + 3.0 * u * t * t * p[2] + t * t * t * p[3]
-}