So I am trying to make a script for my robotics project where I take in a series of points, inject multiple more closely spaced points in between them, and make the points into a curve. So far, I was able to do all of the following except the end. The 2D array that had all the closely spaced points needs to be plugged into the function to return smoother points. I have the 2D array and I know it is there because I can print out the array to the console and it shows. It says the name of the 2D array is not present even though it is in another function with a return type returning the 2D array.
This is the error I recieve.
As you can see the 2D array is defined but other function to use them is not seeing it for some reason. Any help would be greatly appreciated. Thanks in advance!