INNER CODE UNIT · TypeScript

AABB

voxelize/voxelize · packages/aabb/src/index.ts:4

export class AABB {
  constructor(
    public minX: number,
    public minY: number,
    public minZ: number,
    public maxX: number,
    public maxY: number,
    public maxZ: number,
  ) {}

  /**
   * Width of the AABB, maxX - minX.
   *
   * @readonly
   */
  get width() {
    return this.maxX - this.minX;
  }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…