[dali_2.3.21] Merge branch 'devel/master'
[platform/core/uifw/dali-toolkit.git] / dali-physics / third-party / chipmunk2d / src / cpRobust.c
1 #include "chipmunk/cpRobust.h"
2
3
4 cpBool
5 cpCheckPointGreater(const cpVect a, const cpVect b, const cpVect c)
6 {
7         return (b.y - a.y)*(a.x + b.x - 2*c.x) > (b.x - a.x)*(a.y + b.y - 2*c.y);
8 }
9
10 cpBool
11 cpCheckAxis(cpVect v0, cpVect v1, cpVect p, cpVect n){
12         return cpvdot(p, n) <= cpfmax(cpvdot(v0, n), cpvdot(v1, n));
13 }