UNPKG

@thi.ng/vectors

Version:

Optimized 2d/3d/4d and arbitrary length vector operations, support for memory mapping/layouts

42 lines 1.15 kB
import type { MultiVecOpVNN, VecOpVNN } from "./api.js"; /** * Componentwise constrains value of given 2D vector `a` to the closed interval * defined by scalars `b` and `c`. * * @param o - output vector * @param a - input vector * @param b - scalar * @param c - scalar */ export declare const clampN2: VecOpVNN; /** * Componentwise constrains value of given 3D vector `a` to the closed interval * defined by scalars `b` and `c`. * * @param o - output vector * @param a - input vector * @param b - scalar * @param c - scalar */ export declare const clampN3: VecOpVNN; /** * Componentwise constrains value of given 3D vector `a` to the closed interval * defined by scalars `b` and `c`. * * @param o - output vector * @param a - input vector * @param b - scalar * @param c - scalar */ export declare const clampN4: VecOpVNN; /** * Componentwise constrains value of given nD vector `a` to the closed interval * defined by scalars `b` and `c`. * * @param o - output vector * @param a - input vector * @param b - scalar * @param c - scalar */ export declare const clampN: MultiVecOpVNN; //# sourceMappingURL=clampn.d.ts.map