Back to index

plt-scheme  4.2.1
Classes | Defines | Typedefs | Functions
Region.cxx File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  FPoint

Defines

#define wxPI   3.141592653589793
#define CAIRO_DEV   ((cairo_t *)target)
#define CMD_CLOSE   1.0
#define CMD_MOVE   2.0
#define CMD_LINE   3.0
#define CMD_CURVE   4.0
#define ROTATE_XY(x, y)

Typedefs

typedef int cairo_matrix_p

Functions

static double my_round (double d)

Class Documentation

struct FPoint

Definition at line 369 of file Region.cxx.

Class Members
double x
double y

Define Documentation

#define CAIRO_DEV   ((cairo_t *)target)

Definition at line 9 of file Region.cxx.

#define CMD_CLOSE   1.0

Definition at line 1913 of file Region.cxx.

#define CMD_CURVE   4.0

Definition at line 1916 of file Region.cxx.

#define CMD_LINE   3.0

Definition at line 1915 of file Region.cxx.

#define CMD_MOVE   2.0

Definition at line 1914 of file Region.cxx.

#define ROTATE_XY (   x,
  y 
)
Value:
{ xtmp1 = x; ytmp1 = y;             \
                          xtmp2 = (xx * xtmp1) + (xy * ytmp1); \
                          ytmp2 = (yy * ytmp1) + (yx * xtmp1); \
                          x = xtmp2; y = ytmp2; }

Definition at line 1918 of file Region.cxx.

#define wxPI   3.141592653589793

Definition at line 6 of file Region.cxx.


Typedef Documentation

Definition at line 38 of file Region.cxx.


Function Documentation

static double my_round ( double  d) [static]

Definition at line 2512 of file Region.cxx.

{
  double i, frac;

  if (d < 0) {
    frac = modf(d, &i);
    if (frac < -0.5)
      return i - 1;
    else
      return i;
  } else {
    frac = modf(d, &i);
    if (frac < 0.5)
      return i;
    else
      return i + 1;
  }
}

Here is the caller graph for this function: