com.vividsolutions.jts.geom
Class Triangle

java.lang.Object
  extended bycom.vividsolutions.jts.geom.Triangle

public class Triangle
extends java.lang.Object

Represents a planar triangle, and provides methods for calculating various properties of triangles.

Version:
1.4.0

Field Summary
 Coordinate p0
           
 Coordinate p1
           
 Coordinate p2
           
 
Constructor Summary
Triangle(Coordinate p0, Coordinate p1, Coordinate p2)
           
 
Method Summary
 Coordinate inCentre()
          The inCentre of a triangle is the point which is equidistant from the sides of the triangle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

p0

public Coordinate p0

p1

public Coordinate p1

p2

public Coordinate p2
Constructor Detail

Triangle

public Triangle(Coordinate p0,
                Coordinate p1,
                Coordinate p2)
Method Detail

inCentre

public Coordinate inCentre()
The inCentre of a triangle is the point which is equidistant from the sides of the triangle. This is also the point at which the bisectors of the angles meet.

Returns:
the point which is the inCentre of the triangle