10 lines
569 B
C
10 lines
569 B
C
#include "chipmunk/cpVect.h"
|
|
|
|
// This is a private header for functions (currently just one) that need strict floating point results.
|
|
// It was easier to put this in it's own file than to fiddle with 4 different compiler specific pragmas or attributes.
|
|
// "Fast math" should be disabled here.
|
|
|
|
// Check that the signed area of the triangle a, b, c is positive.
|
|
// Compiler optimizations for associativity break certain edge cases (ex: when a or b equals c) that lead to excessive EPA iteration.
|
|
cpBool cpCheckSignedArea(const cpVect a, const cpVect b, const cpVect c);
|