fix a test case issue

This commit is contained in:
JFH
2022-01-05 18:00:02 -03:00
parent 958832de9c
commit 1049fd7146
4 changed files with 38 additions and 42 deletions

View File

@@ -476,10 +476,7 @@ describe('utilities bbox', function () {
* @param {module:math.XYObject} origin
* @returns {module:math.XYObject}
*/
function rotatePoint (point, angle, origin) {
if (!origin) {
origin = { x: 0, y: 0 }
}
function rotatePoint (point, angle, origin = { x: 0, y: 0 }) {
const x = point.x - origin.x
const y = point.y - origin.y
const theta = radians(angle)