public class OTSPoint3D extends Object implements LocatableInterface, Serializable
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.
$LastChangedDate: 2015-07-16 10:20:53 +0200 (Thu, 16 Jul 2015) $, @version $Revision: 1124 $, by $Author: pknoppers $,
initial version Jul 22, 2015
| Modifier and Type | Field and Description |
|---|---|
double |
x
the internal representation of the point; x-coordinate.
|
double |
y
the internal representation of the point; y-coordinate.
|
double |
z
the internal representation of the point; z-coordinate.
|
| Constructor and Description |
|---|
OTSPoint3D(CartesianPoint point) |
OTSPoint3D(com.vividsolutions.jts.geom.Coordinate coordinate) |
OTSPoint3D(DirectedPoint point) |
OTSPoint3D(double[] xyz) |
OTSPoint3D(double x,
double y)
The x and y in the point are assumed to be in meters relative to an origin.
|
OTSPoint3D(double x,
double y,
double z)
The x, y and z in the point are assumed to be in meters relative to an origin.
|
OTSPoint3D(OTSPoint3D point) |
OTSPoint3D(com.vividsolutions.jts.geom.Point point) |
OTSPoint3D(Point2D point2d) |
OTSPoint3D(Point3d point) |
| Modifier and Type | Method and Description |
|---|---|
org.djunits.value.vdouble.scalar.Length.Rel |
distance(OTSPoint3D point) |
double |
distanceSI(OTSPoint3D point) |
boolean |
equals(Object obj) |
Bounds |
getBounds()
This method returns a sphere with a diameter of half a meter as the default bounds for a point.
|
com.vividsolutions.jts.geom.Coordinate |
getCoordinate() |
DirectedPoint |
getDirectedPoint() |
DirectedPoint |
getLocation() |
int |
hashCode() |
String |
toString() |
public final double x
public final double y
public final double z
public OTSPoint3D(double x,
double y,
double z)
x - x-coordinatey - y-coordinatez - z-coordinatepublic OTSPoint3D(double[] xyz)
xyz - array with three elements; x, y and z are assumed to be in meters relative to an origin.public OTSPoint3D(OTSPoint3D point)
point - a point to "clone".public OTSPoint3D(Point3d point)
point - javax.vecmath 3D double point; the x, y and z in the point are assumed to be in meters relative to an
origin.public OTSPoint3D(CartesianPoint point)
point - javax.vecmath 3D double point; the x, y and z in the point are assumed to be in meters relative to an
origin.public OTSPoint3D(DirectedPoint point)
point - javax.vecmath 3D double point; the x, y and z in the point are assumed to be in meters relative to an
origin.public OTSPoint3D(Point2D point2d)
point2d - java.awt 2D point, z-coordinate will be zero; the x and y in the point are assumed to be in meters
relative to an origin.public OTSPoint3D(com.vividsolutions.jts.geom.Coordinate coordinate)
coordinate - geotools coordinate; the x, y and z in the coordinate are assumed to be in meters relative to an
origin.public OTSPoint3D(com.vividsolutions.jts.geom.Point point)
point - geotools point; z-coordinate will be zero; the x and y in the point are assumed to be in meters relative to
an origin.public OTSPoint3D(double x,
double y)
x - x-coordinatey - y-coordinatepublic final double distanceSI(OTSPoint3D point)
point - the point to which the distance has to be calculated.public final org.djunits.value.vdouble.scalar.Length.Rel distance(OTSPoint3D point)
point - the point to which the distance has to be calculated.public final com.vividsolutions.jts.geom.Coordinate getCoordinate()
public final DirectedPoint getDirectedPoint()
public final DirectedPoint getLocation()
getLocation in interface LocatableInterfacepublic final Bounds getBounds()
getBounds in interface LocatableInterfaceCopyright © 2014–2015 Delft University of Technology. All rights reserved.