xtorcga
Version:
Xtor Compute Geometry Algorithm Libary 计算几何算法库
45 lines (44 loc) • 1.58 kB
JavaScript
;
/*
* @Description :
* @Author : 赵耀圣
* @QQ : 549184003
* @Date : 2021-03-23 15:38:13
* @LastEditTime : 2021-03-23 16:05:01
* @FilePath : \cga.js\src\IKanimation\constaint\hinge.ts
*/
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.HingeContraint = void 0;
var Vec3_1 = require("src/math/Vec3");
var constraint_1 = require("./constraint");
/**
* @description : 铰链约束
* @example :
*/
var HingeContraint = /** @class */ (function (_super) {
__extends(HingeContraint, _super);
function HingeContraint() {
var _this = _super.call(this) || this;
_this.axis = Vec3_1.Vec3.UnitX;
//旋转的最小角度
_this.minAngle = -Infinity;
//旋转的最大角度
_this.maxAngle = +Infinity;
return _this;
}
return HingeContraint;
}(constraint_1.TypedConstraint));
exports.HingeContraint = HingeContraint;