Class Tween
Contains a series of motion tween functions.
Inherited Members
Namespace: TheXDS.MCART.Math
Assembly: MCART.dll
Syntax
public static class Tween
Methods
| Edit this page View SourceBouncy(in double)
Performs a bouncy smoothing of a value.
Declaration
public static double Bouncy(in double position)
Parameters
Type | Name | Description |
---|---|---|
double | position | Value between |
Returns
Type | Description |
---|---|
double | A value corresponding to the applied smoothing. |
Bouncy(in double, in int)
Performs a bouncy smoothing of a value.
Declaration
public static double Bouncy(in double position, in int bounces)
Parameters
Type | Name | Description |
---|---|---|
double | position | Value between |
int | bounces | Number of bounces to calculate. |
Returns
Type | Description |
---|---|
double | A value corresponding to the applied smoothing. |
Bouncy(in double, in int, in int)
Performs a bouncy smoothing of a value.
Declaration
public static double Bouncy(in double position, in int bounces, in int damping)
Parameters
Type | Name | Description |
---|---|---|
double | position | Value between |
int | bounces | Number of bounces to calculate. |
int | damping | Damping to calculate. |
Returns
Type | Description |
---|---|
double | A value corresponding to the applied smoothing. |
Cubic(in double)
Performs a cubic smoothing of a value.
Declaration
public static double Cubic(in double position)
Parameters
Type | Name | Description |
---|---|---|
double | position | Value between |
Returns
Type | Description |
---|---|
double | A value corresponding to the applied smoothing. |
Linear(in double)
Performs a linear smoothing of a value.
Declaration
public static double Linear(in double position)
Parameters
Type | Name | Description |
---|---|---|
double | position | Value between |
Returns
Type | Description |
---|---|
double | A value corresponding to the applied smoothing. |
Quadratic(in double)
Performs a quadratic smoothing of a value.
Declaration
public static double Quadratic(in double position)
Parameters
Type | Name | Description |
---|---|---|
double | position | Value between |
Returns
Type | Description |
---|---|
double | A value corresponding to the applied smoothing. |
Quartic(in double)
Performs a quartic smoothing of a value.
Declaration
public static double Quartic(in double position)
Parameters
Type | Name | Description |
---|---|---|
double | position | Value between |
Returns
Type | Description |
---|---|
double | A value corresponding to the applied smoothing. |
Shaky(in double)
Performs a shaky smoothing of a value.
Declaration
public static double Shaky(in double position)
Parameters
Type | Name | Description |
---|---|---|
double | position | Value between |
Returns
Type | Description |
---|---|
double | A value corresponding to the applied smoothing. |
Shaky(in double, in int)
Performs a shaky smoothing of a value.
Declaration
public static double Shaky(in double position, in int shakes)
Parameters
Type | Name | Description |
---|---|---|
double | position | Value between |
int | shakes | Number of shakes to perform. |
Returns
Type | Description |
---|---|
double | A value corresponding to the applied smoothing. |