Code example for PathMeasure

Methods: getLengthgetPosTan

0
	} 
	private void touch_up() { 
	    mPath.lineTo(mX, mY);
	    // commit the path to our offscreen 
	    mCanvas.drawPath(mPath, mPaint);
	    mPM = new PathMeasure(mPath, false);
	   // System.out.println(Float.toString(mPM.getLength())); 
	    mPM.getPosTan(mPM.getLength() * 0.5f, aCoordinates, null);
	    // kill this so we don't double draw 
	    mPath.reset();
	    //System.out.println(Float.toString(aCoordinates[0])); 
	   // mPaint.setColor(Color.RED); 
	   // mCanvas.drawCircle(aCoordinates[0], aCoordinates[1], 5, mPaint); 
	    mPaint.setColor(Color.BLACK);
	} 
	private void showMidpoint() 
	{	 
	} 
 
	@Override