Back to project page Save-the-Planet.
The source code is released under:
Copyright (c) 2002 JSON.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software ...
If you think the Android project Save-the-Planet 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.karolmajta.procprox; //from w w w . j av a 2 s . c o m public class Drag { private float startX; private float startY; private float stopX; private float stopY; private int duration; public Drag ( float startX, float startY, float stopX, float stopY, int duration ) { this.startX = startX; this.startY = startY; this.stopX = stopX; this.stopY = stopY; this.duration = duration; } public float getStartX() { return startX; } public float getStartY() { return startY; } public float getStopX() { return stopX; } public float getStopY() { return stopY; } public float getDuration() { return duration; } public float getVelocityX() { return (stopX-startX)/duration; } public float getVelocityY() { return (stopY-startY)/duration; } }