Here you can find the source of degreesToPercent(float n)
public static float degreesToPercent(float n)
//package com.java2s; //License from project: Open Source License public class Main { public static float degreesToPercent(float n) { return (Math.abs(n / 360f)); }/* ww w . ja v a 2 s. c o m*/ }