Functions
block.cc File Reference
#include "region.hh"
#include "worldfile.hh"
#include <algorithm>
#include <functional>
Include dependency graph for block.cc:

Go to the source code of this file.

Functions

static radians_t angle_change (point_t v1, point_t v2)
 util; How much was v1 rotated to get to v2?
static radians_t angles_sum (vector< point_t > const &vs)
static void canonicalize_winding (vector< point_t > &pts)
static vector< point_tfind_vectors (vector< point_t > const &pts)
 util; find vectors between adjacent points, pts[next] - pts[cur]
static bool is_canonical_winding (vector< point_t > const &ps)
 Util.
static void pi_ize (radians_t &angle)
 util; puts angle into -pi/2, pi/2
static void positivize (radians_t &angle)
 util; puts angle into [0, 2pi)
void swap (int &a, int &b)

Function Documentation

static radians_t angle_change ( point_t  v1,
point_t  v2 
) [static]

util; How much was v1 rotated to get to v2?

Definition at line 448 of file block.cc.

static radians_t angles_sum ( vector< point_t > const &  vs) [static]

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.

static vector<point_t> find_vectors ( vector< point_t > const &  pts) [static]

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.

Definition at line 493 of file block.cc.

static void pi_ize ( radians_t angle) [static]

util; puts angle into -pi/2, pi/2

Definition at line 440 of file block.cc.

static void positivize ( radians_t angle) [static]

util; puts angle into [0, 2pi)

Definition at line 433 of file block.cc.

void swap ( int &  a,
int &  b 
)

Definition at line 255 of file block.cc.



stage
Author(s): Richard Vaughan , Brian Gerkey , Reed Hedges , Andrew Howard , Toby Collett , Pooya Karimian , Jeremy Asher , Alex Couture-Beil , Geoff Biggs , Rich Mattes , Abbas Sadat
autogenerated on Thu Aug 27 2015 15:20:57