chipmunk-rs 0.1.1

Rust bindings to the Chipmunk2D physics engine.
1
2
3
4
5
6
7
8
9
10
#include "chipmunk/cpRobust.h"


cpBool
cpCheckSignedArea(const cpVect a, const cpVect b, const cpVect c)
{
	const cpVect v0 = cpvsub(b, a);
	const cpVect v1 = cpvadd(cpvsub(c, a), cpvsub(c, b));
	return (v0.x*v1.y) > (v1.x*v0.y);
}