Beispiel #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)
     {
     }
 }
Beispiel #2
0
 public Point4(double x, double y, double u, double v)
 {
     this.pos = new Vect4(x, y, u, v);
 }
Beispiel #3
0
 public Point4(Vect4 pos)
 {
     this.pos = pos;
 }
Beispiel #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));
 }
Beispiel #5
0
 public override Rect4 TestCollision(Point2 b, Vect4 mov)
 {
     return(Rect4.Zero);
 }
Beispiel #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);
 }
Beispiel #7
0
 public Rect4(Vect4 pos, Vect4 size)
 {
     this.pos  = pos;
     this.size = size;
 }
Beispiel #8
0
 public abstract Rect4 TestCollision(Rect4 b, Vect4 mov);
Beispiel #9
0
 public abstract Rect4 TestCollision(Point3 b, Vect4 mov);