Back to project page Station42.
The source code is released under:
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUC...
If you think the Android project Station42 listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.station42.optimizations; /*from w w w . ja v a 2s . c o m*/ import com.badlogic.gdx.math.Rectangle; import com.station42.basic.EntityLocation; public class CroppingHelper { static Rectangle temp = new Rectangle(); public static boolean inView(EntityLocation view, Rectangle other, Rectangle viewport) { temp.set(viewport).setCenter(view.getCenter()); if (other.overlaps(temp)) return true; else return false; } }