/**
 * Calculate the distance a circular saw will cut through a piece of material.
 *
 * @param diameter The diameter of the circular saw blade.
 * @param depth The depth of the material to be cut.
 * @return The length of the cut made by the circular saw.
 */
fun calculateCircularSawCutDistance(diameter: Double, depth: Double): Double {

    var cutLength = 0.0

    // Calculate the circumference of the circular saw blade
    val circumference = 3.14159 * diameter

    // While the depth of the cut is greater than 0,
    // continue cutting until the material is completely cut through
    var remainingDepth = depth
    while (remainingDepth > 0) {
        // Add the circumference of the circular saw blade to the cutLength
        cutLength += circumference

        // Decrement the remainingDepth by the diameter of the circular saw blade
        remainingDepth -= diameter
    }

    return cutLength
}
/**
 * Calculate the distance a circular saw will cut through a piece of material.
 *
 * @param diameter The diameter of the circular saw blade.
 * @param depth The depth of the material to be cut.
 * @return The length of the cut made by the circular saw.
 */
fun calculateCircularSawCutDistance(diameter: Double, depth: Double): Double {
/**
 * Calculate the distance a circular saw will cut through a piece of material.
 *
 * @param diameter The diameter of the circular saw blade.
 * @param depth The depth of the material to be cut.
 * @return The length of the cut made by the circular saw.
 */
fun calculateCircularSawCutDistance(diameter: Double, depth: Double): Double {

    var cutLength = 0.0

    // Calculate the circumference of the circular saw blade
    val circumference = 3.14159 * diameter

    // While the depth of the cut is greater than 0,
    // continue cutting until the material is completely cut through
    var remainingDepth = depth
    while (remainingDepth > 0) {
        // Add the circumference of the circular saw blade to the cutLength
        cutLength += circumference

        // Decrement the remainingDepth by the diameter of the circular saw blade
        remainingDepth -= diameter
    }

    return cutLength
}