Package kr.toxicity.model.api.util
Record Class InterpolationUtil.VectorResult
java.lang.Object
java.lang.Record
kr.toxicity.model.api.util.InterpolationUtil.VectorResult
- Record Components:
vector- vectorskipInterpolation- skip interpolation
- Enclosing class:
InterpolationUtil
public static record InterpolationUtil.VectorResult(@NotNull org.joml.Vector3f vector, boolean skipInterpolation)
extends Record
Vector result
-
Constructor Summary
ConstructorsConstructorDescriptionVectorResult(@NotNull org.joml.Vector3f vector) Vector resultVectorResult(@NotNull org.joml.Vector3f vector, boolean skipInterpolation) Creates an instance of aVectorResultrecord 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.booleanReturns the value of theskipInterpolationrecord component.final StringtoString()Returns a string representation of this record class.@NotNull org.joml.Vector3fvector()Returns the value of thevectorrecord component.
-
Constructor Details
-
VectorResult
public VectorResult(@NotNull @NotNull org.joml.Vector3f vector) Vector result- Parameters:
vector- vector
-
VectorResult
public VectorResult(@NotNull @NotNull org.joml.Vector3f vector, boolean skipInterpolation) Creates an instance of aVectorResultrecord class.- Parameters:
vector- the value for thevectorrecord componentskipInterpolation- the value for theskipInterpolationrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
vector
@NotNull public @NotNull org.joml.Vector3f vector()Returns the value of thevectorrecord component.- Returns:
- the value of the
vectorrecord component
-
skipInterpolation
public boolean skipInterpolation()Returns the value of theskipInterpolationrecord component.- Returns:
- the value of the
skipInterpolationrecord component
-