Package kr.toxicity.model.api.animation
Record Class VectorPoint
java.lang.Object
java.lang.Record
kr.toxicity.model.api.animation.VectorPoint
- All Implemented Interfaces:
Comparable<Timed>,Timed
public record VectorPoint(@NotNull FloatFunction<org.joml.Vector3f> _vector, float time, @NotNull VectorInterpolation interpolation)
extends Record
implements Timed
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionVectorPoint(@NotNull FloatFunction<org.joml.Vector3f> _vector, float time, @NotNull VectorInterpolation interpolation) Creates an instance of aVectorPointrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull FloatFunction<org.joml.Vector3f> _vector()Returns the value of the_vectorrecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.@NotNull VectorInterpolationReturns the value of theinterpolationrecord component.floattime()Returns the value of thetimerecord component.@NotNull VectorPointtime(float newTime) final StringtoString()Returns a string representation of this record class.@NotNull org.joml.Vector3fvector()@NotNull org.joml.Vector3fvector(float f)
-
Field Details
-
EMPTY
-
-
Constructor Details
-
VectorPoint
public VectorPoint(@NotNull @NotNull FloatFunction<org.joml.Vector3f> _vector, float time, @NotNull @NotNull VectorInterpolation interpolation) Creates an instance of aVectorPointrecord class.- Parameters:
_vector- the value for the_vectorrecord componenttime- the value for thetimerecord componentinterpolation- the value for theinterpolationrecord component
-
-
Method Details
-
vector
@NotNull public @NotNull org.joml.Vector3f vector(float f) -
vector
@NotNull public @NotNull org.joml.Vector3f vector() -
time
-
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 '=='. -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. -
_vector
Returns the value of the_vectorrecord component.- Returns:
- the value of the
_vectorrecord component
-
time
public float time()Returns the value of thetimerecord component. -
interpolation
Returns the value of theinterpolationrecord component.- Returns:
- the value of the
interpolationrecord component
-