-
Notifications
You must be signed in to change notification settings - Fork 4
/
types.js
25 lines (19 loc) · 909 Bytes
/
types.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/**
* @typedef {number[][]} aabb An axis-aligned bounding box defined by two min and max 3D points (eg. [[minX, minY, minZ], [maxX, maxY, maxZ]]).
*/
/**
* @typedef {number[][]} plane A plane defined by a 3D point and a normal vector perpendicular to the plane’s surface (eg. [[pointX, pointY, pointZ], [normalX, normalY, normalZ]]).
*/
/**
* @typedef {number[][]} ray A ray defined by a starting 3D point origin and a 3D direction vector (eg. [[originX, originY, originZ], [directionX, directionY, directionZ]).
*/
/**
* @typedef {number[][]} rect A rectangle defined by two diagonally opposite 2D points (eg. [[minX, minY], [maxX, maxY]]).
*/
/**
* @typedef {number[][]} triangle A triangle defined by three 3D points.
*/
/** @typedef {import("pex-math").vec2} vec2 */
/** @typedef {import("pex-math").vec3} vec3 */
/** @typedef {import("pex-math").TypedArray} TypedArray */
export {};