@thi.ng/vectors
Version:
Optimized 2d/3d/4d and arbitrary length vector operations, support for memory mapping/layouts
43 lines • 1.38 kB
TypeScript
import { type IRandom } from "@thi.ng/random";
import type { MultiVecOpVVO, VecOpVVO } from "./api.js";
/**
* Sets `out` to random 2D vector with each component in the semi-open interval
* defined by `[min,max)`.
*
* @param a - vector
* @param b - input vector (min. bounds)
* @param c - input vector (max. bounds)
* @param rnd - PRNG instance
*/
export declare const randMinMax2: VecOpVVO<IRandom>;
/**
* Sets `out` to random 3D vector with each component in the semi-open interval
* defined by `[min,max)`.
*
* @param a - vector
* @param b - input vector (min. bounds)
* @param c - input vector (max. bounds)
* @param rnd - PRNG instance
*/
export declare const randMinMax3: VecOpVVO<IRandom>;
/**
* Sets `out` to random 4D vector with each component in the semi-open interval
* defined by `[min,max)`.
*
* @param a - vector
* @param b - input vector (min. bounds)
* @param c - input vector (max. bounds)
* @param rnd - PRNG instance
*/
export declare const randMinMax4: VecOpVVO<IRandom>;
/**
* Sets `out` to random nD vector with each component in the semi-open interval
* defined by `[min,max)`. Multi-method.
*
* @param a - vector
* @param b - input vector (min. bounds)
* @param c - input vector (max. bounds)
* @param rnd - PRNG instance
*/
export declare const randMinMax: MultiVecOpVVO<IRandom>;
//# sourceMappingURL=rand-minmax.d.ts.map