Code example for PointF

Methods: length

0
	 * @param direction	º¤ÅÍ ¹æÇâ 
	 * @param length	º¤ÅÍ ±æÀÌ 
	 * @return			ÀÚ±â ÀڽŠ
	 */ 
	public Vector2D set(PointF direction, float length) {
		float dirL = direction.length();
		x = direction.x * length / dirL;
		y = direction.y * length / dirL;
		return this;
	} 
	 
	/** 
	 * º¤ÅÍÀÇ ³»ÀûÀ» ±¸ÇÕ´Ï´Ù. 
	 *  
	 * @param v 
	 * @return		³»Àû °ª 
	 */ 
	public float dotProd(PointF v) {
		return dotProd(this, v);
	} 
Connect your IDE to all the code out there  Get Codota for Java