public class Acceleration3D extends Object implements Serializable
Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Constructor and Description |
---|
Acceleration3D(Acceleration x,
Acceleration y,
Acceleration z)
Construct a new Acceleration3D from three strongly typed Cartesian coordinates.
|
Acceleration3D(Acceleration acceleration,
Direction theta,
Direction phi)
Construct a new Acceleration3D from a strongly typed acceleration and polar coordinates.
|
Acceleration3D(AccelerationVector acceleration)
Construct a new Acceleration3D from vector of strongly typed Cartesian coordinates.
|
Acceleration3D(double x,
double y,
double z,
AccelerationUnit unit)
Construct a new Acceleration3D from three double Cartesian coordinates and a acceleration unit.
|
Modifier and Type | Method and Description |
---|---|
Acceleration |
getAcceleration()
Retrieve the norm of this Acceleration3D.
|
Direction |
getPhi()
Retrieve the phi of this Acceleration3D.
|
Direction |
getTheta()
Retrieve the theta of this Acceleration3D.
|
Acceleration |
getX()
Retrieve the x-component of this Acceleration3D.
|
Acceleration |
getY()
Retrieve the y-component of this Acceleration3D.
|
Acceleration |
getZ()
Retrieve the z-component of this Acceleration3D.
|
String |
toString() |
public Acceleration3D(AccelerationVector acceleration) throws ValueException
acceleration
- the accelerations in 3D (YPR coded)ValueException
- in case the vector does not have exactly three elementspublic Acceleration3D(Acceleration x, Acceleration y, Acceleration z) throws ValueException
x
- the acceleration in the x-directiony
- the acceleration in the y-directionz
- the acceleration in the z-directionValueException
- in case the units are incorrectpublic Acceleration3D(double x, double y, double z, AccelerationUnit unit) throws ValueException
x
- the acceleration in the x-directiony
- the acceleration in the y-directionz
- the acceleration in the z-directionunit
- the unit of the xyz parametersValueException
- in case the units are incorrectpublic Acceleration3D(Acceleration acceleration, Direction theta, Direction phi) throws ValueException
acceleration
- Acceleration; the acceleration in the direction of the angle along the vectortheta
- Direction; the angle from the z directionphi
- Direction; the projected angle in the xy-plane from the x directionValueException
- in case the vector does not have exactly three elementspublic final Acceleration getX()
public final Acceleration getY()
public final Acceleration getZ()
public final Direction getTheta()
public final Direction getPhi()
public final Acceleration getAcceleration()
Copyright © 2014–2018 Delft University of Technology. All rights reserved.