Package uk.ac.starlink.pal
Class Cartesian
java.lang.Object
uk.ac.starlink.pal.Cartesian
Cartesian Point in 2D or 3D space
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
getX()
Get the x componentdouble
getXvel()
Get the first derivitive of x ( velocity)double
getY()
Get the y componentdouble
getYvel()
Get the first derivitive of y ( velocity)double
getZ()
Get the z componentdouble
getZvel()
Get the first derivitive of z ( velocity)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)
-
Constructor Details
-
Cartesian
public Cartesian(double a, double b) Cartesian Point in 2D space- Parameters:
a
- x componentb
- y component
-
Cartesian
public Cartesian(double a, double b, double c) Cartesian Point in 3D space- Parameters:
a
- x componentb
- y componentc
- 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 componentb
- y componentc
- z componentaa
- first derivitive of xbb
- first derivitive of ycc
- 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
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)
-