public class RelativePosition extends Object implements Serializable
 Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. 
 BSD-style license. See OpenTrafficSim License.
 
 $LastChangedDate: 2019-01-18 22:40:31 +0100 (Fri, 18 Jan 2019) $, @version $Revision: 4886 $, by $Author: averbraeck $,
 initial version Dec 30, 2014 
| Modifier and Type | Class and Description | 
|---|---|
| static class  | RelativePosition.TYPEThe type of relative position, e.g., Front, Back, etc. | 
| Modifier and Type | Field and Description | 
|---|---|
| static RelativePosition.TYPE | CENTERStandard relative position type CENTER. | 
| static RelativePosition.TYPE | CENTER_GRAVITYCenter of gravity. | 
| static RelativePosition.TYPE | CONTOURStandard relative position type CONTOUR. | 
| static RelativePosition.TYPE | DRIVERStandard relative position type DRIVER. | 
| static RelativePosition.TYPE | FRONTStandard relative position type FRONT. | 
| static RelativePosition.TYPE | REARStandard relative position type BACK. | 
| static RelativePosition.TYPE | REFERENCEStandard relative position type REFERENCE. | 
| static RelativePosition | REFERENCE_POSITIONThe reference position (always 0, 0, 0). | 
| Constructor and Description | 
|---|
| RelativePosition(Length dx,
                Length dy,
                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) | 
| Length | getDx() | 
| Length | getDy() | 
| 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.TYPE CENTER_GRAVITY
public static final RelativePosition REFERENCE_POSITION
public RelativePosition(Length dx, Length dy, Length dz, RelativePosition.TYPE type)
dx - Length; positive x is in the normal direction of movement.dy - Length; positive y is left compared to the normal direction of movement (seen from the top).dz - Length; positive z is up.type - TYPE; type of relative position (FRONT, BACK, etc.).public RelativePosition(RelativePosition p)
p - RelativePosition; a relative position to make a deep copy of.public final Length getDx()
public final Length getDy()
public final Length getDz()
public final RelativePosition.TYPE getType()
public final int calcHashCode()
Copyright © 2014–2019 Delft University of Technology. All rights reserved.