import { Point , Rectangle } from '@pixi/math' ; import type { BVHObject } from './BVHObject' ; internal memberof class export class BVHObjectInfo { public bounds : Rectangle ; public boundaryLength : number ; public centroid : Point ; constructor ( ) { member this . bounds = new Rectangle ( ) ; member this . boundaryLength = 0 ; member this . centroid = new Point ( ) ; } param { BVHObject } object returns { BVHObjectInfo } set ( object ) { object . getBounds ( this . bounds ) ; object . getCentroid ( this . centroid ) ; this . boundaryLength = object . getBoundaryLength ( ) ; return this ; } }