Tangent of an angle - Android java.lang

Android examples for java.lang:Math Trigonometric Function

Description

Tangent of an angle

Demo Code


//package com.java2s;

public class Main {
    /**//  ww w .  j  a  v a  2  s .co m
     * Tangent of an angle
     * 
     * @param angle
     *            angle
     * @return the tangent
     */
    public static float tan(float angle) {
        return (float) Math.tan(angle);
    }
}

Related Tutorials