@thi.ng/vectors
Version:
Optimized 2d/3d/4d and arbitrary length vector operations, support for memory mapping/layouts
15 lines • 653 B
TypeScript
import type { MultiVecOpVO, MultiVecOpVV, VecOpVO, VecOpVV } from "./api.js";
/**
* Rounds components of the first input to multiples of the 2nd input vector.
*
* @remarks
* Unitl v4.8.0 errorneously defined what should have been {@link roundN}. Now
* correctly using 2 input vectors.
*/
export declare const round: MultiVecOpVV, round2: VecOpVV, round3: VecOpVV, round4: VecOpVV;
/**
* Similar to {@link round}, but only uses a single scalar to round all vector
* components.
*/
export declare const roundN: MultiVecOpVO<number>, roundN2: VecOpVO<number>, roundN3: VecOpVO<number>, roundN4: VecOpVO<number>;
//# sourceMappingURL=round.d.ts.map