org.geotools.geometry.iso.coordinate
Class TriangleImpl
java.lang.Object
org.geotools.geometry.iso.coordinate.SurfacePatchImpl
org.geotools.geometry.iso.coordinate.PolygonImpl
org.geotools.geometry.iso.coordinate.TriangleImpl
- All Implemented Interfaces:
- java.io.Serializable, org.opengis.geometry.coordinate.GenericSurface, org.opengis.geometry.coordinate.Polygon, org.opengis.geometry.coordinate.Triangle, org.opengis.geometry.primitive.SurfacePatch
public class TriangleImpl
- extends PolygonImpl
- implements org.opengis.geometry.coordinate.Triangle
- Author:
- sanjay
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.opengis.geometry.coordinate.Polygon |
getBoundary, getSpanningSurface |
Methods inherited from interface org.opengis.geometry.primitive.SurfacePatch |
getInterpolation, getNumDerivativesOnBoundary |
Methods inherited from interface org.opengis.geometry.coordinate.GenericSurface |
getArea, getPerimeter, getUpNormal |
TriangleImpl
public TriangleImpl(SurfaceBoundaryImpl triangleBoundary,
org.opengis.geometry.coordinate.TriangulatedSurface ts,
PositionImpl p1,
PositionImpl p2,
PositionImpl p3)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getCorners
public java.util.List<org.opengis.geometry.coordinate.Position> getCorners()
- Returns the corners of the Triangle
- Specified by:
getCorners
in interface org.opengis.geometry.coordinate.Triangle
- Returns:
- Array of Position with three elements
getFirstCorner
public PositionImpl getFirstCorner()
- Returns first corner of the Triangle
- Returns:
- first corner of the Triangle
getSecondCorner
public PositionImpl getSecondCorner()
- Returns second corner of the Triangle
- Returns:
- second corner of the Triangle
getThirdCorner
public PositionImpl getThirdCorner()
- Returns third corner of the Triangle
- Returns:
- third corner of the Triangle
getSurface
public org.opengis.geometry.coordinate.TriangulatedSurface getSurface()
- Specified by:
getSurface
in interface org.opengis.geometry.coordinate.Polygon
- Specified by:
getSurface
in interface org.opengis.geometry.coordinate.Triangle
- Specified by:
getSurface
in interface org.opengis.geometry.primitive.SurfacePatch
- Overrides:
getSurface
in class PolygonImpl
setAssociatedSurface
public void setAssociatedSurface(TriangulatedSurfaceImpl tsi)
- Parameters:
tsi
-
Copyright © 1996-2010 Geotools. All Rights Reserved.