// Analyse der Dreiecksart | // Analyse der Dreiecksart | ||||
public static TriangleType checkTriangle(float a, float b, float c) { | public static TriangleType checkTriangle(float a, float b, float c) { | ||||
if (a + b > c || b + c > a || a + c > b) { | |||||
return TriangleType.NORMAL; | |||||
} | |||||
return TriangleType.NONE; | return TriangleType.NONE; | ||||
} | } | ||||