UNPKG

@thi.ng/vectors

Version:

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

24 lines 732 B
import type { ReadonlyVec } from "./api.js"; /** * Syntax sugar for `sign(signedArea2(a, b, c))`. * * - [`sign`](https://docs.thi.ng/umbrella/math/functions/sign.html) * - {@link signedArea2} * * @param a - * @param b - * @param c - * @param eps - zero tolerance for sign computation */ export declare const corner2: (a: ReadonlyVec, b: ReadonlyVec, c: ReadonlyVec, eps?: number) => 0 | 1 | -1; /** * Returns true, if the triangle `a`, `b`, `c` is in clockwise order, * i.e. if `corner2(a,b,c)` returned -1. * * @param a - * @param b - * @param c - * @param eps - */ export declare const clockwise2: (a: ReadonlyVec, b: ReadonlyVec, c: ReadonlyVec, eps?: number) => boolean; //# sourceMappingURL=clockwise.d.ts.map