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
    Modifier and Type
    Field
    Description
    static final VectorPoint
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    VectorPoint(@NotNull FloatFunction<org.joml.Vector3f> _vector, float time, @NotNull VectorInterpolation interpolation)
    Creates an instance of a VectorPoint record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull FloatFunction<org.joml.Vector3f>
    Returns the value of the _vector record component.
    boolean
    Indicates whether some other object is "equal to" this one.
    int
    Returns a hash code value for this object.
    Returns the value of the interpolation record component.
    float
    Returns the value of the time record component.
    @NotNull VectorPoint
    time(float newTime)
     
    final String
    Returns a string representation of this record class.
    @NotNull org.joml.Vector3f
     
    @NotNull org.joml.Vector3f
    vector(float f)
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface kr.toxicity.model.api.animation.Timed

    compareTo
  • Field Details

  • Constructor Details

    • VectorPoint

      public VectorPoint(@NotNull @NotNull FloatFunction<org.joml.Vector3f> _vector, float time, @NotNull @NotNull VectorInterpolation interpolation)
      Creates an instance of a VectorPoint record class.
      Parameters:
      _vector - the value for the _vector record component
      time - the value for the time record component
      interpolation - the value for the interpolation record component
  • Method Details

    • vector

      @NotNull public @NotNull org.joml.Vector3f vector(float f)
    • vector

      @NotNull public @NotNull org.joml.Vector3f vector()
    • time

      @NotNull public @NotNull VectorPoint time(float newTime)
    • equals

      public 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • 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
    • _vector

      @NotNull public @NotNull FloatFunction<org.joml.Vector3f> _vector()
      Returns the value of the _vector record component.
      Returns:
      the value of the _vector record component
    • time

      public float time()
      Returns the value of the time record component.
      Specified by:
      time in interface Timed
      Returns:
      the value of the time record component
    • interpolation

      @NotNull public @NotNull VectorInterpolation interpolation()
      Returns the value of the interpolation record component.
      Returns:
      the value of the interpolation record component