Rewrite collision detection
This commit is contained in:
parent
7b472fe18d
commit
60ab8f3c73
35 changed files with 292 additions and 258 deletions
|
|
@ -40,8 +40,8 @@ namespace SCollision {
|
|||
max(initMax)
|
||||
{}
|
||||
AABB(const SkRect& r):
|
||||
min(r.TL),
|
||||
max(r.BR)
|
||||
min(r.TL().x(), r.TL().y()),
|
||||
max(r.BR().x(), r.BR().y())
|
||||
{}
|
||||
Vector<T, 2> min;
|
||||
Vector<T, 2> max;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue