home *** CD-ROM | disk | FTP | other *** search
/ Graphics 16,000 / graphics-16000.iso / msdos / fractal / fdesi313 / fdes13s / fdestria.h < prev    next >
Text File  |  1990-01-16  |  545b  |  16 lines

  1.  
  2. typedef struct {
  3.         float row[3];
  4.         float col[3];
  5.     } triangle;
  6. int triangle_new(triangle *t,int tcolor);   /* input triangle coordinates from mouse */
  7. void triangle_show(triangle *t);
  8. int pt_closest_triangle(float x, float y);
  9. float triangle_area(triangle *t);
  10. int transform_affine(triangle *t);       /* return 0 if not affine */
  11. float pt_pt_distance(float x1, float y1, float x2, float y2);
  12. int triangle_corner(triangle *t, float col, float row);
  13. triangles_limits(float *left,float *up,float *right,float *down);
  14.  
  15.  
  16.