public class RelativePosition extends Object implements 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-12-29 03:56:14 +0100 (Tue, 29 Dec 2015) $, @version $Revision: 1668 $, 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 |
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.Rel dx,
org.djunits.value.vdouble.scalar.Length.Rel dy,
org.djunits.value.vdouble.scalar.Length.Rel dz,
RelativePosition.TYPE type) |
RelativePosition(RelativePosition p) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
org.djunits.value.vdouble.scalar.Length.Rel |
getDx() |
org.djunits.value.vdouble.scalar.Length.Rel |
getDy() |
org.djunits.value.vdouble.scalar.Length.Rel |
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 REFERENCE_POSITION
public RelativePosition(org.djunits.value.vdouble.scalar.Length.Rel dx, org.djunits.value.vdouble.scalar.Length.Rel dy, org.djunits.value.vdouble.scalar.Length.Rel 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.Rel getDx()
public final org.djunits.value.vdouble.scalar.Length.Rel getDy()
public final org.djunits.value.vdouble.scalar.Length.Rel getDz()
public final RelativePosition.TYPE getType()
Copyright © 2014–2016 Delft University of Technology. All rights reserved.