import type { ExtendedBool } from './prelude'; import { type IVec2, type Vec2 } from './Vec2.js'; /** DDA tile intersection type */ export type DdaIntersection = Vec2 & { /** View plane distance */ hitDistance?: number; /** Intersection is on a vertical side of a tile. */ hitVertical?: boolean; }; /** Return true to end the DDA loop. */ export type DdaCallback = (x: number, y: number, hitDistance: number) => ExtendedBool; /** Digital differential analyzer (DDA) */ export declare const dda: (start: Readonly, direction: Readonly, done: DdaCallback) => DdaIntersection;