/**
 * This function checks the intersection of two aerospace data sets and identifies the elements
 * greater than or equal to a certain threshold using a for loop.
 *
 * @param aerospaceData A list containing (x, y, z) coordinates of aerospace data points.
 * @return A list of tuples containing the aerospace data points that have x, y, and z values greater
 *         than or equal to the threshold.
 */
fun checkIntersections(aerospaceData: List<Triple<Int, Int, Int>>): List<Triple<Int, Int, Int>> {

    val threshold = 1000  // Threshold value for comparison
    
    // Initialize an empty list to store the intersected data points
    val intersectedData = mutableListOf<Triple<Int, Int, Int>>()
    
    // Iterate through the aerospace data using a for loop
    for (data in aerospaceData) {
        val (x, y, z) = data  // Unpack the tuple into individual variables
        
        // Check if x, y, and z values are all greater than or equal to the threshold
        if (x >= threshold && y >= threshold && z >= threshold) {
            intersectedData.add(data)
        }
    }
    
    return intersectedData
}
/**
 * This function checks the intersection of two aerospace data sets and identifies the elements
 * greater than or equal to a certain threshold using a for loop.
 *
 * @param aerospaceData A list containing (x, y, z) coordinates of aerospace data points.
 * @return A list of tuples containing the aerospace data points that have x, y, and z values greater
 *         than or equal to the threshold.
 */
fun checkIntersections(aerospaceData: List<Triple<Int, Int, Int>>): List<Triple<Int, Int, Int>> {
/**
 * This function checks the intersection of two aerospace data sets and identifies the elements
 * greater than or equal to a certain threshold using a for loop.
 *
 * @param aerospaceData A list containing (x, y, z) coordinates of aerospace data points.
 * @return A list of tuples containing the aerospace data points that have x, y, and z values greater
 *         than or equal to the threshold.
 */
fun checkIntersections(aerospaceData: List<Triple<Int, Int, Int>>): List<Triple<Int, Int, Int>> {

    val threshold = 1000  // Threshold value for comparison
    
    // Initialize an empty list to store the intersected data points
    val intersectedData = mutableListOf<Triple<Int, Int, Int>>()
    
    // Iterate through the aerospace data using a for loop
    for (data in aerospaceData) {
        val (x, y, z) = data  // Unpack the tuple into individual variables
        
        // Check if x, y, and z values are all greater than or equal to the threshold
        if (x >= threshold && y >= threshold && z >= threshold) {
            intersectedData.add(data)
        }
    }
    
    return intersectedData
}