Graphviz  2.41.20171026.1811
Macros | Functions
geom.c File Reference
#include "config.h"
#include "geom.h"
#include "geomprocs.h"
Include dependency graph for geom.c:

Go to the source code of this file.

Macros

#define SMALL   0.0000000001
 
#define dot(v, w)   (v.x*w.x+v.y*w.y)
 

Functions

box mkbox (point p, point q)
 
boxf mkboxf (pointf p, pointf q)
 
int lineToBox (pointf p, pointf q, 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)
 
boxf flip_rec_boxf (boxf b, pointf p)
 
double ptToLine2 (pointf a, pointf b, pointf p)
 
int line_intersect (pointf a, pointf b, pointf c, pointf d, pointf *p)
 

Macro Definition Documentation

#define dot (   v,
 
)    (v.x*w.x+v.y*w.y)

Definition at line 400 of file geom.c.

Referenced by line_intersect(), lu_solve(), norm(), and power_iteration().

#define SMALL   0.0000000001

Definition at line 385 of file geom.c.

Referenced by line_intersect(), and ptToLine2().

Function Documentation

point ccwrotatep ( point  p,
int  ccwrot 
)

Definition at line 292 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 320 of file geom.c.

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

Referenced by ccwrotatepf(), and cwrotatepf().

point cwrotatep ( point  p,
int  cwrot 
)

Definition at line 236 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 264 of file geom.c.

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

Referenced by ccwrotatepf(), and cwrotatepf().

box flip_rec_box ( box  b,
point  p 
)
inline

Definition at line 348 of file geom.c.

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

boxf flip_rec_boxf ( boxf  b,
pointf  p 
)

Definition at line 364 of file geom.c.

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

int line_intersect ( pointf  a,
pointf  b,
pointf  c,
pointf  d,
pointf p 
)

Definition at line 407 of file geom.c.

References dot, and SMALL.

int lineToBox ( pointf  p,
pointf  q,
boxf  b 
)

Definition at line 89 of file geom.c.

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

box mkbox ( point  p,
point  q 
)

Definition at line 25 of file geom.c.

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

boxf mkboxf ( pointf  p,
pointf  q 
)

Definition at line 46 of file geom.c.

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

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

Definition at line 390 of file geom.c.

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

void rect2poly ( pointf p)

Definition at line 201 of file geom.c.

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

Referenced by emit_map_rect().