@iamnotstone/aabb-tree
Version:
Basic implementation of the AABB-Tree (Axis Aligned Box Bounding Tree)
16 lines (15 loc) • 491 B
TypeScript
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;
get ReferencePoint(): Vector3;
get Radius(): number;
get Depth(): number;
}