Class SpecifyVector


public class SpecifyVector
extends DirectionVectorBean
Specifies each axis-component of a vector in a particular direction.
Author:
Owen
  • Constructor Details

    • SpecifyVector

      public SpecifyVector​(org.anchoranalysis.spatial.orientation.DirectionVector vector)
      Create from a DirectionVector.
      Parameters:
      vector - the vector from which components are copied.
    • SpecifyVector

      public SpecifyVector()
    • SpecifyVector

      public SpecifyVector​(double x, double y, double z)
  • Method Details

    • createVector

      public org.anchoranalysis.spatial.orientation.DirectionVector createVector()
      Description copied from class: DirectionVectorBean
      Creates a vector in a particular direction.
      Specified by:
      createVector in class DirectionVectorBean
      Returns:
      the created vector.
    • getX

      public double getX()
      Component of the vector along the x-axis.
    • setX

      public void setX​(double x)
      Component of the vector along the x-axis.
    • getY

      public double getY()
      Component of the vector along the y-axis.
    • setY

      public void setY​(double y)
      Component of the vector along the y-axis.
    • getZ

      public double getZ()
      Component of the vector along the z-axis.
    • setZ

      public void setZ​(double z)
      Component of the vector along the z-axis.