View Javadoc
1   package org.opentrafficsim.core.geometry;
2   
3   import org.djutils.draw.point.OrientedPoint3d;
4   import org.djutils.draw.point.Point3d;
5   
6   /**
7    * DirectedPoint.java.
8    * <p>
9    * Copyright (c) 2020-2022 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
10   * BSD-style license. See <a href="https://opentrafficsim.org/docs/current/license.html">OpenTrafficSim License</a>.
11   * </p>
12   * @author <a href="https://www.tudelft.nl/averbraeck">Alexander Verbraeck</a>
13   * @author <a href="https://www.tudelft.nl/pknoppers">Peter Knoppers</a>
14   * @author <a href="https://www.transport.citg.tudelft.nl">Wouter Schakel</a>
15   */
16  public class DirectedPoint extends OrientedPoint3d
17  {
18  
19      public DirectedPoint(final double x, final double y, final double z, final double dirX, final double dirY,
20              final double dirZ) throws IllegalArgumentException
21      {
22          super(x, y, z, dirX, dirY, dirZ);
23      }
24  
25      public DirectedPoint(final double x, final double y, final double z, final double[] orientation)
26              throws NullPointerException, IllegalArgumentException
27      {
28          super(x, y, z, orientation);
29      }
30  
31      public DirectedPoint(final double x, final double y, final double z) throws IllegalArgumentException
32      {
33          super(x, y, z);
34      }
35  
36      public DirectedPoint(final double[] xyz, final double dirX, final double dirY, final double dirZ)
37              throws NullPointerException, IllegalArgumentException
38      {
39          super(xyz, dirX, dirY, dirZ);
40      }
41  
42      public DirectedPoint(final double[] xyz, final double[] orientation) throws NullPointerException, IllegalArgumentException
43      {
44          super(xyz, orientation);
45      }
46  
47      public DirectedPoint(final double[] xyz) throws NullPointerException, IllegalArgumentException
48      {
49          super(xyz);
50      }
51  
52      public DirectedPoint(final Point3d point, final double dirX, final double dirY, final double dirZ)
53              throws IllegalArgumentException
54      {
55          super(point, dirX, dirY, dirZ);
56      }
57  
58      public double getRotX()
59      {
60          return getDirX();
61      }
62  
63      public double getRotY()
64      {
65          return getDirY();
66      }
67  
68      public double getRotZ()
69      {
70          return getDirZ();
71      }
72  }