UNPKG

aabb-tree

Version:

Basic implementation of the AABB-Tree (Axis Aligned Box Bounding Tree)

16 lines (15 loc) 485 B
import AABB from '../AABB'; import IAABBShape from '../IAABBShape'; import Vector3 from '../Vector3'; export default class Cylinder implements IAABBShape { private referencePoint; private radius; private depth; private radiusSquared; constructor(referencePoint: Vector3, radius: number, depth: number); GetAABB(): AABB; ContainsPoint(point: Vector3): boolean; readonly ReferencePoint: Vector3; readonly Radius: number; readonly Depth: number; }