Here you can find the source of cosineLawGetDegree(double a, double b, double c)
public static double cosineLawGetDegree(double a, double b, double c)
//package com.java2s; //License from project: Open Source License public class Main { public static double cosineLawGetDegree(double a, double b, double c) { return Math.acos((a * a + b * b - c * c) / (2 * a * b)); }//w w w . j a va2 s.c o m }