Package gaiasky.scenegraph
Class ParticleGroup.ParticleBean
- java.lang.Object
-
- gaiasky.scenegraph.ParticleGroup.ParticleBean
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
StarGroup.StarBean
- Enclosing class:
- ParticleGroup
public static class ParticleGroup.ParticleBean extends java.lang.Object implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ParticleBean(double[] data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
b()
Galactic latitude in degrees.double
beta()
Ecliptic latitude in degrees.double
dec()
Declination in degrees.double
distance()
Distance in internal units.double
l()
Galactic longitude in degrees.double
lambda()
Ecliptic longitude in degrees.Vector3d
pos(Vector3d aux)
double
ra()
Right ascension in degrees.double
x()
double
y()
double
z()
-
-
-
Field Detail
-
I_X
public static final int I_X
- See Also:
- Constant Field Values
-
I_Y
public static final int I_Y
- See Also:
- Constant Field Values
-
I_Z
public static final int I_Z
- See Also:
- Constant Field Values
-
data
public double[] data
-
-
Method Detail
-
distance
public double distance()
Distance in internal units. Beware, does the computation on the fly.- Returns:
- The distance, in internal units
-
ra
public double ra()
Right ascension in degrees. Beware, does the conversion on the fly.- Returns:
- The right ascension, in degrees
-
dec
public double dec()
Declination in degrees. Beware, does the conversion on the fly.- Returns:
- The declination, in degrees
-
lambda
public double lambda()
Ecliptic longitude in degrees.- Returns:
- The ecliptic longitude, in degrees
-
beta
public double beta()
Ecliptic latitude in degrees.- Returns:
- The ecliptic latitude, in degrees
-
l
public double l()
Galactic longitude in degrees.- Returns:
- The galactic longitude, in degrees
-
b
public double b()
Galactic latitude in degrees.- Returns:
- The galactic latitude, in degrees
-
x
public double x()
-
y
public double y()
-
z
public double z()
-
-