You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
421 B

4 months ago
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.vertical = vertical;
/**
* 计算二维向量的垂直向量
* @param out
* @param v
* @param flag
*/
function vertical(out, v, flag) {
if (flag) {
out[0] = v[1];
out[1] = -1 * v[0];
}
else {
out[0] = -1 * v[1];
out[1] = v[0];
}
return out;
}
//# sourceMappingURL=vertical.js.map