public class Triangle extends AbstractLineString
| Modifier and Type | Method and Description |
|---|---|
static Triangle |
createClockwiseTriangle(Point c0,
Point c1,
Point c2) |
boolean |
equals(Triangle triangle) |
int |
getAxisCount() |
Circle |
getCircumcircle()
Computes the circumcircle of a triangle.
|
double |
getCoordinate(int index,
int axisIndex) |
double[] |
getCoordinates() |
BoundingBoxDoubleGf |
getEnvelopeInternal()
Get the envelope of the Triangle.
|
Point |
getInCentre() |
Point |
getP0() |
Point |
getP1() |
Point |
getP2() |
Polygon |
getPolygon(GeometryFactory geometryFactory) |
int |
getVertexCount()
Returns the count of this
Geometrys vertices. |
boolean |
hasVertex(Point coordinate)
Returns true if the coordinate lies inside or on the edge of the Triangle.
|
LineSegment |
intersection(GeometryFactory geometryFactory,
LineSegment line) |
boolean |
intersectsCircumCircle(Point point) |
boolean |
isEmpty()
Tests whether the set of points covered by this
Geometry is
empty. |
String |
toString() |
appendVertex, clone, compareToSameClass, computeBoundingBox, convertCoordinates, copy, deleteVertex, deleteVertex, distance, doEquals, equals, equalsExact, equalsVertex, equalsVertex, equalsVertex, equalsVertex, equalsVertex, getBoundary, getBoundaryDimension, getCoordinatesList, getDataType, getDimension, getEndPoint, getLength, getM, getMinVertexCount, getPoint, getPoint, getPointWithin, getSegment, getSegmentCount, getStartPoint, getToVertex, getVertex, getX, getY, getZ, insertVertex, intersects, isClockwise, isClosed, isCounterClockwise, isEquivalentClass, isRing, merge, merge, move, moveCoordinates, moveVertex, moveVertex, normalize, orientationIndex, points, prepare, reverse, segments, split, subLine, subLine, subLine, subLine, toClockwise, toCounterClockwise, verticesbuffer, buffer, buffer, checkNotGeometryCollection, compare, compareTo, contains, containsProperly, convert, convert, convexHull, coveredBy, covers, createVertexId, crosses, difference, disjoint, distance, envelopeCovers, envelopesIntersect, equal, equals, equals, equals, equalsExact, equalsNorm, equalsTopo, geometries, getArea, getBoundingBox, getCentroid, getClassSortIndex, getCoordinateSystem, getEnvelope, getGeometries, getGeometries, getGeometry, getGeometryComponents, getGeometryCount, getGeometryFactory, getGeometryType, getInteriorPoint, getNonZeroGeometryFactory, getSrid, getUserData, getVertexIndex, hashCode, hasInvalidXyCoordinates, hasNonEmptyElements, hasNullElements, intersection, intersects, isAnyTargetComponentInTest, isGeometryCollection, isRectangle, isSimple, isValid, isWithinDistance, overlaps, relate, relate, setUserData, setVertexIndex, symDifference, touches, toWkt, union, union, withinfinalize, getClass, notify, notifyAll, wait, wait, waitbuffer, buffer, buffer, compareTo, contains, containsProperly, convert, convert, convexHull, coveredBy, covers, crosses, difference, disjoint, distance, equal, equals, equals, equals, equalsExact, equalsNorm, equalsTopo, geometries, getArea, getBoundingBox, getCentroid, getClassSortIndex, getCoordinateSystem, getEnvelope, getGeometries, getGeometries, getGeometry, getGeometryComponents, getGeometryCount, getGeometryFactory, getGeometryType, getInteriorPoint, getSrid, getUserData, hashCode, hasInvalidXyCoordinates, intersection, intersects, isRectangle, isSimple, isValid, isWithinDistance, overlaps, relate, relate, setUserData, symDifference, touches, toWkt, union, union, withinpublic Triangle()
public Triangle(Point... points)
public static Triangle createClockwiseTriangle(Point c0, Point c1, Point c2)
public boolean equals(Triangle triangle)
public int getAxisCount()
getAxisCount in interface GeometrygetAxisCount in class AbstractGeometrypublic Circle getCircumcircle()
public double getCoordinate(int index,
int axisIndex)
public double[] getCoordinates()
getCoordinates in interface LineStringgetCoordinates in class AbstractLineStringpublic BoundingBoxDoubleGf getEnvelopeInternal()
public Point getInCentre()
public Point getP0()
public Point getP1()
public Point getP2()
public Polygon getPolygon(GeometryFactory geometryFactory)
public int getVertexCount()
GeometryGeometrys vertices. The Geometry
s contained by composite Geometrys must be
Geometry's; that is, they must implement getNumPointsGeometrypublic boolean hasVertex(Point coordinate)
hasVertex in interface LineStringhasVertex in class AbstractLineStringcoordinate - The coordinate.public LineSegment intersection(GeometryFactory geometryFactory, LineSegment line)
public boolean intersectsCircumCircle(Point point)
public boolean isEmpty()
AbstractGeometryGeometry is
empty.isEmpty in interface GeometryisEmpty in class AbstractGeometrytrue if this Geometry does not cover any pointspublic String toString()
toString in class AbstractGeometryCopyright © 2015 Revolution Systems Inc.. All rights reserved.