There is a curve. How can I get its length?
mPaint.setAntiAlias(true); mPaint.setColor(Color.RED); mPaint.setStrokeWidth(8); mPath.moveTo(50, 50); mPath.cubicTo(x1,y1, x2,y2,x3,y3); canvas.drawPath(mPath, mPaint); There is a curve. How can I get its length?
mPaint.setAntiAlias(true); mPaint.setColor(Color.RED); mPaint.setStrokeWidth(8); mPath.moveTo(50, 50); mPath.cubicTo(x1,y1, x2,y2,x3,y3); canvas.drawPath(mPath, mPaint); Source: https://ru.stackoverflow.com/questions/557769/
All Articles