Interface IParticleRecord
- All Known Implementing Classes:
Particle, ParticleExt, ParticleStar, ParticleVariable, ParticleVector
public interface IParticleRecord
-
Method Summary
Modifier and TypeMethodDescriptionfloatabsMag()floatappMag()doubleb()Galactic latitude in degrees.doublebeta()Ecliptic latitude in degrees.floatcolor()doubledec()Declination in degrees.doubledistance()Distance in internal units.com.badlogic.gdx.utils.ObjectMap.Keys<UCD> getExtra()Gets the extra attributes map.Gets the extra data filed with the given UCD.Gets the extra data filed with the given name.doublegetExtraNumber(UCD ucd) Gets the extra data filed with the given UCD, as a double number.doublegetExtraNumber(String name) Gets the extra data filed with the given name, as a double number.getType()Returns the particle record type.booleanhasColor()booleanhasExtra()booleanbooleanbooleanbooleanbooleanbooleanhasSize()inthip()longid()booleanReturns whether this particle record has aVariableattached, making it a variable star.doublel()Galactic longitude in degrees.doublelambda()Ecliptic longitude in degrees.floatmuAlpha()floatmuDelta()String[]names()intnVari()doubleparallax()Parallax in mas.doubleperiod()doublera()Right ascension in degrees.doubleradius()floatradVel()double[]rgb()voidsetExtraAttributes(com.badlogic.gdx.utils.ObjectMap<UCD, Object> extra) floatsize()floattEff()Returns the effective temperature, in K.float[]variMags()double[]floatvx()floatvy()floatvz()doublex()doubley()doublez()
-
Method Details
-
x
double x() -
y
double y() -
z
double z() -
pos
-
hasProperMotion
boolean hasProperMotion() -
vx
float vx() -
vy
float vy() -
vz
float vz() -
names
String[] names() -
namesConcat
String namesConcat() -
hasName
-
hasName
-
appMag
float appMag() -
absMag
float absMag() -
hasColor
boolean hasColor() -
color
float color() -
rgb
double[] rgb() -
hasSize
boolean hasSize() -
size
float size() -
radius
double radius() -
id
long id() -
hip
int hip() -
muAlpha
float muAlpha() -
muDelta
float muDelta() -
radVel
float radVel() -
distance
double distance()Distance in internal units. Beware, does the computation on the fly.- Returns:
- The distance, in internal units.
-
parallax
double parallax()Parallax in mas.- Returns:
- The parallax in mas.
-
ra
double ra()Right ascension in degrees. Beware, does the conversion on the fly.- Returns:
- The right ascension, in degrees.
-
dec
double dec()Declination in degrees. Beware, does the conversion on the fly.- Returns:
- The declination, in degrees.
-
lambda
double lambda()Ecliptic longitude in degrees.- Returns:
- The ecliptic longitude, in degrees.
-
beta
double beta()Ecliptic latitude in degrees.- Returns:
- The ecliptic latitude, in degrees.
-
l
double l()Galactic longitude in degrees.- Returns:
- The galactic longitude, in degrees.
-
b
double b()Galactic latitude in degrees.- Returns:
- The galactic latitude, in degrees.
-
tEff
float tEff()Returns the effective temperature, in K.- Returns:
- The effective temperature in K.
-
setExtraAttributes
-
hasExtra
boolean hasExtra() -
hasExtra
-
hasExtra
-
getExtra
-
getExtra
-
getExtra
-
getExtraNumber
Gets the extra data filed with the given name, as a double number.- Parameters:
name- The name of the data filed to get.- Returns:
- The data field as a double, or NaN if it does not exist or is not a number.
-
getExtraNumber
Gets the extra data filed with the given UCD, as a double number.- Parameters:
ucd- The UCD of the data filed to get.- Returns:
- The data field as a double, or NaN if it does not exist or is not a number.
-
extraKeys
com.badlogic.gdx.utils.ObjectMap.Keys<UCD> extraKeys() -
getType
-
isVariable
boolean isVariable()Returns whether this particle record has aVariableattached, making it a variable star.- Returns:
- True if this record is a variable star.
-
nVari
int nVari()- Returns:
- The number of variable star samples
-
period
double period()- Returns:
- The variability period in days.
-
variMags
float[] variMags()- Returns:
- The vector with the variable star magnitudes.
-
variTimes
double[] variTimes()- Returns:
- The vector with the variable star times corresponding to the magnitudes.
-