Show / Hide Table of Contents

Class Tween

Contains a series of motion tween functions.

Inheritance
object
Tween
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: TheXDS.MCART.Math
Assembly: MCART.dll
Syntax
public static class Tween

Methods

| Edit this page View Source

Bouncy(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 0.0 and 1.0 indicating the position in the timeline.

Returns
Type Description
double

A value corresponding to the applied smoothing.

| Edit this page View Source

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 0.0 and 1.0 indicating the position in the timeline.

int bounces

Number of bounces to calculate.

Returns
Type Description
double

A value corresponding to the applied smoothing.

| Edit this page View Source

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 0.0 and 1.0 indicating the position in the timeline.

int bounces

Number of bounces to calculate.

int damping

Damping to calculate.

Returns
Type Description
double

A value corresponding to the applied smoothing.

| Edit this page View Source

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 0.0 and 1.0 indicating the position in the timeline.

Returns
Type Description
double

A value corresponding to the applied smoothing.

| Edit this page View Source

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 0.0 and 1.0 indicating the position in the timeline.

Returns
Type Description
double

A value corresponding to the applied smoothing.

| Edit this page View Source

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 0.0 and 1.0 indicating the position in the timeline.

Returns
Type Description
double

A value corresponding to the applied smoothing.

| Edit this page View Source

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 0.0 and 1.0 indicating the position in the timeline.

Returns
Type Description
double

A value corresponding to the applied smoothing.

| Edit this page View Source

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 0.0 and 1.0 indicating the position in the timeline.

Returns
Type Description
double

A value corresponding to the applied smoothing.

| Edit this page View Source

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 0.0 and 1.0 indicating the position in the timeline.

int shakes

Number of shakes to perform.

Returns
Type Description
double

A value corresponding to the applied smoothing.

  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX