package de.reinhardt_karlheinz.pcc.android;

public class TouchVector {
	private float x1, x2, y1, y2;
	private float x, y;

	public TouchVector(float x1, float x2, float y1, float y2) {
		this.x1 = x1;
		this.x2 = x2;
		this.y1 = y1;
		this.y2 = y2;
		setX(x2 - x1);
		setY(y2 - y1);
	}

	/**
	 * 
	 * @return angle
	 */
	public int getDirtTo(TouchVector v) {
		int angle = 0;
		 angle = ((x*v.getX()+y+v.getY())/(Math.sqrt(x*x + y*y))));
		// angle = Math.
		return 0;

	}

//	public void mulVektor(TouchVector v) {
//		
//	}

	public void setX(float x) {
		this.x = x;
	}

	public float getX() {
		return x;
	}

	public void setY(float y) {
		this.y = y;
	}

	public float getY() {
		return y;
	}
}
