Android examples for Graphics:Path
get Circle Path Length
//package com.java2s; public class Main { public static float getCirclePathLength(float radius, float angle) { angle = changeAngleToSingle(angle); return (float) (Math.PI * radius * angle / 180); }//from w ww . ja v a 2 s.c o m public static float changeAngleToSingle(float angle) { while (angle >= 360) { angle -= 360; } while (angle < 0) { angle += 360; } return angle; } }