UNPKG

@thi.ng/shader-ast-stdlib

Version:

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

11 lines 501 B
/** * Predicate function to check if given point `p` is inside the circle defined * by `pos` and `radius`. */ export declare const isPointInCircle: import("@thi.ng/shader-ast").TaggedFn3<"vec2", "vec2", "float", "bool">; /** * Predicate function to check if given point `p` is inside the axis-aligned * rect defined by `pos` and `size`. Branchless. */ export declare const isPointInRect: import("@thi.ng/shader-ast").TaggedFn3<"vec2", "vec2", "vec2", "bool">; //# sourceMappingURL=point.d.ts.map