xtorcga
Version:
Xtor Compute Geometry Algorithm Libary 计算几何算法库
26 lines (25 loc) • 821 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Sphere = void 0;
var Vec3_1 = require("../../math/Vec3");
var Sphere = /** @class */ (function () {
function Sphere(center, radius) {
if (center === void 0) { center = Vec3_1.v3(); }
if (radius === void 0) { radius = 0; }
this.center = center;
this.radius = radius;
}
Sphere.prototype.applyMat4 = function (mat) {
throw new Error('Method not implemented.');
};
Sphere.prototype.copy = function (sphere) {
this.center.copy(sphere.center);
this.radius = sphere.radius;
return this;
};
Sphere.prototype.clone = function () {
return new Sphere().copy(this);
};
return Sphere;
}());
exports.Sphere = Sphere;