public class Angle3D 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.
Constructor and Description |
---|
Angle3D(org.djunits.value.vdouble.scalar.Angle roll,
org.djunits.value.vdouble.scalar.Angle pitch,
org.djunits.value.vdouble.scalar.Angle yaw) |
Angle3D(org.djunits.value.vdouble.vector.AngleVector rotation) |
Angle3D(double roll,
double pitch,
double yaw,
org.djunits.unit.AngleUnit unit) |
Modifier and Type | Method and Description |
---|---|
org.djunits.value.vdouble.scalar.Angle |
getPitch() |
org.djunits.value.vdouble.scalar.Angle |
getRoll() |
org.djunits.value.vdouble.scalar.Angle |
getYaw() |
String |
toString() |
public Angle3D(org.djunits.value.vdouble.vector.AngleVector rotation) throws org.djunits.value.ValueException
rotation
- the angles of the rotation in 3D (RPY coded)org.djunits.value.ValueException
- in case the vector does not have exactly three elementspublic Angle3D(org.djunits.value.vdouble.scalar.Angle roll, org.djunits.value.vdouble.scalar.Angle pitch, org.djunits.value.vdouble.scalar.Angle yaw) throws org.djunits.value.ValueException
roll
- (phi) the rotation around the x-axispitch
- (theta) the rotation around the y-axisyaw
- (psi) the rotation around the z-axisorg.djunits.value.ValueException
- in case the units are incorrectpublic Angle3D(double roll, double pitch, double yaw, org.djunits.unit.AngleUnit unit) throws org.djunits.value.ValueException
roll
- (phi) the rotation around the x-axispitch
- (theta) the rotation around the y-axisyaw
- (psi) the rotation around the z-axisunit
- the unit of the RPY parametersorg.djunits.value.ValueException
- in case the units are incorrectCopyright © 2014–2017 Delft University of Technology. All rights reserved.