|
|
|
@ -40,7 +40,9 @@ function calcRectangleFromPoints(points) {
|
|
|
|
// const angleDeg = leftAngleRad * 180 / Math.PI - bottomAngleRad * 180 / Math.PI;
|
|
|
|
// const angleDeg = leftAngleRad * 180 / Math.PI - bottomAngleRad * 180 / Math.PI;
|
|
|
|
// const angleDeg = bottomAngleRad * 180 / Math.PI;
|
|
|
|
// const angleDeg = bottomAngleRad * 180 / Math.PI;
|
|
|
|
const angleDeg = leftAngleRad * 180 / Math.PI;
|
|
|
|
const angleDeg = leftAngleRad * 180 / Math.PI;
|
|
|
|
console.log(angleDeg)
|
|
|
|
console.log('1----', leftAngleRad * 180 / Math.PI - bottomAngleRad * 180 / Math.PI)
|
|
|
|
|
|
|
|
console.log('2----', bottomAngleRad * 180 / Math.PI)
|
|
|
|
|
|
|
|
console.log('3----', leftAngleRad * 180 / Math.PI)
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
width: Number(width.toFixed(2)), height: Number(height.toFixed(2)), angle: Number(angleDeg.toFixed(6))
|
|
|
|
width: Number(width.toFixed(2)), height: Number(height.toFixed(2)), angle: Number(angleDeg.toFixed(6))
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|