net.aerith.misao.util
Class Xyz

java.lang.Object
  |
  +--net.aerith.misao.util.Xyz

public class Xyz
extends java.lang.Object

The Xyz represents a set of (x,y,z).


Field Summary
protected  double x
          The x value.
protected  double y
          The y value.
protected  double z
          The z value.
 
Constructor Summary
Xyz()
          Constructs an empty Xyz.
Xyz(double initial_x, double initial_y, double initial_z)
          Constructs an Xyz with specified (x,y,z).
 
Method Summary
 Coor convertToCoor()
          Converts this (x,y,z) position to the R.A.
 double getRadius()
          Gets the radius.
 double getX()
          Gets the x value.
 double getY()
          Gets the y value.
 double getZ()
          Gets the z value.
protected  java.lang.String paramString()
          Returns a raw string representation of the state of this object, for debugging use.
 void precession(JulianDay src_jd, JulianDay dst_jd)
          Changes the precession.
 void setX(double new_x)
          Sets the x value.
 void setY(double new_y)
          Sets the y value.
 void setZ(double new_z)
          Sets the z value.
 java.lang.String toString()
          Returns a string representation of the state of this object, for debugging use.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

x

protected double x
The x value.

y

protected double y
The y value.

z

protected double z
The z value.
Constructor Detail

Xyz

public Xyz()
Constructs an empty Xyz. The (x,y,z) are set as (0,0,0).

Xyz

public Xyz(double initial_x,
           double initial_y,
           double initial_z)
Constructs an Xyz with specified (x,y,z).
Parameters:
initial_x - the x position.
initial_y - the y position.
initial_z - the z position.
Method Detail

getX

public double getX()
Gets the x value.
Returns:
the x value.

setX

public void setX(double new_x)
Sets the x value.
Parameters:
new_x - the new x value.

getY

public double getY()
Gets the y value.
Returns:
the y value.

setY

public void setY(double new_y)
Sets the y value.
Parameters:
new_y - the new y value.

getZ

public double getZ()
Gets the z value.
Returns:
the z value.

setZ

public void setZ(double new_z)
Sets the z value.
Parameters:
new_z - the new z value.

getRadius

public double getRadius()
Gets the radius.
Returns:
the radius.

convertToCoor

public Coor convertToCoor()
Converts this (x,y,z) position to the R.A. and Decl.
Returns:
the R.A. and Decl.

precession

public void precession(JulianDay src_jd,
                       JulianDay dst_jd)
Changes the precession. The result is stored in this object.
Parameters:
src_jd - the Julian Day of the source precession.
dst_jd - the Julian Day of the destination precession.

paramString

protected java.lang.String paramString()
Returns a raw string representation of the state of this object, for debugging use. It should be invoked from toString method of the subclasses.
Returns:
a string representation of the state of this object.

toString

public java.lang.String toString()
Returns a string representation of the state of this object, for debugging use.
Overrides:
toString in class java.lang.Object
Returns:
a string representation of the state of this object.