Record Class ParticleVector
java.lang.Object
java.lang.Record
gaiasky.scene.record.ParticleVector
- Record Components:
data- The data array containing the position.
- All Implemented Interfaces:
IParticleRecord
A particle record that only contains positions, stored in a double array.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionParticleVector(double[] data) Creates an instance of aParticleVectorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatabsMag()floatappMag()floatcolor()double[]data()Returns the value of thedatarecord component.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()String[]names()doubleradius()double[]rgb()voidsetExtraAttributes(com.badlogic.gdx.utils.ObjectMap<UCD, Object> extra) voidsetPos(double x, double y, double z) voidsetRGB(double r, double g, double b) voidsetSize(double size) voidsetX(double x) voidsetY(double y) voidsetZ(double z) floatsize()floattEff()final StringtoString()Returns a string representation of this record class.floatvx()floatvy()floatvz()doublex()doubley()doublez()Methods inherited from interface IParticleRecord
argOfPericenter, ascendingNode, b, beta, dec, distance, eccentricity, epoch, inclination, isVariable, l, lambda, meanAnomaly, muAlpha, muDelta, nVari, parallax, period, ra, radVel, semiMajorAxis, variMags, variTimesModifier and TypeMethodDescriptiondefault doubledefault doubledefault doubleb()default doublebeta()default doubledec()default doubledistance()default doubledefault doubleepoch()default doubledefault booleanReturns whether this particle record has aVariableattached, making it a variable star.default doublel()default doublelambda()default doubledefault floatmuAlpha()default floatmuDelta()default intnVari()default doubleparallax()default doubleperiod()default doublera()default floatradVel()default doubledefault float[]variMags()default double[]
-
Constructor Details
-
ParticleVector
public ParticleVector(double[] data) Creates an instance of aParticleVectorrecord class.- Parameters:
data- the value for thedatarecord component
-
-
Method Details
-
setPos
public void setPos(double x, double y, double z) -
x
public double x()- Specified by:
xin interfaceIParticleRecord
-
setX
public void setX(double x) -
y
public double y()- Specified by:
yin interfaceIParticleRecord
-
setY
public void setY(double y) -
z
public double z()- Specified by:
zin interfaceIParticleRecord
-
setZ
public void setZ(double z) -
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
-
setSize
public void setSize(double size) -
radius
public double radius()- Specified by:
radiusin interfaceIParticleRecord
-
id
public long id()- Specified by:
idin interfaceIParticleRecord
-
hip
public int hip()- Specified by:
hipin interfaceIParticleRecord
-
rgb
public double[] rgb()- Specified by:
rgbin interfaceIParticleRecord
-
setRGB
public void setRGB(double r, double g, double b) -
hasSize
public boolean hasSize()- Specified by:
hasSizein interfaceIParticleRecord
-
pos
- Specified by:
posin interfaceIParticleRecord
-
hasProperMotion
public boolean hasProperMotion()- Specified by:
hasProperMotionin interfaceIParticleRecord
-
tEff
public float tEff()- 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.
-
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
-