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