public class Acceleration3D 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 |
---|
Acceleration3D(org.djunits.value.vdouble.scalar.Acceleration x,
org.djunits.value.vdouble.scalar.Acceleration y,
org.djunits.value.vdouble.scalar.Acceleration z)
Construct a new Acceleration3D from three strongly typed Cartesian coordinates.
|
Acceleration3D(org.djunits.value.vdouble.scalar.Acceleration acceleration,
org.djunits.value.vdouble.scalar.Direction theta,
org.djunits.value.vdouble.scalar.Direction phi)
Construct a new Acceleration3D from a strongly typed acceleration and polar coordinates.
|
Acceleration3D(org.djunits.value.vdouble.vector.AccelerationVector acceleration)
Construct a new Acceleration3D from vector of strongly typed Cartesian coordinates.
|
Acceleration3D(double x,
double y,
double z,
org.djunits.unit.AccelerationUnit unit)
Construct a new Acceleration3D from three double Cartesian coordinates and a acceleration unit.
|
Modifier and Type | Method and Description |
---|---|
org.djunits.value.vdouble.scalar.Acceleration |
getAcceleration()
Retrieve the norm of this Acceleration3D.
|
org.djunits.value.vdouble.scalar.Direction |
getPhi()
Retrieve the phi of this Acceleration3D.
|
org.djunits.value.vdouble.scalar.Direction |
getTheta()
Retrieve the theta of this Acceleration3D.
|
org.djunits.value.vdouble.scalar.Acceleration |
getX()
Retrieve the x-component of this Acceleration3D.
|
org.djunits.value.vdouble.scalar.Acceleration |
getY()
Retrieve the y-component of this Acceleration3D.
|
org.djunits.value.vdouble.scalar.Acceleration |
getZ()
Retrieve the z-component of this Acceleration3D.
|
String |
toString() |
public Acceleration3D(org.djunits.value.vdouble.vector.AccelerationVector acceleration) throws org.djunits.value.ValueException
acceleration
- the accelerations in 3D (YPR coded)org.djunits.value.ValueException
- in case the vector does not have exactly three elementspublic Acceleration3D(org.djunits.value.vdouble.scalar.Acceleration x, org.djunits.value.vdouble.scalar.Acceleration y, org.djunits.value.vdouble.scalar.Acceleration z) throws org.djunits.value.ValueException
x
- the acceleration in the x-directiony
- the acceleration in the y-directionz
- the acceleration in the z-directionorg.djunits.value.ValueException
- in case the units are incorrectpublic Acceleration3D(double x, double y, double z, org.djunits.unit.AccelerationUnit unit) throws org.djunits.value.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 parametersorg.djunits.value.ValueException
- in case the units are incorrectpublic Acceleration3D(org.djunits.value.vdouble.scalar.Acceleration acceleration, org.djunits.value.vdouble.scalar.Direction theta, org.djunits.value.vdouble.scalar.Direction phi) throws org.djunits.value.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 directionorg.djunits.value.ValueException
- in case the vector does not have exactly three elementspublic final org.djunits.value.vdouble.scalar.Acceleration getX()
public final org.djunits.value.vdouble.scalar.Acceleration getY()
public final org.djunits.value.vdouble.scalar.Acceleration getZ()
public final org.djunits.value.vdouble.scalar.Direction getTheta()
public final org.djunits.value.vdouble.scalar.Direction getPhi()
public final org.djunits.value.vdouble.scalar.Acceleration getAcceleration()
Copyright © 2014–2017 Delft University of Technology. All rights reserved.