com.vividsolutions.jts.geom

Class Triangle


public class Triangle
extends java.lang.Object

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

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.

Field Details

p0

public Coordinate p0

p1

public Coordinate p1

p2

public Coordinate p2

Constructor Details

Triangle

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

Method Details

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