Modifier and Type | Method and Description |
---|---|
static double |
calculateArea(double a,
double b,
double c)
Calculate the area from the three side-lengths of a triangle
|
static double |
calculateHeight(double a,
double b,
double c)
Calculate the height from the the endpoint of a and b down to the c-edge based on the
lengths of the edges.
|
boolean |
contains(Point p) |
double |
getAltitude(int i) |
Point |
getCenter()
Get the geometric center of the shape.
|
Circle |
getCircumCircle() |
Point |
getCorner(int i) |
double |
getCos(int i)
returns the cosinus of the angle opposite to the vertex with vertex i
|
Point |
getSteinerPoint() |
boolean |
inCircumCircle(Point s) |
static void |
main(java.lang.String[] args) |
void |
setCorner(Point p,
int i) |
java.lang.String |
toString() |
protected final Point[] points
public Point getCorner(int i)
public void setCorner(Point p, int i)
public double getAltitude(int i)
public static double calculateArea(double a, double b, double c)
public static double calculateHeight(double a, double b, double c)
public Point getCenter()
Shape
public double getCos(int i)
public Circle getCircumCircle()
public Point getSteinerPoint()
public boolean inCircumCircle(Point s)
public static void main(java.lang.String[] args)
public java.lang.String toString()
toString
in class java.lang.Object