From 13f2e77ef1546b96bc3215f66867aecb9153686a Mon Sep 17 00:00:00 2001 From: SKuhn84 Date: Sun, 15 Jun 2014 11:45:29 +0200 Subject: [PATCH] Methods for calculating the angle of a Triangle The results of all the methods are in radient. Steffen Kuhn 194643 Sebastian Schamscha 197823 Phillip Kuster 198122 --- Triangle.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Triangle.java diff --git a/Triangle.java b/Triangle.java new file mode 100644 index 0000000..7829c17 --- /dev/null +++ b/Triangle.java @@ -0,0 +1,17 @@ + +public class Triangle { + + //Result in Radiant + public static double sin(double d){ + return Math.sin(d); + } + public static double tan(double d){ + return Math.tan(d); + } + public static double cos(double d){ + return Math.cos(d); + } + public static double cot(double d){ + return Math.atan(d); + } +}