Record Class GrabPoint
java.lang.Object
java.lang.Record
net.timtaran.interactivemc.body.type.GrabPoint
- Record Components:
position- position of grab point in body local spacerotation- difference in rotation between grabber body and grab point after grab
public record GrabPoint(com.github.stephengold.joltjni.readonly.RVec3Arg position, com.github.stephengold.joltjni.readonly.QuatArg rotation)
extends Record
Grab point for
GrabInteraction.-
Constructor Summary
ConstructorsConstructorDescriptionGrabPoint(com.github.stephengold.joltjni.readonly.RVec3Arg position, com.github.stephengold.joltjni.readonly.QuatArg rotation) Creates an instance of aGrabPointrecord 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.com.github.stephengold.joltjni.readonly.RVec3Argposition()Returns the value of thepositionrecord component.com.github.stephengold.joltjni.readonly.QuatArgrotation()Returns the value of therotationrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GrabPoint
public GrabPoint(com.github.stephengold.joltjni.readonly.RVec3Arg position, com.github.stephengold.joltjni.readonly.QuatArg rotation) Creates an instance of aGrabPointrecord class.
-
-
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 withObjects::equals(Object,Object). -
position
public com.github.stephengold.joltjni.readonly.RVec3Arg position()Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-
rotation
public com.github.stephengold.joltjni.readonly.QuatArg rotation()Returns the value of therotationrecord component.- Returns:
- the value of the
rotationrecord component
-