Class Cartesian

java.lang.Object
uk.ac.starlink.pal.Cartesian

public class Cartesian extends Object
Cartesian Point in 2D or 3D space
  • Constructor Summary

    Constructors
    Constructor
    Description
    Cartesian(double a, double b)
    Cartesian Point in 2D space
    Cartesian(double a, double b, double c)
    Cartesian Point in 3D space
    Cartesian(double a, double b, double c, double aa, double bb, double cc)
    Cartesian Point in 3D space and its derivitive
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Get the x component
    double
    Get the first derivitive of x ( velocity)
    double
    Get the y component
    double
    Get the first derivitive of y ( velocity)
    double
    Get the z component
    double
    Get the first derivitive of z ( velocity)
    Get the value of the point as a string of the form (x,y,z) and the velocity (if set) in the form (aa,bb,cc)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Cartesian

      public Cartesian(double a, double b)
      Cartesian Point in 2D space
      Parameters:
      a - x component
      b - y component
    • Cartesian

      public Cartesian(double a, double b, double c)
      Cartesian Point in 3D space
      Parameters:
      a - x component
      b - y component
      c - z component
    • Cartesian

      public Cartesian(double a, double b, double c, double aa, double bb, double cc)
      Cartesian Point in 3D space and its derivitive
      Parameters:
      a - x component
      b - y component
      c - z component
      aa - first derivitive of x
      bb - first derivitive of y
      cc - first derivitive of z
  • Method Details

    • getX

      public double getX()
      Get the x component
      Returns:
      The x component
    • getY

      public double getY()
      Get the y component
      Returns:
      The y component
    • getZ

      public double getZ()
      Get the z component
      Returns:
      The z component
    • getXvel

      public double getXvel()
      Get the first derivitive of x ( velocity)
      Returns:
      The x velocity component
    • getYvel

      public double getYvel()
      Get the first derivitive of y ( velocity)
      Returns:
      The t velocity component
    • getZvel

      public double getZvel()
      Get the first derivitive of z ( velocity)
      Returns:
      The z velocity component
    • toString

      public String toString()
      Get the value of the point as a string of the form (x,y,z) and the velocity (if set) in the form (aa,bb,cc)
      Overrides:
      toString in class Object