import { mat3, vec2 } from 'gl-matrix'; import { AABB } from '../aabb'; import { Mesh, MeshOBBNode } from '../mesh'; import { MassDistribution, Shape } from '../types'; import { Polygon } from './polygon'; export declare class MeshShape implements Shape, MassDistribution { readonly mesh: Readonly; readonly transformOrigin: boolean; readonly radius: number; readonly obbTree: MeshOBBNode; readonly triangles: Polygon[]; private readonly hull; constructor(mesh: Readonly, transformOrigin?: boolean); testPoint(point: vec2): boolean; support(out: vec2, dir: vec2): vec2; aabb(out: AABB, transform: mat3): AABB; inetria(mass: number): number; private getConvexHull; private transformOriginToCentroid; private indexOfFarhestPoint; private getRadius; }