Ignore:
Timestamp:
05/24/17 16:59:40 (7 years ago)
Author:
yushan
Message:

save modif

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/branch_yushan_merged/extern/remap/src/clipper.cpp

    r919 r1146  
    10471047 
    10481048  //create a new edge array ... 
    1049   TEdge *edges = new TEdge [highI +1]; 
     1049  TEdge *edges = new TEdge[highI+1]; 
    10501050 
    10511051  bool IsFlat = true; 
     
    42744274{ 
    42754275  //The equation of a line in general form (Ax + By + C = 0) 
    4276   //given 2 points (x¹,y¹) & (x²,y²) is ... 
    4277   //(y¹ - y²)x + (x² - x¹)y + (y² - y¹)x¹ - (x² - x¹)y¹ = 0 
    4278   //A = (y¹ - y²); B = (x² - x¹); C = (y² - y¹)x¹ - (x² - x¹)y¹ 
    4279   //perpendicular distance of point (x³,y³) = (Ax³ + By³ + C)/Sqrt(A² + B²) 
     4276  //given 2 points (x,y) & (x,y) is ... 
     4277  //(y - y)x + (x - x)y + (y - y)x - (x - x)y = 0 
     4278  //A = (y - y); B = (x - x); C = (y - y)x - (x - x)y 
     4279  //perpendicular distance of point (x,y) = (Ax + By + C)/Sqrt(A + B) 
    42804280  //see http://en.wikipedia.org/wiki/Perpendicular_distance 
    42814281  double A = double(ln1.Y - ln2.Y); 
Note: See TracChangeset for help on using the changeset viewer.