UNPKG

@thi.ng/shader-ast-stdlib

Version:

Function collection for modular GPGPU / shader programming with @thi.ng/shader-ast

20 lines 607 B
import type { FloatTerm } from "@thi.ng/shader-ast"; /** * Computes 2D "cross product" of given vectors. Also see * {@link crossC2}. * * @param a - * @param b - */ export declare const cross2: import("@thi.ng/shader-ast").TaggedFn2<"vec2", "vec2", "float">; /** * Inline function. Computes 2D cross product of given individual * components: ax * by - ay * bx * * @param ax - * @param ay - * @param bx - * @param by - */ export declare const crossC2: (ax: FloatTerm, ay: FloatTerm, bx: FloatTerm, by: FloatTerm) => import("@thi.ng/shader-ast").Op2<"float">; //# sourceMappingURL=cross2.d.ts.map