Chipmunk2D Pro API Reference  7.0.3
 All Classes Functions Variables Typedefs Enumerations Enumerator Properties Groups Pages
cpRobust.h
1 #include "chipmunk/cpVect.h"
2 
3 // This is a private header for functions (currently just one) that need strict floating point results.
4 // It was easier to put this in it's own file than to fiddle with 4 different compiler specific pragmas or attributes.
5 // "Fast math" should be disabled here.
6 
7 // Check if c is to the left of segment (a, b).
8 cpBool cpCheckPointGreater(const cpVect a, const cpVect b, const cpVect c);
9 
10 // Check if p is behind one of v0 or v1 on axis n.
11 cpBool cpCheckAxis(cpVect v0, cpVect v1, cpVect p, cpVect n);