/**
 * Determines whether a given interval is valid within a range.
 *
 * @param start_point The starting point of the range.
 * @param end_point The ending point of the range.
 * @param interval The interval to be checked.
 * @return True if the interval is valid, False otherwise.
 */
fun determineValidInterval(startPoint: Double, endPoint: Double, interval: Double): Boolean {

    if (interval > 0) {
        var point = startPoint + interval
        while (point < endPoint) {
            if (point <= endPoint) {
                point += interval
            } else {
                return false
            }
        }
        return true
    } else {
        return false
    }
}
/**
 * Determines whether a given interval is valid within a range.
 *
 * @param start_point The starting point of the range.
 * @param end_point The ending point of the range.
 * @param interval The interval to be checked.
 * @return True if the interval is valid, False otherwise.
 */
fun determineValidInterval(startPoint: Double, endPoint: Double, interval: Double): Boolean {
/**
 * Determines whether a given interval is valid within a range.
 *
 * @param start_point The starting point of the range.
 * @param end_point The ending point of the range.
 * @param interval The interval to be checked.
 * @return True if the interval is valid, False otherwise.
 */
fun determineValidInterval(startPoint: Double, endPoint: Double, interval: Double): Boolean {

    if (interval > 0) {
        var point = startPoint + interval
        while (point < endPoint) {
            if (point <= endPoint) {
                point += interval
            } else {
                return false
            }
        }
        return true
    } else {
        return false
    }
}