export class GeometryArray { public array : TypedArray ; public itemSize : ValidItemSize ; public itemCount : number ; constructor ( array , itemSize ) { this . array = array ; this . itemSize = itemSize ; this . itemCount = array . length / itemSize ; } } export class VertexAttributeArray extends GeometryArray { public array ! : Float32Array ; constructor ( array , itemSize ) { super ( new Float32Array ( array ) , itemSize ) ; } } export class IndexArray extends GeometryArray { public array ! : Uint16Array ; constructor ( array ) { super ( new Uint16Array ( array ) , 1 ) ; } }