修改角度

main
suixy 2 months ago
parent ef1ad45067
commit ac8ac8f6cc

@ -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))
}; };

Loading…
Cancel
Save