Back to project page Resonos-Android-Framework.
The source code is released under:
Apache License
If you think the Android project Resonos-Android-Framework 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.resonos.apps.library.model; /*from w w w. j av a 2 s . c o m*/ /** * A simple read-only point class, only to the extent that * x and y are not messed with. They remain public for convenience * and increased speed during intense calculations by reducing method calls. * @author Chris Newhouse */ public class ImmutableCoord { public float x, y; public ImmutableCoord() { this.x = 0; this.y = 0; } public ImmutableCoord(float x, float y) { this.x = x; this.y = y; } public ImmutableCoord(ImmutableCoord c) { this.x = c.x; this.y = c.y; } @Override public String toString() { return "("+this.x+","+this.y+")"; } }