public class OTSPoint3D extends Object implements nl.tudelft.simulation.dsol.animation.LocatableInterface, Serializable, OTS_SCALAR
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
org.djunits.value.vdouble.scalar.DOUBLE_SCALAR.Acceleration, org.djunits.value.vdouble.scalar.DOUBLE_SCALAR.AnglePlane, org.djunits.value.vdouble.scalar.DOUBLE_SCALAR.AngleSlope, org.djunits.value.vdouble.scalar.DOUBLE_SCALAR.AngleSolid, org.djunits.value.vdouble.scalar.DOUBLE_SCALAR.Area, org.djunits.value.vdouble.scalar.DOUBLE_SCALAR.Density, org.djunits.value.vdouble.scalar.DOUBLE_SCALAR.Dimensionless, org.djunits.value.vdouble.scalar.DOUBLE_SCALAR.ElectricalCharge, org.djunits.value.vdouble.scalar.DOUBLE_SCALAR.ElectricalCurrent, org.djunits.value.vdouble.scalar.DOUBLE_SCALAR.ElectricalPotential, org.djunits.value.vdouble.scalar.DOUBLE_SCALAR.ElectricalResistance, org.djunits.value.vdouble.scalar.DOUBLE_SCALAR.Energy, org.djunits.value.vdouble.scalar.DOUBLE_SCALAR.FlowMass, org.djunits.value.vdouble.scalar.DOUBLE_SCALAR.FlowVolume, org.djunits.value.vdouble.scalar.DOUBLE_SCALAR.Force, org.djunits.value.vdouble.scalar.DOUBLE_SCALAR.Frequency, org.djunits.value.vdouble.scalar.DOUBLE_SCALAR.Length, org.djunits.value.vdouble.scalar.DOUBLE_SCALAR.LinearDensity, org.djunits.value.vdouble.scalar.DOUBLE_SCALAR.Mass, org.djunits.value.vdouble.scalar.DOUBLE_SCALAR.Power, org.djunits.value.vdouble.scalar.DOUBLE_SCALAR.Pressure, org.djunits.value.vdouble.scalar.DOUBLE_SCALAR.Speed, org.djunits.value.vdouble.scalar.DOUBLE_SCALAR.Temperature, org.djunits.value.vdouble.scalar.DOUBLE_SCALAR.Time, org.djunits.value.vdouble.scalar.DOUBLE_SCALAR.Torque, org.djunits.value.vdouble.scalar.DOUBLE_SCALAR.Volume
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.
|
ABAMPERE, ABCOULOMB, ABVOLT, ACRE, AMPERE, ARCMINUTE, ARCSECOND, ARE, ATMOSPHERE_STANDARD, ATMOSPHERE_TECHNICAL, ATOMIC_UNIT, BAR, BARYE, BTU_ISO, BTU_IT, CALORIE_IT, CENTESIMAL_ARCMINUTE, CENTESIMAL_ARCSECOND, CENTIMETER, CENTIMETER_MERCURY, COULOMB, CUBIC_CENTIMETER, CUBIC_DECIMETER, CUBIC_FEET_PER_MINUTE, CUBIC_FEET_PER_SECOND, CUBIC_FOOT, CUBIC_INCH, CUBIC_INCH_PER_MINUTE, CUBIC_INCH_PER_SECOND, CUBIC_KM, CUBIC_METER, CUBIC_METER_PER_DAY, CUBIC_METER_PER_HOUR, CUBIC_METER_PER_MINUTE, CUBIC_METER_PER_SECOND, CUBIC_MILE, CUBIC_YARD, DALTON, DAY, DECIMETER, DEG, DEGREE, DEGREE_CELSIUS, DEGREE_FAHRENHEIT, DEGREE_RANKINE, DEGREE_REAUMUR, DEKAMETER, DYNE, ELECTRONVOLT, EMU, ERG, ERG_PER_SECOND, ESU, EXA_ELECTRONVOLT, FARADAY, FOOT, FOOT_MERCURY, FOOT_PER_SECOND, FOOT_PER_SECOND_2, FOOT_POUND_FORCE, FOOT_POUND_FORCE_PER_HOUR, FOOT_POUND_FORCE_PER_MINUTE, FOOT_POUND_FORCE_PER_SECOND, FRANKLIN, GAL, GALLON_IMP, GALLON_PER_DAY, GALLON_PER_HOUR, GALLON_PER_MINUTE, GALLON_PER_SECOND, GALLON_US_FLUID, GIGA_ELECTRONVOLT, GIGAHERTZ, GIGAWATT, GIGAWATT_HOUR, GRAD, GRAM, GRAM_PER_CENTIMETER_3, HECTARE, HECTOMETER, HECTOPASCAL, HERTZ, HORSEPOWER_METRIC, HOUR, INCH, INCH_MERCURY, INCH_PER_SECOND_2, INCH_POUND_FORCE, JOULE, KELVIN, KG_PER_METER_3, KGF_PER_SQUARE_MM, KILO_ELECTRONVOLT, KILOAMPERE, KILOCALORIE, KILOGRAM, KILOGRAM_FORCE, KILOGRAM_PER_SECOND, KILOHERTZ, KILOMETER, KILOOHM, KILOPASCAL, KILOVOLT, KILOWATT, KILOWATT_HOUR, KM_PER_HOUR, KM_PER_HOUR_2, KNOT, KNOT_PER_SECOND, LITER, LITER_PER_DAY, LITER_PER_HOUR, LITER_PER_MINUTE, LITER_PER_SECOND, MEGA_ELECTRONVOLT, MEGAHERTZ, MEGAOHM, MEGAVOLT, MEGAWATT, MEGAWATT_HOUR, METER, METER_KILOGRAM_FORCE, METER_PER_SECOND, METER_PER_SECOND_2, MICROAMPERE, MICROVOLT, MICROWATT_HOUR, MILE, MILE_PER_HOUR, MILE_PER_HOUR_2, MILE_PER_HOUR_PER_SECOND, MILLI_ELECTRONVOLT, MILLIAMPERE, MILLIAMPERE_HOUR, MILLIBAR, MILLIMETER, MILLIMETER_MERCURY, MILLIOHM, MILLISECOND, MILLIVOLT, MILLIWATT_HOUR, MINUTE, NANOAMPERE, NAUTICAL_MILE, NEWTON, NEWTON_METER, OHM, OUNCE, OUNCE_FORCE, OUNCE_IMP_FLUID, OUNCE_US_FLUID, PASCAL, PER_CENTIMETER, PER_DAY, PER_DECIMETER, PER_DEKAMETER, PER_FOOT, PER_HECTOMETER, PER_HOUR, PER_INCH, PER_KILOMETER, PER_METER, PER_MILE, PER_MILLIMETER, PER_MILLISECOND, PER_MINUTE, PER_NAUTICAL_MILE, PER_SECOND, PER_WEEK, PER_YARD, PETA_ELECTRONVOLT, PIEZE, PINT_IMP, PINT_US_FLUID, POUND, POUND_FOOT, POUND_FORCE, POUND_INCH, POUND_PER_SECOND, POUND_PER_SQUARE_FOOT, POUND_PER_SQUARE_INCH, QUART_IMP, QUART_US_FLUID, RAD, RADIAN, RPM, SECOND, SLOPE_ARCMINUTE, SLOPE_ARCSECOND, SLOPE_CENTESIMAL_ARCMINUTE, SLOPE_CENTESIMAL_ARCSECOND, SLOPE_DEGREE, SLOPE_GRAD, SLOPE_RADIAN, SQUARE_CENTIMETER, SQUARE_DEGREE, SQUARE_FOOT, SQUARE_INCH, SQUARE_METER, SQUARE_MILE, SQUARE_MILLIMETER, SQUARE_YARD, STANDARD_GRAVITY, STATAMPERE, STATCOULOMB, STATVOLT, STERADIAN, STHENE, STHENE_METER, STHENE_METER_PER_SECOND, TERA_ELECTRONVOLT, TERAHERTZ, TERAWATT_HOUR, TON_FORCE, TON_LONG, TON_METRIC, TON_SHORT, TONNE, TORR, VOLT, WATT, WATT_HOUR, WEEK, YARD
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.Length.Rel |
distance(OTSPoint3D point) |
double |
distanceSI(OTSPoint3D point) |
boolean |
equals(Object obj) |
javax.media.j3d.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() |
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.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 nl.tudelft.simulation.language.d3.DirectedPoint getDirectedPoint()
public final nl.tudelft.simulation.language.d3.DirectedPoint getLocation()
getLocation
in interface nl.tudelft.simulation.dsol.animation.LocatableInterface
public final javax.media.j3d.Bounds getBounds()
getBounds
in interface nl.tudelft.simulation.dsol.animation.LocatableInterface
Copyright © 2014–2015 Delft University of Technology. All rights reserved.