List of PVectors
in
Programming Questions
•
6 months ago
Hello to all,
I have a little Problem. I try to work with PVectors and the Kinect.
I want to store PVectors in a Array, but I don't know how.
When I use
PVector[] Liste;
for (int i=0; i<3;i++) {
Liste[i]=new PVector(1,1,1);
}
Processing says: The local variable Liste may not have been initialized.
I thought, I initialize it in this line Liste[i]=..., but I'm wrong....
I'm new with OOP and I don't know how to correct my mistake.
Thanks a lot for your help
Lawinia
I have a little Problem. I try to work with PVectors and the Kinect.
I want to store PVectors in a Array, but I don't know how.
When I use
PVector[] Liste;
for (int i=0; i<3;i++) {
Liste[i]=new PVector(1,1,1);
}
Processing says: The local variable Liste may not have been initialized.
I thought, I initialize it in this line Liste[i]=..., but I'm wrong....
I'm new with OOP and I don't know how to correct my mistake.
Thanks a lot for your help
Lawinia
1