xtorcga
Version:
Xtor Compute Geometry Algorithm Libary 计算几何算法库
43 lines (42 loc) • 1.51 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 (b.hasOwnProperty(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.SliderConstraint = void 0;
var Vec3_1 = require("src/math/Vec3");
var constraint_1 = require("./constraint");
/*
* @Description :
* @Author : 赵耀圣
* @QQ : 549184003
* @Date : 2021-03-23 15:38:05
* @LastEditTime : 2021-03-23 16:01:18
* @FilePath : \cga.js\src\IKanimation\constaint\slider.ts
*/
/**
* @description : 滑块约束
* @example :
*/
var SliderConstraint = /** @class */ (function (_super) {
__extends(SliderConstraint, _super);
function SliderConstraint() {
var _this = _super.call(this) || this;
_this.axis = Vec3_1.Vec3.UnitX;
_this.min = 0;
_this.max = 10;
return _this;
}
return SliderConstraint;
}(constraint_1.TypedConstraint));
exports.SliderConstraint = SliderConstraint;