@antv/util
Version:
> AntV 底层依赖的工具库,不建议在自己业务中使用。
9 lines • 321 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.rotateVector = rotateVector;
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 };
}
//# sourceMappingURL=rotate-vector.js.map
;