nature-of-code / noc-examples-processing

Repository for example code from The Nature of Code book

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exercise_8_08_09_TreeArrayListLeaves 'pos' and 'loc' names

opened this issue · comments

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();
 }