/misc/src/release/graphviz-2.18-1/src/graphviz-2.18/lib/common/geom.c File Reference

#include "geom.h"
#include "geomprocs.h"

Include dependency graph for geom.c:

Go to the source code of this file.

Functions

point pointof (int x, int y)
pointf pointfof (double x, double y)
point cvt2pt (pointf p)
pointf cvt2ptf (point p)
box boxof (int llx, int lly, int urx, int ury)
boxf boxfof (double llx, double lly, double urx, double ury)
box mkbox (point p0, point p1)
boxf mkboxf (pointf p0, pointf p1)
point add_points (point p0, point p1)
point sub_points (point p0, point p1)
pointf add_pointfs (pointf p0, pointf p1)
pointf sub_pointfs (pointf p0, pointf p1)
point exch_xy (point p)
pointf exch_xyf (pointf p)
box box_bb (box b0, box b1)
boxf boxf_bb (boxf b0, boxf b1)
box box_intersect (box b0, box b1)
boxf boxf_intersect (boxf b0, boxf b1)
int box_overlap (box b0, box b1)
int boxf_overlap (boxf b0, boxf b1)
int box_contains (box b0, box b1)
int boxf_contains (boxf b0, boxf b1)
int lineToBox (pointf p1, pointf p2, boxf b)
void rect2poly (pointf *p)
point cwrotatep (point p, int cwrot)
pointf cwrotatepf (pointf p, int cwrot)
point ccwrotatep (point p, int ccwrot)
pointf ccwrotatepf (pointf p, int ccwrot)
box flip_rec_box (box b, point p)
double ptToLine2 (pointf a, pointf b, pointf p)


Function Documentation

pointf add_pointfs ( pointf  p0,
pointf  p1 
)

Definition at line 127 of file geom.c.

References pointf_s::x, and pointf_s::y.

point add_points ( point  p0,
point  p1 
)

Definition at line 113 of file geom.c.

References point::x, and point::y.

Referenced by beginpath(), compute_bb(), endpath(), and getPath().

box box_bb ( box  b0,
box  b1 
)

Definition at line 159 of file geom.c.

References box::LL, MAX, MIN, box::UR, point::x, and point::y.

int box_contains ( box  b0,
box  b1 
)

Definition at line 217 of file geom.c.

box box_intersect ( box  b0,
box  b1 
)

Definition at line 183 of file geom.c.

References box::LL, MAX, MIN, box::UR, point::x, and point::y.

int box_overlap ( box  b0,
box  b1 
)

Definition at line 207 of file geom.c.

boxf boxf_bb ( boxf  b0,
boxf  b1 
)

Definition at line 171 of file geom.c.

References boxf::LL, MAX, MIN, boxf::UR, pointf_s::x, and pointf_s::y.

int boxf_contains ( boxf  b0,
boxf  b1 
)

Definition at line 222 of file geom.c.

boxf boxf_intersect ( boxf  b0,
boxf  b1 
)

Definition at line 195 of file geom.c.

References boxf::LL, MAX, MIN, boxf::UR, pointf_s::x, and pointf_s::y.

int boxf_overlap ( boxf  b0,
boxf  b1 
)

Definition at line 212 of file geom.c.

Referenced by overlap_edge().

boxf boxfof ( double  llx,
double  lly,
double  urx,
double  ury 
)

Definition at line 62 of file geom.c.

References boxf::LL, boxf::UR, pointf_s::x, and pointf_s::y.

box boxof ( int  llx,
int  lly,
int  urx,
int  ury 
)

Definition at line 53 of file geom.c.

References box::LL, box::UR, point::x, and point::y.

Referenced by make_html_label(), and makeSelfEdge().

point ccwrotatep ( point  p,
int  ccwrot 
)

Definition at line 450 of file geom.c.

References ccwrotatep(), cwrotatep(), point::x, and point::y.

Referenced by ccwrotatep(), and cwrotatep().

pointf ccwrotatepf ( pointf  p,
int  ccwrot 
)

Definition at line 478 of file geom.c.

References ccwrotatepf(), cwrotatepf(), pointf_s::x, and pointf_s::y.

Referenced by ccwrotatepf(), and cwrotatepf().

point cvt2pt ( pointf  p  ) 

Definition at line 37 of file geom.c.

References point::x, pointf_s::x, point::y, and pointf_s::y.

Referenced by coord(), and layout().

pointf cvt2ptf ( point  p  ) 

Definition at line 45 of file geom.c.

References pointf_s::x, point::x, pointf_s::y, and point::y.

Referenced by spline_edges().

point cwrotatep ( point  p,
int  cwrot 
)

Definition at line 394 of file geom.c.

References ccwrotatep(), cwrotatep(), point::x, and point::y.

Referenced by ccwrotatep(), and cwrotatep().

pointf cwrotatepf ( pointf  p,
int  cwrot 
)

Definition at line 422 of file geom.c.

References ccwrotatepf(), cwrotatepf(), pointf_s::x, and pointf_s::y.

Referenced by ccwrotatepf(), and cwrotatepf().

point exch_xy ( point  p  ) 

Definition at line 141 of file geom.c.

References point::x, and point::y.

pointf exch_xyf ( pointf  p  ) 

Definition at line 150 of file geom.c.

References pointf_s::x, and pointf_s::y.

box flip_rec_box ( box  b,
point  p 
)

Definition at line 506 of file geom.c.

References box::LL, box::UR, point::x, and point::y.

int lineToBox ( pointf  p1,
pointf  p2,
boxf  b 
)

Definition at line 249 of file geom.c.

References boxf::LL, boxf::UR, pointf_s::x, and pointf_s::y.

box mkbox ( point  p0,
point  p1 
)

Definition at line 71 of file geom.c.

References box::LL, box::UR, point::x, and point::y.

boxf mkboxf ( pointf  p0,
pointf  p1 
)

Definition at line 92 of file geom.c.

References boxf::LL, boxf::UR, pointf_s::x, and pointf_s::y.

pointf pointfof ( double  x,
double  y 
)

Definition at line 30 of file geom.c.

References pointf_s::x, and pointf_s::y.

point pointof ( int  x,
int  y 
)

Definition at line 23 of file geom.c.

References point::x, and point::y.

Referenced by compute_bb(), dotneato_postprocess(), and translate_bb().

double ptToLine2 ( pointf  a,
pointf  b,
pointf  p 
)

Definition at line 525 of file geom.c.

References pointf_s::x, and pointf_s::y.

void rect2poly ( pointf p  ) 

Definition at line 359 of file geom.c.

References pointf_s::x, and pointf_s::y.

Referenced by emit_map_rect().

pointf sub_pointfs ( pointf  p0,
pointf  p1 
)

Definition at line 134 of file geom.c.

References pointf_s::x, and pointf_s::y.

point sub_points ( point  p0,
point  p1 
)

Definition at line 120 of file geom.c.

References point::x, and point::y.

Referenced by compute_bb().


Generated on Mon Mar 31 19:04:28 2008 for Graphviz by  doxygen 1.5.1