UNPKG

352 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.rotateVector = void 0;
4function rotateVector(x, y, rad) {
5 var X = x * Math.cos(rad) - y * Math.sin(rad);
6 var Y = x * Math.sin(rad) + y * Math.cos(rad);
7 return { x: X, y: Y };
8}
9exports.rotateVector = rotateVector;
10//# sourceMappingURL=rotate-vector.js.map
\No newline at end of file