public class OTSPolygon3D extends OTSLine3D
Copyright (c) 2013-2015 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
OTSLine3D.OffsetMethod
OFFSETMETHOD
Constructor and Description |
---|
OTSPolygon3D(com.vividsolutions.jts.geom.Coordinate[] coordinates) |
OTSPolygon3D(com.vividsolutions.jts.geom.Geometry geometry) |
OTSPolygon3D(com.vividsolutions.jts.geom.LineString lineString) |
OTSPolygon3D(OTSPoint3D[] points) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(OTSPoint3D point)
Determine if a point is horizontally (ignoring Z-coordinates) contained within this OTSPolygon3D.
|
concatenate, concatenate, createAndCleanOTSLine3D, createAndCleanOTSLine3D, equals, extract, extract, extractFractional, get, getBounds, getCoordinates, getFirst, getLast, getLength, getLengthSI, getLineString, getLocation, getLocation, getLocationExtended, getLocationExtendedSI, getLocationFraction, getLocationFraction, getLocationFractionExtended, getLocationSI, getPoints, hashCode, main, noiseFilteredLine, offsetLine, offsetLine, offsetLine, reverse, size, toExcel, toString, truncate
public OTSPolygon3D(OTSPoint3D[] points) throws OTSGeometryException
points
- the array of points to construct this OTSLine3D from.OTSGeometryException
- when the points has fewer than 2 entries or two successive points coincidepublic OTSPolygon3D(com.vividsolutions.jts.geom.LineString lineString) throws OTSGeometryException
lineString
- the lineString to construct this OTSLine3D from.OTSGeometryException
- when the lineString has fewer than 2 entries or two successive points coincidepublic OTSPolygon3D(com.vividsolutions.jts.geom.Coordinate[] coordinates) throws OTSGeometryException
coordinates
- the array of coordinates to construct this OTSLine3D from.OTSGeometryException
- when coordinates has fewer than 2 entries or two successive coordinates coincidepublic OTSPolygon3D(com.vividsolutions.jts.geom.Geometry geometry) throws OTSGeometryException
geometry
- the geometry to construct this OTSLine3D from.OTSGeometryException
- when geometry has fewer than 2 points or two successive points coincidepublic boolean contains(OTSPoint3D point)
point
- OTSPoint3D; the pointCopyright © 2014–2016 Delft University of Technology. All rights reserved.