public class OTSPoint3D extends Object implements nl.tudelft.simulation.dsol.animation.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(nl.tudelft.simulation.language.d3.CartesianPoint point) |
OTSPoint3D(com.vividsolutions.jts.geom.Coordinate coordinate) |
OTSPoint3D(nl.tudelft.simulation.language.d3.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(javax.vecmath.Point3d point) |
| Modifier and Type | Method and Description |
|---|---|
org.djunits.value.vdouble.scalar.DoubleScalar.Rel<org.djunits.unit.LengthUnit> |
distance(OTSPoint3D point) |
double |
distanceSI(OTSPoint3D point) |
boolean |
equals(Object obj) |
javax.media.j3d.Bounds |
getBounds() |
com.vividsolutions.jts.geom.Coordinate |
getCoordinate() |
nl.tudelft.simulation.language.d3.DirectedPoint |
getDirectedPoint() |
nl.tudelft.simulation.language.d3.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(javax.vecmath.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(nl.tudelft.simulation.language.d3.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(nl.tudelft.simulation.language.d3.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.DoubleScalar.Rel<org.djunits.unit.LengthUnit> distance(OTSPoint3D point)
point - the point to which the distance has to be calculated.public final com.vividsolutions.jts.geom.Coordinate getCoordinate()
public final nl.tudelft.simulation.language.d3.DirectedPoint getDirectedPoint()
public final nl.tudelft.simulation.language.d3.DirectedPoint getLocation()
throws RemoteException
getLocation in interface nl.tudelft.simulation.dsol.animation.LocatableInterfaceRemoteExceptionpublic final javax.media.j3d.Bounds getBounds()
throws RemoteException
getBounds in interface nl.tudelft.simulation.dsol.animation.LocatableInterfaceRemoteException - in case the location cannot be retrievedCopyright © 2014–2015 Delft University of Technology. All rights reserved.