[wadalabfont-kit] / java / Line.java  

Diff of /java/Line.java

Parent Directory | Revision Log

version 1.1, Thu Dec 28 08:54:23 2000 UTC version 1.2, Thu Jan 4 10:23:56 2001 UTC
Line 8 
Line 8 
     ret.addElement(p0);      ret.addElement(p0);
     ret.addElement(p1);      ret.addElement(p1);
   }    }
     public OutlineComponent plus(Point point){
       return new Line(p0.plus(point),p1.plus(point));
     }
     public OutlineComponent rot(double theta){
       return new Line(p0.rot(theta),p1.rot(theta));
     }
     public OutlineComponent times(double ratio){
       return new Line(p0.times(ratio),p1.times(ratio));
     }
     public OutlineComponent timesY(double ratio){
       return new Line(p0.timesY(ratio),p1.timesY(ratio));
     }
     public Point firstPoint(){ return p0;}
     public Point lastPoint(){ return p1;}
     public String toString(){
       return "Line("+p0+","+p1+")";
     }
 }  }


Generate output suitable for use with a patch program
Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

ktanaka

Powered by ViewCVS 1.0-dev

ViewCVS and CVS Help