/[classpath]/classpath/java/awt/geom/Area.java
ViewVC logotype

Diff of /classpath/java/awt/geom/Area.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by mkoch, Tue Nov 16 10:59:34 2004 UTC revision 1.6 by mkoch, Wed Dec 1 20:44:09 2004 UTC
# Line 2631  public class Area implements Shape, Clon Line 2631  public class Area implements Shape, Clon
2631    
2632        double P = (y2 - 2 * y1 + y0);        double P = (y2 - 2 * y1 + y0);
2633        double Q = 2 * (y1 - y0);        double Q = 2 * (y1 - y0);
       double R = y0;  
2634    
2635        double A = (x2 - 2 * x1 + x0);        double A = (x2 - 2 * x1 + x0);
2636        double B = 2 * (x1 - x0);        double B = 2 * (x1 - x0);
       double C = x0;  
2637    
2638        double area = (B * P - A * Q) / 3.0;        double area = (B * P - A * Q) / 3.0;
2639        return (area);        return (area);
# Line 2937  public class Area implements Shape, Clon Line 2935  public class Area implements Shape, Clon
2935        double P = y3 - 3 * y2 + 3 * y1 - y0;        double P = y3 - 3 * y2 + 3 * y1 - y0;
2936        double Q = 3 * (y2 + y0 - 2 * y1);        double Q = 3 * (y2 + y0 - 2 * y1);
2937        double R = 3 * (y1 - y0);        double R = 3 * (y1 - y0);
       double S = y0;  
2938    
2939        double A = x3 - 3 * x2 + 3 * x1 - x0;        double A = x3 - 3 * x2 + 3 * x1 - x0;
2940        double B = 3 * (x2 + x0 - 2 * x1);        double B = 3 * (x2 + x0 - 2 * x1);
2941        double C = 3 * (x1 - x0);        double C = 3 * (x1 - x0);
       double D = x0;  
2942    
2943        double area = (B * P - A * Q) / 5.0 + (C * P - A * R) / 2.0        double area = (B * P - A * Q) / 5.0 + (C * P - A * R) / 2.0
2944                      + (C * Q - B * R) / 3.0;                      + (C * Q - B * R) / 3.0;

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26