public class RelativePosition extends Object implements Serializable
Copyright (c) 2013-2017 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
$LastChangedDate: 2017-04-29 12:51:08 +0200 (Sat, 29 Apr 2017) $, @version $Revision: 3570 $, by $Author: averbraeck $,
initial version Dec 30, 2014
Modifier and Type | Class and Description |
---|---|
static class |
RelativePosition.TYPE
The type of relative position, e.g., Front, Back, etc.
|
Modifier and Type | Field and Description |
---|---|
static RelativePosition.TYPE |
CENTER
Standard relative position type CENTER.
|
static RelativePosition.TYPE |
CONTOUR
Standard relative position type CONTOUR.
|
static RelativePosition.TYPE |
DRIVER
Standard relative position type DRIVER.
|
static RelativePosition.TYPE |
FRONT
Standard relative position type FRONT.
|
static RelativePosition.TYPE |
REAR
Standard relative position type BACK.
|
static RelativePosition.TYPE |
REFERENCE
Standard relative position type REFERENCE.
|
static RelativePosition |
REFERENCE_POSITION
The reference position (always 0, 0, 0).
|
Constructor and Description |
---|
RelativePosition(org.djunits.value.vdouble.scalar.Length dx,
org.djunits.value.vdouble.scalar.Length dy,
org.djunits.value.vdouble.scalar.Length dz,
RelativePosition.TYPE type) |
RelativePosition(RelativePosition p) |
Modifier and Type | Method and Description |
---|---|
int |
calcHashCode()
Calculate the hash code once.
|
boolean |
equals(Object obj) |
org.djunits.value.vdouble.scalar.Length |
getDx() |
org.djunits.value.vdouble.scalar.Length |
getDy() |
org.djunits.value.vdouble.scalar.Length |
getDz() |
RelativePosition.TYPE |
getType() |
int |
hashCode() |
String |
toString() |
public static final RelativePosition.TYPE FRONT
public static final RelativePosition.TYPE REAR
public static final RelativePosition.TYPE CENTER
public static final RelativePosition.TYPE REFERENCE
public static final RelativePosition.TYPE DRIVER
public static final RelativePosition.TYPE CONTOUR
public static final RelativePosition REFERENCE_POSITION
public RelativePosition(org.djunits.value.vdouble.scalar.Length dx, org.djunits.value.vdouble.scalar.Length dy, org.djunits.value.vdouble.scalar.Length dz, RelativePosition.TYPE type)
dx
- positive x is in the normal direction of movement.dy
- positive y is left compared to the normal direction of movement (seen from the top).dz
- positive z is up.type
- type of relative position (FRONT, BACK, etc.).public RelativePosition(RelativePosition p)
p
- a relative position to make a deep copy of.public final org.djunits.value.vdouble.scalar.Length getDx()
public final org.djunits.value.vdouble.scalar.Length getDy()
public final org.djunits.value.vdouble.scalar.Length getDz()
public final RelativePosition.TYPE getType()
public final int calcHashCode()
Copyright © 2014–2017 Delft University of Technology. All rights reserved.