Class Direction

java.lang.Object
com.github.gbenroscience.math.geom.Direction

public class Direction extends Object
Models Direction vectors. They determine the nature of many objects e.g Line objects and plane objects.
Author:
GBEMIRO
  • Constructor Details

    • Direction

      public Direction(double a, double b, double c)
      Parameters:
      a - The direction coordinate along the x axis
      b - The direction coordinate along the y axis
      c - The direction coordinate along the z axis
  • Method Details

    • getA

      public double getA()
      Returns:
      the direction coordinate along the x axis
    • setA

      public void setA(double a)
      Parameters:
      a - sets the direction coordinate along the x axis
    • getB

      public double getB()
      Returns:
      the direction coordinate along the y axis
    • setB

      public void setB(double b)
      Parameters:
      b - sets the direction coordinate along the y axis
    • getC

      public double getC()
      Returns:
      the direction coordinate along the z axis
    • setC

      public void setC(double c)
      Parameters:
      c - sets the direction coordinate along the z axis
    • toString

      public String toString()
      Overrides:
      toString in class Object