topical media & game development

talk show tell print

graphic-processing-algorithm-Ch03-p66-MyPoint.pde / pde



  class MyPoint {
    float x, y; // members
    //Constructor
    MyPoint(float xin, float yin){
      x = xin;
      y = yin;
    }
    //Method
    void plot(){
      ellipse(x,y,5,5);
    }
  }
  


(C) Æliens 04/09/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.