#include "region.hh"
#include "worldfile.hh"
#include <algorithm>
#include <functional>
Go to the source code of this file.
util; How much was v1 rotated to get to v2?
Definition at line 448 of file block.cc.
util; finds sum of angle changes, from each vertex to the next one (in current ordering), wrapping around.
Definition at line 480 of file block.cc.
static void canonicalize_winding |
( |
vector< point_t > & |
ps | ) |
|
|
static |
util; sums angle changes to see whether it's 2pi or -2pi. 2pi is counter-clockwise winding (which OpenGL requires), -2pi is clockwise. Reverses <pts> when winding is clockwise.
Definition at line 510 of file block.cc.
util; find vectors between adjacent points, pts[next] - pts[cur]
Definition at line 464 of file block.cc.
static bool is_canonical_winding |
( |
vector< point_t > const & |
ps | ) |
|
|
static |
util; puts angle into -pi/2, pi/2
Definition at line 440 of file block.cc.
util; puts angle into [0, 2pi)
Definition at line 433 of file block.cc.
void swap |
( |
int & |
a, |
|
|
int & |
b |
|
) |
| |