Panda3D
Macros
triangulator.cxx File Reference

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. More...

#include "triangulator.h"
#include "randomizer.h"

Go to the source code of this file.

Macros

#define C_EPS   1.0e-7 /* tolerance value: Used for making */
 
#define CROSS(v0, v1, v2)
 
#define CROSS_SINE(v0, v1)   ((v0).x * (v1).y - (v1).x * (v0).y)
 
#define DOT(v0, v1)   ((v0).x * (v1).x + (v0).y * (v1).y)
 
#define FIRSTPT   1 /* checking whether pt. is inserted */
 
#define FP_EQUAL(s, t)   (fabs(s - t) <= C_EPS)
 
#define LASTPT   2
 
#define LENGTH(v0)   (sqrt((v0).x * (v0).x + (v0).y * (v0).y))
 
#define REALLY_BIG   1<<30
 
#define S_LEFT   1 /* for merge-direction */
 
#define S_RIGHT   2
 
#define SP_2DN_LEFT   6
 
#define SP_2DN_RIGHT   7
 
#define SP_2UP_2DN   3
 
#define SP_2UP_LEFT   4
 
#define SP_2UP_RIGHT   5
 
#define SP_NOSPLIT   -1
 
#define SP_SIMPLE_LRDN   2
 
#define SP_SIMPLE_LRUP   1 /* for splitting trapezoids */
 
#define ST_INVALID   2
 
#define ST_VALID   1 /* for trapezium state */
 
#define T_SINK   3
 
#define T_X   1
 
#define T_Y   2
 
#define TR_FROM_DN   2
 
#define TR_FROM_UP   1 /* for traverse-direction */
 
#define TRI_LHS   1
 
#define TRI_RHS   2
 

Detailed Description

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.

All rights reserved.

All use of this software is subject to the terms of the revised BSD license. You should have received a copy of this license along with this source code in a file named "LICENSE."

Author
drose
Date
2007-01-18

Definition in file triangulator.cxx.

Macro Definition Documentation

◆ CROSS

#define CROSS (   v0,
  v1,
  v2 
)
Value:
(((v1).x - (v0).x)*((v2).y - (v0).y) - \
((v1).y - (v0).y)*((v2).x - (v0).x))

Definition at line 329 of file triangulator.cxx.