@antv/util
Version:
> AntV 底层依赖的工具库,不建议在自己业务中使用。
10 lines • 352 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.rotateVector = void 0;
function rotateVector(x, y, rad) {
var X = x * Math.cos(rad) - y * Math.sin(rad);
var Y = x * Math.sin(rad) + y * Math.cos(rad);
return { x: X, y: Y };
}
exports.rotateVector = rotateVector;
//# sourceMappingURL=rotate-vector.js.map