Record Class QueryEntities.TransformData
java.lang.Object
java.lang.Record
nl.pim16aap2.lightkeeper.protocol.QueryEntities.TransformData
- Record Components:
translationX- Translation X.translationY- Translation Y.translationZ- Translation Z.scaleX- Scale X.scaleY- Scale Y.scaleZ- Scale Z.leftRotation- Left rotation quaternion as[x, y, z, w].rightRotation- Right rotation quaternion as[x, y, z, w].
- Enclosing class:
QueryEntities
public static record QueryEntities.TransformData(double translationX, double translationY, double translationZ, double scaleX, double scaleY, double scaleZ, List<Double> leftRotation, List<Double> rightRotation)
extends Record
A display entity's transformation.
-
Constructor Summary
ConstructorsConstructorDescriptionTransformData(double translationX, double translationY, double translationZ, double scaleX, double scaleY, double scaleZ, List<Double> leftRotation, List<Double> rightRotation) Validates and defensively copies the rotations. -
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.Returns the value of theleftRotationrecord component.Returns the value of therightRotationrecord component.doublescaleX()Returns the value of thescaleXrecord component.doublescaleY()Returns the value of thescaleYrecord component.doublescaleZ()Returns the value of thescaleZrecord component.final StringtoString()Returns a string representation of this record class.doubleReturns the value of thetranslationXrecord component.doubleReturns the value of thetranslationYrecord component.doubleReturns the value of thetranslationZrecord component.
-
Constructor Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
translationX
public double translationX()Returns the value of thetranslationXrecord component.- Returns:
- the value of the
translationXrecord component
-
translationY
public double translationY()Returns the value of thetranslationYrecord component.- Returns:
- the value of the
translationYrecord component
-
translationZ
public double translationZ()Returns the value of thetranslationZrecord component.- Returns:
- the value of the
translationZrecord component
-
scaleX
public double scaleX()Returns the value of thescaleXrecord component.- Returns:
- the value of the
scaleXrecord component
-
scaleY
public double scaleY()Returns the value of thescaleYrecord component.- Returns:
- the value of the
scaleYrecord component
-
scaleZ
public double scaleZ()Returns the value of thescaleZrecord component.- Returns:
- the value of the
scaleZrecord component
-
leftRotation
Returns the value of theleftRotationrecord component.- Returns:
- the value of the
leftRotationrecord component
-
rightRotation
Returns the value of therightRotationrecord component.- Returns:
- the value of the
rightRotationrecord component
-