public class Direction3D 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.
 
| Constructor and Description | 
|---|
| Direction3D(Direction roll,
           Direction pitch,
           Direction yaw) | 
| Direction3D(DirectionVector rotation) | 
| Direction3D(double roll,
           double pitch,
           double yaw,
           DirectionUnit unit) | 
| Modifier and Type | Method and Description | 
|---|---|
| Direction | getPitch() | 
| Direction | getRoll() | 
| Direction | getYaw() | 
| String | toString() | 
public Direction3D(DirectionVector rotation) throws ValueException
rotation - DirectionVector; the angles in 3D (RPY coded)ValueException - in case the vector does not have exactly three elementspublic Direction3D(Direction roll, Direction pitch, Direction yaw) throws ValueException
roll - Direction; (phi) the rotation around the x-axispitch - Direction; (theta) the rotation around the y-axisyaw - Direction; (psi) the rotation around the z-axisValueException - in case the units are incorrectpublic Direction3D(double roll,
                   double pitch,
                   double yaw,
                   DirectionUnit unit)
            throws ValueException
roll - double; (phi) the rotation around the x-axispitch - double; (theta) the rotation around the y-axisyaw - double; (psi) the rotation around the z-axisunit - DirectionUnit; the unit of the RPY parametersValueException - in case the units are incorrectCopyright © 2014–2019 Delft University of Technology. All rights reserved.