34 cpBB bb = {l, b, r, t};
41 return cpBBNew(p.x - r, p.y - r, p.x + r, p.y + r);
47 return (a.l <= b.r && b.l <= a.r && a.b <= b.t && b.b <= a.t);
53 return (bb.l <= other.l && bb.r >= other.r && bb.b <= other.b && bb.t >= other.t);
59 return (bb.l <= v.x && bb.r >= v.x && bb.b <= v.y && bb.t >= v.y);
92 return (bb.r - bb.l)*(bb.t - bb.b);
104 cpFloat idx = 1.0f/(b.x - a.x);
105 cpFloat tx1 = (bb.l == a.x ? -INFINITY : (bb.l - a.x)*idx);
106 cpFloat tx2 = (bb.r == a.x ? INFINITY : (bb.r - a.x)*idx);
110 cpFloat idy = 1.0f/(b.y - a.y);
111 cpFloat ty1 = (bb.b == a.y ? -INFINITY : (bb.b - a.y)*idy);
112 cpFloat ty2 = (bb.t == a.y ? INFINITY : (bb.t - a.y)*idy);
116 if(tymin <= txmax && txmin <= tymax){
120 if(0.0 <= max && min <= 1.0)
return cpfmax(min, 0.0);