UNPKG

pex-geom

Version:

Geometry intersection and bounding volume helpers for PEX.

24 lines (23 loc) 835 B
/** * An axis-aligned bounding box defined by two min and max 3D points (eg. [[minX, minY, minZ], [maxX, maxY, maxZ]]). */ export type aabb = number[][]; /** * A plane defined by a 3D point and a normal vector perpendicular to the plane’s surface (eg. [[pointX, pointY, pointZ], [normalX, normalY, normalZ]]). */ export type plane = number[][]; /** * A ray defined by a starting 3D point origin and a 3D direction vector (eg. [[originX, originY, originZ], [directionX, directionY, directionZ]). */ export type ray = number[][]; /** * A rectangle defined by two diagonally opposite 2D points (eg. [[minX, minY], [maxX, maxY]]). */ export type rect = number[][]; /** * A triangle defined by three 3D points. */ export type triangle = number[][]; export type vec2 = any; export type vec3 = any; export type TypedArray = any;