Package kr.toxicity.model.api.data.raw
Record Class ModelKeyframe
java.lang.Object
java.lang.Record
kr.toxicity.model.api.data.raw.ModelKeyframe
- Record Components:
channel- channeldataPoints- movementbezierLeftTime- bezier left timebezierLeftValue- bezier left valuebezierRightTime- bezier right timebezierRightValue- bezier right valueinterpolation- interpolation typetime- keyframe time
- All Implemented Interfaces:
Comparable<Timed>,Timed
@Internal
public record ModelKeyframe(@NotNull KeyframeChannel channel, @NotNull List<Datapoint> dataPoints, @Nullable Float3 bezierLeftTime, @Nullable Float3 bezierLeftValue, @Nullable Float3 bezierRightTime, @Nullable Float3 bezierRightValue, @Nullable String interpolation, float time)
extends Record
implements Timed
A keyframe of model.
-
Constructor Summary
ConstructorsConstructorDescriptionModelKeyframe(@NotNull KeyframeChannel channel, @NotNull List<Datapoint> dataPoints, @Nullable Float3 bezierLeftTime, @Nullable Float3 bezierLeftValue, @Nullable Float3 bezierRightTime, @Nullable Float3 bezierRightValue, @Nullable String interpolation, float time) Creates an instance of aModelKeyframerecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable Float3Returns the value of thebezierLeftTimerecord component.@Nullable Float3Returns the value of thebezierLeftValuerecord component.@Nullable Float3Returns the value of thebezierRightTimerecord component.@Nullable Float3Returns the value of thebezierRightValuerecord component.@NotNull KeyframeChannelchannel()Returns the value of thechannelrecord component.Returns the value of thedataPointsrecord component.final booleanIndicates whether some other object is "equal to" this one.@NotNull VectorInterpolationfinal inthashCode()Returns a hash code value for this object.@Nullable StringReturns the value of theinterpolationrecord component.floattime()Returns the value of thetimerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModelKeyframe
public ModelKeyframe(@NotNull @NotNull KeyframeChannel channel, @NotNull @NotNull List<Datapoint> dataPoints, @Nullable @Nullable Float3 bezierLeftTime, @Nullable @Nullable Float3 bezierLeftValue, @Nullable @Nullable Float3 bezierRightTime, @Nullable @Nullable Float3 bezierRightValue, @Nullable @Nullable String interpolation, float time) Creates an instance of aModelKeyframerecord class.- Parameters:
channel- the value for thechannelrecord componentdataPoints- the value for thedataPointsrecord componentbezierLeftTime- the value for thebezierLeftTimerecord componentbezierLeftValue- the value for thebezierLeftValuerecord componentbezierRightTime- the value for thebezierRightTimerecord componentbezierRightValue- the value for thebezierRightValuerecord componentinterpolation- the value for theinterpolationrecord componenttime- the value for thetimerecord component
-
-
Method Details
-
findInterpolation
-
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 '=='. -
channel
Returns the value of thechannelrecord component.- Returns:
- the value of the
channelrecord component
-
dataPoints
Returns the value of thedataPointsrecord component.- Returns:
- the value of the
dataPointsrecord component
-
bezierLeftTime
Returns the value of thebezierLeftTimerecord component.- Returns:
- the value of the
bezierLeftTimerecord component
-
bezierLeftValue
Returns the value of thebezierLeftValuerecord component.- Returns:
- the value of the
bezierLeftValuerecord component
-
bezierRightTime
Returns the value of thebezierRightTimerecord component.- Returns:
- the value of the
bezierRightTimerecord component
-
bezierRightValue
Returns the value of thebezierRightValuerecord component.- Returns:
- the value of the
bezierRightValuerecord component
-
interpolation
Returns the value of theinterpolationrecord component.- Returns:
- the value of the
interpolationrecord component
-
time
public float time()Returns the value of thetimerecord component.
-