Creates a new instance of WebaniPolygonAnimation.
The configuration options for the polygon animation.
Whether the animation plays in reverse.
Duration of the animation in milliseconds.
The interpolation function used for the animation.
Getter for the unresolved after state of the object.
Getter for the unresolved before state of the object.
Determines whether the animation is complete based on the current time t.
The time or progress of the animation.
true if the animation is complete, false otherwise.
Calculates and returns the transformed object at the current frame of the animation.
The time or progress of the animation, typically between 0 and 1.
The current state of the animated object.
Interpolates the progress of the animation based on the time t.
The time or progress of the animation, typically between 0 and 1.
A normalized value between 0 and 1 representing the progress of the animation.
Resolves the animation by preparing the polygons and geometry for interpolation.
Resolves the transforms of the before and after objects to ensure they have the same number of extra transforms.
This function ensures that the animation has a consistent structure when resolving the transforms.
Sets the frame of the animation at a given time t.
The time factor for interpolation (between 0 and 1).
A WebaniPolygon instance that represents the interpolated polygon at frame t.
StaticcubicCubic interpolation function.
The start value.
The end value.
The progress of the interpolation.
The interpolated value with cubic easing.
StaticeaseEase-in-out interpolation function.
The start value.
The end value.
The progress of the interpolation.
The interpolated value with ease-in-out easing.
StaticlerpLinear interpolation function.
The start value.
The end value.
The progress of the interpolation.
The interpolated value.
Represents an animated transition between two
WebaniPolygonobjects. It interpolates between polygons, animating their transformation, geometry, and materials.