#include "region.hh"
#include "worldfile.hh"
Go to the source code of this file.
◆ angle_change()
util; How much was v1 rotated to get to v2?
Definition at line 354 of file block.cc.
◆ angles_sum()
util; finds sum of angle changes, from each vertex to the next one (in current ordering), wrapping around.
Definition at line 387 of file block.cc.
◆ canonicalize_winding()
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 413 of file block.cc.
◆ find_vectors()
util; find vectors between adjacent points, pts[next] - pts[cur]
Definition at line 371 of file block.cc.
◆ is_canonical_winding()
static bool is_canonical_winding |
( |
vector< point_t > const & |
ps | ) |
|
|
static |
◆ pi_ize()
util; puts angle into -pi/2, pi/2
Definition at line 343 of file block.cc.
◆ positivize()
util; puts angle into [0, 2pi)
Definition at line 334 of file block.cc.
◆ swap()
void swap |
( |
int & |
a, |
|
|
int & |
b |
|
) |
| |