import { mat4, vec2 } from 'gl-matrix'; import type Scene from '../Scene'; import Traversable from '../Traversable'; export default class GenericHitRegion extends Traversable { readonly isHitRegion = true; worldMatrix: mat4; scene: Scene; setWorldMatrix(worldMatrix: mat4): void; } export interface HitRegion { isHitRegion: true; worldMatrix: mat4; scene: Scene; setWorldMatrix: (worldMatrix: mat4) => void; test: (coords: vec2) => unknown; }