// Calculate radius of arc given height and width
function getRadius(height, width) {
  return (Math.round(100000 * ((height / 2) + ((width * width) / (8 * height)))) / 100000)
}

// Calculate height of arc given radius and width
function getHeight(radius, width) {
  return (Math.round(100000 * (radius - Math.sqrt((radius * radius) - (width * width) / 4))) / 100000)
}

// Calculate width of arc given height and radius
function getWidth(height, radius) {
  return (Math.round(100000 * (Math.sqrt(8 * radius * height - 4 * (height * height)))) / 100000)
}
// Copyright 2000 by Joel Watson.  All rights reserved.