package hu.ppke.itk.java.hf1;

public class Vector {
	private double x,y;
	
	public Vector(double _x, double _y)
	{
		x = _x;
		y = _y;
	}
	
	public double length()
	{
		return Math.pow(x*x + y*y, 0.5);
	}
	
	public double innerProduct(Vector other)
	{
		return x*other.x + y*other.y;
	}

}
