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) handle
leftValue - the value offset for the incoming (left) handle
rightTime - the time offset for the outgoing (right) handle
rightValue - 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

    Constructors
    Constructor
    Description
    BezierConfig(@Nullable org.joml.Vector3f leftTime, @Nullable org.joml.Vector3f leftValue, @Nullable org.joml.Vector3f rightTime, @Nullable org.joml.Vector3f rightValue)
    Creates an instance of a BezierConfig record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    @NotNull org.joml.Vector3f
    Gets the time offset for the incoming (left) handle.
    @NotNull org.joml.Vector3f
    Gets the value offset for the incoming (left) handle.
    @NotNull org.joml.Vector3f
    Gets the time offset for the outgoing (right) handle.
    @NotNull org.joml.Vector3f
    Gets the value offset for the outgoing (right) handle.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a BezierConfig record class.
      Parameters:
      leftTime - the value for the leftTime record component
      leftValue - the value for the leftValue record component
      rightTime - the value for the rightTime record component
      rightValue - the value for the rightValue record 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

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.