public Viewport(Viewport other) { this.corner = other.corner; this.size = other.size; this.minSizeY = other.minSizeY; }
public Vector2 scaleTo(Viewport other) { return other.size / size; }
/* * Maps a vector from this viewport to other. */ public Vector2 mapTo(Vector2 from, Viewport other) { return other.size * ((from - corner) / size) + other.corner; }
public Vector2 scaleTo(Viewport other) { return(other.size / size); }
/* * Maps a vector from this viewport to other. */ public Vector2 mapTo(Vector2 from, Viewport other) { return(other.size * ((from - corner) / size) + other.corner); }