UNPKG

@tolokoban/tgd

Version:

ToloGameDev library for WebGL2

15 lines 644 B
import { TgdDataset } from "../dataset"; import { TgdVec3 } from "../math"; /** * Compute the bounding box of a Dataset. * @param dataset * @param attPositionName Name of an atttribute of type `vec3` holding the vertices positions. * @param minVector If specified, it will hold the min bounding box value. * @param maxVector If specified, it will hold the max bounding box value. * @returns */ export declare function tgdComputeBoundingBox3D(dataset: Readonly<TgdDataset>, attPositionName?: string, minVector?: TgdVec3, maxVector?: TgdVec3): { min: Readonly<TgdVec3>; max: Readonly<TgdVec3>; }; //# sourceMappingURL=bbox.d.ts.map