@xtor/cga.js
Version:
Xtor Compute Geometry Algorithm Libary 计算几何算法库
29 lines (28 loc) • 1.12 kB
JavaScript
;
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.Point = void 0;
var Vec3_1 = require("../../math/Vec3");
var Point = /** @class */ (function (_super) {
__extends(Point, _super);
function Point(_x, _y, _z) {
if (_x === void 0) { _x = 0; }
if (_y === void 0) { _y = 0; }
if (_z === void 0) { _z = 0; }
return _super.call(this, _x, _y, _z) || this;
}
return Point;
}(Vec3_1.Vec3));
exports.Point = Point;