Package kr.toxicity.model.api.animation
Record Class VectorPoint.BezierConfig
java.lang.Object
java.lang.Record
kr.toxicity.model.api.animation.VectorPoint.BezierConfig
- Record Components:
leftTime- the time offset for the incoming (left) handleleftValue- the value offset for the incoming (left) handlerightTime- the time offset for the outgoing (right) handlerightValue- the value offset for the outgoing (right) handle
- Enclosing class:
VectorPoint
public static record VectorPoint.BezierConfig(@Nullable org.joml.Vector3f leftTime, @Nullable org.joml.Vector3f leftValue, @Nullable org.joml.Vector3f rightTime, @Nullable org.joml.Vector3f rightValue)
extends Record
Configuration for bezier curve interpolation.
- Since:
- 1.15.2
-
Constructor Summary
ConstructorsConstructorDescriptionBezierConfig(@Nullable org.joml.Vector3f leftTime, @Nullable org.joml.Vector3f leftValue, @Nullable org.joml.Vector3f rightTime, @Nullable org.joml.Vector3f rightValue) Creates an instance of aBezierConfigrecord 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.@NotNull org.joml.Vector3fleftTime()Gets the time offset for the incoming (left) handle.@NotNull org.joml.Vector3fGets the value offset for the incoming (left) handle.@NotNull org.joml.Vector3fGets the time offset for the outgoing (right) handle.@NotNull org.joml.Vector3fGets the value offset for the outgoing (right) handle.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BezierConfig
public BezierConfig(@Nullable @Nullable org.joml.Vector3f leftTime, @Nullable @Nullable org.joml.Vector3f leftValue, @Nullable @Nullable org.joml.Vector3f rightTime, @Nullable @Nullable org.joml.Vector3f rightValue) Creates an instance of aBezierConfigrecord class.- Parameters:
leftTime- the value for theleftTimerecord componentleftValue- the value for theleftValuerecord componentrightTime- the value for therightTimerecord componentrightValue- the value for therightValuerecord component
-
-
Method Details
-
leftTime
@NotNull public @NotNull org.joml.Vector3f leftTime()Gets the time offset for the incoming (left) handle. If null, returns a zero vector.- Returns:
- the left time offset vector
- Since:
- 1.15.2
-
leftValue
@NotNull public @NotNull org.joml.Vector3f leftValue()Gets the value offset for the incoming (left) handle. If null, returns a zero vector.- Returns:
- the left value offset vector
- Since:
- 1.15.2
-
rightTime
@NotNull public @NotNull org.joml.Vector3f rightTime()Gets the time offset for the outgoing (right) handle. If null, returns a zero vector.- Returns:
- the right time offset vector
- Since:
- 1.15.2
-
rightValue
@NotNull public @NotNull org.joml.Vector3f rightValue()Gets the value offset for the outgoing (right) handle. If null, returns a zero vector.- Returns:
- the right value offset vector
- Since:
- 1.15.2
-
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).
-