Record Class ParticleVector
java.lang.Object
java.lang.Record
gaiasky.scene.record.ParticleVector
- All Implemented Interfaces:
IParticleRecord
-
Constructor Summary
ConstructorsConstructorDescriptionParticleVector(double[] data) Creates an instance of aParticleVectorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatabsMag()floatappMag()doubleb()Galactic latitude in degrees.doublebeta()Ecliptic latitude in degrees.floatcolor()double[]data()Returns the value of thedatarecord component.doubledec()Declination in degrees.doubledistance()Distance in internal units.final booleanIndicates whether some other object is "equal to" this one.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()booleanbooleanfinal inthashCode()Returns a hash code value for this object.booleanbooleanbooleanbooleanhasSize()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.final StringtoString()Returns a string representation of this record class.float[]variMags()double[]floatvx()floatvy()floatvz()doublex()doubley()doublez()
-
Constructor Details
-
ParticleVector
public ParticleVector(double[] data) Creates an instance of aParticleVectorrecord class.- Parameters:
data- the value for thedatarecord component
-
-
Method Details
-
x
public double x()- Specified by:
xin interfaceIParticleRecord
-
y
public double y()- Specified by:
yin interfaceIParticleRecord
-
z
public double z()- Specified by:
zin interfaceIParticleRecord
-
names
- Specified by:
namesin interfaceIParticleRecord
-
namesConcat
- Specified by:
namesConcatin interfaceIParticleRecord
-
hasName
- Specified by:
hasNamein interfaceIParticleRecord
-
hasName
- Specified by:
hasNamein interfaceIParticleRecord
-
vx
public float vx()- Specified by:
vxin interfaceIParticleRecord
-
vy
public float vy()- Specified by:
vyin interfaceIParticleRecord
-
vz
public float vz()- Specified by:
vzin interfaceIParticleRecord
-
appMag
public float appMag()- Specified by:
appMagin interfaceIParticleRecord
-
absMag
public float absMag()- Specified by:
absMagin interfaceIParticleRecord
-
hasColor
public boolean hasColor()- Specified by:
hasColorin interfaceIParticleRecord
-
color
public float color()- Specified by:
colorin interfaceIParticleRecord
-
size
public float size()- Specified by:
sizein interfaceIParticleRecord
-
radius
public double radius()- Specified by:
radiusin interfaceIParticleRecord
-
id
public long id()- Specified by:
idin interfaceIParticleRecord
-
hip
public int hip()- Specified by:
hipin interfaceIParticleRecord
-
muAlpha
public float muAlpha()- Specified by:
muAlphain interfaceIParticleRecord
-
muDelta
public float muDelta()- Specified by:
muDeltain interfaceIParticleRecord
-
radVel
public float radVel()- Specified by:
radVelin interfaceIParticleRecord
-
rgb
public double[] rgb()- Specified by:
rgbin interfaceIParticleRecord
-
hasSize
public boolean hasSize()- Specified by:
hasSizein interfaceIParticleRecord
-
pos
- Specified by:
posin interfaceIParticleRecord
-
hasProperMotion
public boolean hasProperMotion()- Specified by:
hasProperMotionin interfaceIParticleRecord
-
distance
public double distance()Description copied from interface:IParticleRecordDistance in internal units. Beware, does the computation on the fly.- Specified by:
distancein interfaceIParticleRecord- Returns:
- The distance, in internal units.
-
parallax
public double parallax()Description copied from interface:IParticleRecordParallax in mas.- Specified by:
parallaxin interfaceIParticleRecord- Returns:
- The parallax in mas.
-
ra
public double ra()Description copied from interface:IParticleRecordRight ascension in degrees. Beware, does the conversion on the fly.- Specified by:
rain interfaceIParticleRecord- Returns:
- The right ascension, in degrees.
-
dec
public double dec()Description copied from interface:IParticleRecordDeclination in degrees. Beware, does the conversion on the fly.- Specified by:
decin interfaceIParticleRecord- Returns:
- The declination, in degrees.
-
lambda
public double lambda()Description copied from interface:IParticleRecordEcliptic longitude in degrees.- Specified by:
lambdain interfaceIParticleRecord- Returns:
- The ecliptic longitude, in degrees.
-
beta
public double beta()Description copied from interface:IParticleRecordEcliptic latitude in degrees.- Specified by:
betain interfaceIParticleRecord- Returns:
- The ecliptic latitude, in degrees.
-
l
public double l()Description copied from interface:IParticleRecordGalactic longitude in degrees.- Specified by:
lin interfaceIParticleRecord- Returns:
- The galactic longitude, in degrees.
-
b
public double b()Description copied from interface:IParticleRecordGalactic latitude in degrees.- Specified by:
bin interfaceIParticleRecord- Returns:
- The galactic latitude, in degrees.
-
tEff
public float tEff()Description copied from interface:IParticleRecordReturns the effective temperature, in K.- Specified by:
tEffin interfaceIParticleRecord- Returns:
- The effective temperature in K.
-
setExtraAttributes
- Specified by:
setExtraAttributesin interfaceIParticleRecord
-
hasExtra
public boolean hasExtra()- Specified by:
hasExtrain interfaceIParticleRecord
-
extraKeys
- Specified by:
extraKeysin interfaceIParticleRecord
-
getType
Description copied from interface:IParticleRecordReturns the particle record type.- Specified by:
getTypein interfaceIParticleRecord- Returns:
- The type.
-
isVariable
public boolean isVariable()Description copied from interface:IParticleRecordReturns whether this particle record has aVariableattached, making it a variable star.- Specified by:
isVariablein interfaceIParticleRecord- Returns:
- True if this record is a variable star.
-
nVari
public int nVari()- Specified by:
nVariin interfaceIParticleRecord- Returns:
- The number of variable star samples
-
period
public double period()- Specified by:
periodin interfaceIParticleRecord- Returns:
- The variability period in days.
-
variMags
public float[] variMags()- Specified by:
variMagsin interfaceIParticleRecord- Returns:
- The vector with the variable star magnitudes.
-
variTimes
public double[] variTimes()- Specified by:
variTimesin interfaceIParticleRecord- Returns:
- The vector with the variable star times corresponding to the magnitudes.
-
hasExtra
- Specified by:
hasExtrain interfaceIParticleRecord
-
hasExtra
- Specified by:
hasExtrain interfaceIParticleRecord
-
getExtra
Description copied from interface:IParticleRecordGets the extra attributes map.- Specified by:
getExtrain interfaceIParticleRecord- Returns:
- The map.
-
getExtra
Description copied from interface:IParticleRecordGets the extra data filed with the given name.- Specified by:
getExtrain interfaceIParticleRecord- Parameters:
name- The name of the data filed to get.- Returns:
- The data field, or null if it does not exist.
-
getExtra
Description copied from interface:IParticleRecordGets the extra data filed with the given UCD.- Specified by:
getExtrain interfaceIParticleRecord- Parameters:
ucd- The UCD of the data filed to get.- Returns:
- The data field, or null if it does not exist.
-
getExtraNumber
Description copied from interface:IParticleRecordGets the extra data filed with the given name, as a double number.- Specified by:
getExtraNumberin interfaceIParticleRecord- 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
Description copied from interface:IParticleRecordGets the extra data filed with the given UCD, as a double number.- Specified by:
getExtraNumberin interfaceIParticleRecord- 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.
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
data
public double[] data()Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-