mdx-m3-viewer
Version:
A browser WebGL model viewer. Mainly focused on models of the games Warcraft 3 and Starcraft 2.
19 lines • 512 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
/**
* A bounding sphere.
*/
class BoundingSphere {
constructor() {
this.min = new Float32Array(3);
this.max = new Float32Array(3);
this.radius = 0;
}
load(stream) {
stream.readFloat32Array(this.min);
stream.readFloat32Array(this.max);
this.radius = stream.readFloat32();
}
}
exports.default = BoundingSphere;
//# sourceMappingURL=boundingsphere.js.map