Hi, I am new to processing and am currently trying to program a little spring.
The point is, whenever I try to run the code I get:
"The constructor DualSpring(PVector, PVector, float, float, float, float, float, float, float)" is undefined.
After looking for info in google I found people who had problems using the "this" keyword which was the source of the problem in most cases. But I have never used that keyword and yet get this error.
Here I provide every line of code in this program hoping someone will find the cause, however, the lines related to the problem should be the three I highlighted.
//This is the constructor declaration, it can also be found in the DualSpring class
//DualSpring(PVector c1, PVector c2, float m1, float m2, float r1, float r2, float sl, float s, float d)
s1 = new DualSpring(c1, c2, m1, m2, r1, r2, sl, s, d); //I also tried creating the PVector object within the params list, however the result was the same //s1 = new DualSpring(new PVector(0.25 * width, 20, 0.0), new PVector(0.25 * width, 100, 0.0), m1, m2, r1, r2, sl, s, d);
//Here I create the second spring for the test I wanted to perform
c1.set(0.75 * width, 20, 0.0);
c2.set(0.75 * width, 100, 0.0);
m1 = 2.0;
m2 = m1;
r1 = 20;
r2 = r1;
sl = 80;
s = 0.2;
d = 0.2;