diff options
| author | LLLL Colonq <llll@colonq> | 2026-08-18 00:08:28 -0400 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2026-08-18 00:08:28 -0400 |
| commit | 32a62cfcb925225359a5c90761b795f2f737ebd2 (patch) | |
| tree | 95c2261964803b19f2d39cb35d8d514ed6e5a6f4 /2026/games_submissions/asrael_io/source/src/math.rs | |
| parent | de99c5f7636a952025ea13de02bafd25bcb6bdec (diff) | |
Re-populate games
Diffstat (limited to '2026/games_submissions/asrael_io/source/src/math.rs')
| -rw-r--r-- | 2026/games_submissions/asrael_io/source/src/math.rs | 13 |
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] -} |
