Angle From Circle Arc Length - Android java.lang

Android examples for java.lang:Math Trigonometric Function

Description

Angle From Circle Arc Length

Demo Code


//package com.java2s;

public class Main {
    public static float AngleFromCircleArcLength(float distance,
            float radius) {
        return (float) ((Math.PI / 2.0) - (180.0 * distance)
                / (Math.PI * radius));
    }//  w  ww . j a v a  2 s . co  m
}

Related Tutorials