Package org.opentrafficsim.core.math
Class Angle3d
java.lang.Object
org.opentrafficsim.core.math.Angle3d
3D-rotation, RPY coded (longitudinal roll along the x-axis, lateral pitch along the y-axis and vertical yaw along the
z-axis), also called Tait–Bryan angles or Cardan angles. Angles are relative, and can relate to e.g. the inertial frame of a
GTU.
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck, Peter Knoppers
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Angle3d
Constructor.- Parameters:
rotation- the angles of the rotation in 3D (RPY coded)- Throws:
ValueRuntimeException- in case the vector does not have exactly three elements
-
Angle3d
Constructor.- Parameters:
roll- (phi) the rotation around the x-axispitch- (theta) the rotation around the y-axisyaw- (psi) the rotation around the z-axis- Throws:
ValueRuntimeException- in case the units are incorrect
-
Angle3d
Constructor.- Parameters:
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 parameters- Throws:
ValueRuntimeException- in case the units are incorrect
-
-
Method Details