Chipmunk2D Pro API Reference  7.0.1
 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 that the signed area of the triangle a, b, c is positive.
8 // Compiler optimizations for associativity break certain edge cases (ex: when a or b equals c) that lead to excessive EPA iteration.
9 cpBool cpCheckSignedArea(const cpVect a, const cpVect b, const cpVect c);