nature-of-code / noc-examples-processing

Repository for example code from The Nature of Code book
MIT License
2.56k stars 950 forks source link

Exercise_8_08_09_TreeArrayListLeaves 'pos' and 'loc' names #79

Closed ghost closed 7 years ago

ghost commented 7 years ago

The-Nature-of-Code-Examples-master\chp08_fractals\Exercise_8_08_09_TreeArrayListLeaves\Leaf.pde

This:

class Leaf {
  PVector pos;

  Leaf(PVector l) {
    loc = l.get();
  }

Should be this:

class Leaf {
  PVector pos;

  Leaf(PVector l) {
    pos = l.get();
 }

or this:

class Leaf {
  PVector loc;

  Leaf(PVector l) {
    loc = l.get();
 }