Example #1
0
 public override Rect4 TestCollision(Rect2 r, Vect4 mov)
 {
     if (pos.x + mov.x >= r.pos.x && pos.x + mov.x <= r.size.x &&
         pos.y + mov.y >= r.pos.y && pos.y + mov.y <= r.size.y)
     {
     }
 }
Example #2
0
 public Point4(double x, double y, double u, double v)
 {
     this.pos = new Vect4(x, y, u, v);
 }
Example #3
0
 public Point4(Vect4 pos)
 {
     this.pos = pos;
 }
Example #4
0
 public override Rect4 TestCollision(Point4 b, Vect4 mov)
 {
     return(new HitBox(pos.x + mov.x == b.pos.x && pos.y + mov.y == b.pos.y));
 }
Example #5
0
 public override Rect4 TestCollision(Point2 b, Vect4 mov)
 {
     return(Rect4.Zero);
 }
Example #6
0
 public Rect4(double x, double y, double u, double v, double width, double height, double uWidth, double vHeight)
 {
     this.pos  = new Vect4(x, y, u, v);
     this.size = new Vect4(width, height, uWidth, vHeight);
 }
Example #7
0
 public Rect4(Vect4 pos, Vect4 size)
 {
     this.pos  = pos;
     this.size = size;
 }
Example #8
0
 public abstract Rect4 TestCollision(Rect4 b, Vect4 mov);
Example #9
0
 public abstract Rect4 TestCollision(Point3 b, Vect4 mov);