PVector Question
in
Programming Questions
•
2 years ago
Hi,
I'm using the following code, but I have the error "cannot covert from void to PVector", but I don't really know what is happening.
loc_2[] is an array of PVector, the function sub should work normally.
PVector perp0 = loc_2[i].sub(loc_2[i+1]); //error
PVector perp1 = perp0.cross( new PVector( 0, 1, 0 ) ).normalize();
PVector perp2 = perp0.cross( perp1 ).normalize();
perp1 = perp0.cross( perp2 ).normalize();
Thanks for the help
David
1