Interface Directed3d<D extends Directed<D>>

Type Parameters:
D - the Directed type
All Superinterfaces:
Directed<D>
All Known Implementing Classes:
DirectedPoint3d, OrientedPoint3d, Ray3d

public interface Directed3d<D extends Directed<D>> extends Directed<D>
Directed3d.java.

Copyright (c) 2023-2024 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://djutils.org. The DJUTILS project is distributed under a three-clause BSD-style license, which can be found at https://djutils.org/docs/license.html.

There are two naming conventions for phi and theta. Djutils draw uses neither to stay clear of this confusion. The angle from the positive z-axis to the projection of the direction on the x-y-plane is named dirY. The angle from the positive x-axis to the projection of the direction in the x-y-plane is named dirZ.

Author:
Alexander Verbraeck, Peter Knoppers
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Retrieve the angle from the positive z axis to the direction.
    double
    Retrieve the angle from the positive x-axis to the projection of the direction in the x-y-plane.

    Methods inherited from interface org.djutils.draw.Directed

    epsilonEquals, neg
  • Method Details

    • getDirZ

      double getDirZ()
      Retrieve the angle from the positive x-axis to the projection of the direction in the x-y-plane. Positive values rotate towards the positive y-axis (and beyond).
      Returns:
      double; dirZ
    • getDirY

      double getDirY()
      Retrieve the angle from the positive z axis to the direction. Normally these are values between [0:π]. Angles less than π/2 indicate above the x-y-plane; positive slope, angles > π/2 indicate angles below this plane; negative slope.
      Returns:
      double; dirY