|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vividsolutions.jts.geom.Triangle
Represents a planar triangle, and provides methods for calculating various properties of triangles.
Field Summary | |
Coordinate |
p0
|
Coordinate |
p1
|
Coordinate |
p2
|
Constructor Summary | |
Triangle(Coordinate p0,
Coordinate p1,
Coordinate p2)
|
Method Summary | |
static Coordinate |
angleBisector(Coordinate a,
Coordinate b,
Coordinate c)
Computes the point at which the bisector of the angle ABC cuts the segment AC. |
static double |
area(Coordinate a,
Coordinate b,
Coordinate c)
Computes the area of a triangle. |
static Coordinate |
centroid(Coordinate a,
Coordinate b,
Coordinate c)
Computes the centroid (centre of mass) of a triangle. |
static Coordinate |
circumcentre(Coordinate a,
Coordinate b,
Coordinate c)
Computes the circumcentre of a triangle. |
Coordinate |
inCentre()
Computes the incentre of a triangle. |
static Coordinate |
inCentre(Coordinate a,
Coordinate b,
Coordinate c)
Computes the incentre of a triangle. |
static boolean |
isAcute(Coordinate a,
Coordinate b,
Coordinate c)
Tests whether the triangle is acute. |
static double |
longestSideLength(Coordinate a,
Coordinate b,
Coordinate c)
Computes the length of the longest side of a triangle |
static HCoordinate |
perpendicularBisector(Coordinate a,
Coordinate b)
Computes the line which is the perpendicular bisector of the line segment a-b. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public Coordinate p0
public Coordinate p1
public Coordinate p2
Constructor Detail |
public Triangle(Coordinate p0, Coordinate p1, Coordinate p2)
Method Detail |
public static boolean isAcute(Coordinate a, Coordinate b, Coordinate c)
a
- a vertex of the triangleb
- a vertex of the trianglec
- a vertex of the triangle
public static HCoordinate perpendicularBisector(Coordinate a, Coordinate b)
a
- a pointb
- another point
public static Coordinate circumcentre(Coordinate a, Coordinate b, Coordinate c)
a
- a vertx of the triangleb
- a vertx of the trianglec
- a vertx of the triangle
public static Coordinate inCentre(Coordinate a, Coordinate b, Coordinate c)
a
- a vertx of the triangleb
- a vertx of the trianglec
- a vertx of the triangle
public static Coordinate centroid(Coordinate a, Coordinate b, Coordinate c)
a
- a vertex of the triangleb
- a vertex of the trianglec
- a vertex of the triangle
public static double longestSideLength(Coordinate a, Coordinate b, Coordinate c)
a
- a vertex of the triangleb
- a vertex of the trianglec
- a vertex of the triangle
public static Coordinate angleBisector(Coordinate a, Coordinate b, Coordinate c)
a
- a vertex of the triangleb
- a vertex of the trianglec
- a vertex of the triangle
public static double area(Coordinate a, Coordinate b, Coordinate c)
a
- a vertex of the triangleb
- a vertex of the trianglec
- a vertex of the triangle
public Coordinate inCentre()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |