Example #1
0
 public static bool areIntersecting(Com.Brashmonkey.Spriter.SpriterRectangle rect1
                                    , Com.Brashmonkey.Spriter.SpriterRectangle rect2)
 {
     return(rect1.isInisde(rect2.left, rect2.top) || rect1.isInisde(rect2.right, rect2
                                                                    .top) || rect1.isInisde(rect2.left, rect2.bottom) || rect1.isInisde(rect2.right,
                                                                                                                                        rect2.bottom));
 }
Example #2
0
 public virtual void set(Com.Brashmonkey.Spriter.SpriterRectangle rect)
 {
     if (rect == null)
     {
         return;
     }
     this.bottom = rect.bottom;
     this.left   = rect.left;
     this.right  = rect.right;
     this.top    = rect.top;
     this.calculateSize();
 }
Example #3
0
 public SpriterRectangle(Com.Brashmonkey.Spriter.SpriterRectangle rect)
 {
     this.set(rect);
 }