Change point precision to 3 decimals
This commit is contained in:
parent
14e3f27e0e
commit
454e19a3b5
|
|
@ -43,7 +43,7 @@ module.exports = {
|
||||||
nx = (cos * (adj_x - at_x)) + (sin * (adj_y - at_y)) + at_x,
|
nx = (cos * (adj_x - at_x)) + (sin * (adj_y - at_y)) + at_x,
|
||||||
ny = (cos * (adj_y - at_y)) - (sin * (adj_x - at_x)) + at_y;
|
ny = (cos * (adj_y - at_y)) - (sin * (adj_x - at_x)) + at_y;
|
||||||
|
|
||||||
const point_str = `${nx.toFixed(2)} ${ny.toFixed(2)}`;
|
const point_str = `${nx.toFixed(3)} ${ny.toFixed(3)}`;
|
||||||
return point_str;
|
return point_str;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue