Copyright | (c) axionbuster 2025 |
---|---|
License | BSD-3-Clause |
Safe Haskell | None |
Language | GHC2021 |
Provides utilities for sampling points on cuboid faces, used in collision detection. The module focuses on efficient face point generation for AABB collision testing.
Documentation
:: V3 Int | cuboid dimensions |
-> V3 Int | direction (signum vector) |
-> [V3 Int] | points on the faces from the cuboid's (0, 0, 0) corner |
retrieve the points on the faces of a cuboid normal to a certain direction (sig: {-1, 0, 1}) from said cuboid
:: V3 Int | cuboid dimensions |
-> V3 Int | direction (signum vector) |
-> Int | number of points sampled by |
predict the number of points sampled by facepoints