If you think the Android project Android-GUI-Creator listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code
/*
* Copyright (c) 2012./*www.java2s.com*/
* This file is part of Android Interface Toolkit application.
*
* Android Interface Toolkit is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* Android Interface Toolkit is distributed in the hope that it will be
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
* Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with Android Interface Toolkit. If not, see <http://www.gnu.org/licenses/>.
*/package name.wildswift.android.guitool.gesture.gestures;
/**
* 19.02.12
*
* @author Swift
*/publicclass MotionPoint {
privatefloat x;
privatefloat y;
public MotionPoint(float x, float y) {
this.x = x;
this.y = y;
}
publicfloat getX() {
return x;
}
publicfloat getY() {
return y;
}
@Override
publicboolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
MotionPoint that = (MotionPoint) o;
return Float.compare(that.x, x) == 0 && Float.compare(that.y, y) == 0;
}
@Override
publicint hashCode() {
int result = (x != +0.0f ? Float.floatToIntBits(x) : 0);
result = 31 * result + (y != +0.0f ? Float.floatToIntBits(y) : 0);
return result;
}
}