| Copyright | (c) axionbuster 2025 |
|---|---|
| License | BSD-3-Clause |
| Safe Haskell | None |
| Language | GHC2021 |
M.Collision.Internal.March2
Description
Alternative implementation of ray marching algorithm focused on performance.
Documentation
voxel hit data structure. may encode hit or no hit.
Constructors
| VHit | |
Fields
| |
Arguments
| :: (RealFloat a, Integral i, Monad m) | |
| => (V3 i -> m Bool) | test for stoppage ( |
| -> V3 a | direction, any physical dimension |
| -> V3 a | initial position, dimensionless |
| -> Int | number of iterations (maximum) |
| -> m (VHit i a) | hit information (success or failure) |
march along an integer grid using a digital differential analyzer (DDA)-based algorithm