Package com.hbm_m.client.missile.track
Record Class MissileTrackWorldRender.CameraRelativePose
java.lang.Object
java.lang.Record
com.hbm_m.client.missile.track.MissileTrackWorldRender.CameraRelativePose
- Enclosing class:
- MissileTrackWorldRender
public static record MissileTrackWorldRender.CameraRelativePose(double relX, double relY, double relZ, float screenScale, double trueX, double trueY, double trueZ)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionCameraRelativePose(double relX, double relY, double relZ, float screenScale, double trueX, double trueY, double trueZ) Creates an instance of aCameraRelativePoserecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doublerelX()Returns the value of therelXrecord component.doublerelY()Returns the value of therelYrecord component.doublerelZ()Returns the value of therelZrecord component.floatReturns the value of thescreenScalerecord component.final StringtoString()Returns a string representation of this record class.doubletrueX()Returns the value of thetrueXrecord component.doubletrueY()Returns the value of thetrueYrecord component.doubletrueZ()Returns the value of thetrueZrecord component.
-
Constructor Details
-
CameraRelativePose
public CameraRelativePose(double relX, double relY, double relZ, float screenScale, double trueX, double trueY, double trueZ) Creates an instance of aCameraRelativePoserecord class.- Parameters:
relX- the value for therelXrecord componentrelY- the value for therelYrecord componentrelZ- the value for therelZrecord componentscreenScale- the value for thescreenScalerecord componenttrueX- the value for thetrueXrecord componenttrueY- the value for thetrueYrecord componenttrueZ- the value for thetrueZrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 with '=='. -
relX
public double relX()Returns the value of therelXrecord component.- Returns:
- the value of the
relXrecord component
-
relY
public double relY()Returns the value of therelYrecord component.- Returns:
- the value of the
relYrecord component
-
relZ
public double relZ()Returns the value of therelZrecord component.- Returns:
- the value of the
relZrecord component
-
screenScale
public float screenScale()Returns the value of thescreenScalerecord component.- Returns:
- the value of the
screenScalerecord component
-
trueX
public double trueX()Returns the value of thetrueXrecord component.- Returns:
- the value of the
trueXrecord component
-
trueY
public double trueY()Returns the value of thetrueYrecord component.- Returns:
- the value of the
trueYrecord component
-
trueZ
public double trueZ()Returns the value of thetrueZrecord component.- Returns:
- the value of the
trueZrecord component
-