Skip to content

Commit

Permalink
Merge pull request #303 from jeffeb3/rectangular-thr
Browse files Browse the repository at this point in the history
fix maxRadius calculation
  • Loading branch information
jeffeb3 authored Oct 24, 2024
2 parents ad20e06 + 19cae21 commit ae0ee62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/features/export/ExportDownloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ const ExportDownloader = ({ showModal, toggleModal }) => {
maxRadius:
machine.type === "rectangular"
? Math.sqrt(
Math.pow(machine.maxX - machine.minX, 2.0) +
Math.pow(machine.maxY - machine.minY, 2.0),
Math.pow((machine.maxX - machine.minX) / 2, 2.0) +
Math.pow((machine.maxY - machine.minY) / 2, 2.0),
)
: machine.maxRadius,
vertices: useSelector(selectConnectedVertices),
Expand Down

0 comments on commit ae0ee62

Please sign in to comment.