UxrInterpolator Class

Provides functionality to interpolate between values using a wide range of interpolation modes. This class also provides functionality to interpolate between 2 strings using a typewriter effect.

Inheritance Hierarchy

System.Object
  UltimateXR.Animation.Interpolation.UxrInterpolator
Namespace: UltimateXR.Animation.Interpolation
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0

Syntax

C#

public static class UxrInterpolator


The UxrInterpolator type exposes the following members.

Methods

NameDescription
Public methodStatic memberGetInterpolationFactor Gets the T value used for linear interpolations like Vector3.Lerp or Quaternion.Slerp using easing and loop.
Public methodStatic memberInterpolate(Single, Single, Single, UxrEasing) Interpolates between two floating point values using a t between range [0.0, 1.0] and a given easing.
Public methodStatic memberInterpolate(Single, Single, Single, UxrInterpolationSettings) Interpolates between two floating point values.
Public methodStatic memberInterpolate(Quaternion, Quaternion, Single, UxrEasing) Spherically interpolates (SLERP) between two quaternions using a t between range [0.0, 1.0] and a given easing.
Public methodStatic memberInterpolate(Quaternion, Quaternion, Single, UxrInterpolationSettings) Interpolates between two Quaternion values. The interpolation uses SLERP.
Public methodStatic memberInterpolate(Vector3, Vector3, Single, UxrEasing) Interpolates between two points using a t between range [0.0, 1.0] and a given easing.
Public methodStatic memberInterpolate(Vector4, Vector4, Single, UxrInterpolationSettings) Interpolates between two Vector4 values
Public methodStatic memberInterpolate(Single, Single, Single, Single, Single, UxrEasing, UxrLoopMode, Single, Boolean) Interpolates between two floating point values.
Public methodStatic memberInterpolate(Quaternion, Quaternion, Single, Single, Single, UxrEasing, UxrLoopMode, Single, Boolean) Interpolates between two Quaternion values. The interpolation uses SLERP.
Public methodStatic memberInterpolate(Vector4, Vector4, Single, Single, Single, UxrEasing, UxrLoopMode, Single, Boolean) Interpolates between two Vector4 values
Public methodStatic memberCode exampleInterpolateText(Single, Boolean, String, Object[]) Interpolates text using a typewriter effect
Public methodStatic memberInterpolateText(String, String, Single, Boolean) Interpolates text using a typewriter effect.
Public methodStatic memberSmoothDamp Smooths a float value using the previous value, new value and a smooth value between [0.0, 1.0].
Public methodStatic memberSmoothDampPosition Smooths a position value using the last position, new position and a smooth value between [0.0, 1.0].
Public methodStatic memberSmoothDampRotation Smooths a rotation value using the last rotation, new rotation and a smooth value between [0.0, 1.0]. This tries to do something similar to SmoothDamp(Vector3, Vector3, Vector3, Single, Single) but for rotations.

See Also

Reference

UltimateXR.Animation.Interpolation Namespace