diff options
| author | LLLL Colonq <llll@colonq> | 2026-08-04 04:35:44 -0400 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2026-08-04 04:35:44 -0400 |
| commit | 3c7796f066647090ed8436778bdfe25f11844c05 (patch) | |
| tree | 0644a101004d91af4fcdc2f51fcc2e03f7f255ce /2026/games_submissions/asrael_io/source/src/math.rs | |
| parent | a75221ab93f59d688f90cd83f0284ff98951fcfa (diff) | |
Prepare for upload
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] -} |
