Back to project page misty.
The source code is released under:
MIT License
If you think the Android project misty 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.misty.graphics; /*w w w . j a v a 2 s .c om*/ import com.misty.kernel.Process; public class Camera { public float x = 0; public float y = 0; public int width = 0; public int height = 0; public Camera() { } public void setSize(ScreenResolution screenResolution) { this.width = screenResolution.horizontal; this.height = screenResolution.vertical; } public boolean isInside(Process process) { float right = this.x + this.width; float top = this.y + this.height; return process.fixedPosition || (!((right < process.x) || (top < process.y) || ((process.x + process.width) < this.x) || ((process.y + process.height) < this.y))); } }