Methods
(static) cosine($pi) → {TypeHandlerCurve}
- Description:
- Prepares a 'cosine' curve with the given amount of pi rotations.
- Source:
Parameters:
Name | Type | Default | Description |
---|---|---|---|
$pi |
number |
2
|
The number pi rotations. |
Returns:
- Type
- TypeHandlerCurve
(static) double($curve) → {TypeHandlerCurve}
- Description:
- Prepares a doubled curve from the given curve.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
$curve |
TypeHandlerCurve | The curve to use. |
Returns:
- Type
- TypeHandlerCurve
(static) easeIn($power) → {TypeHandlerCurve}
- Description:
- Prepares an 'ease-in' curve with the given power.
- Source:
Parameters:
Name | Type | Default | Description |
---|---|---|---|
$power |
number |
2
|
The factor to use. |
Returns:
- Type
- TypeHandlerCurve
(static) easeOut($power) → {TypeHandlerCurve}
- Description:
- Prepares an 'ease-out' curve with the given power.
- Source:
Parameters:
Name | Type | Default | Description |
---|---|---|---|
$power |
number |
2
|
The power to use. |
Returns:
- Type
- TypeHandlerCurve
(static) half($curve) → {TypeHandlerCurve}
- Description:
- Prepares a halved curve from the given curve.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
$curve |
TypeHandlerCurve | The curve to use. |
Returns:
- Type
- TypeHandlerCurve
(static) invert($curve) → {TypeHandlerCurve}
- Description:
- Prepares a inverted curve from the given curve.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
$curve |
TypeHandlerCurve | The curve to use. |
Returns:
- Type
- TypeHandlerCurve
(static) linear($factor) → {TypeHandlerCurve}
- Description:
- Prepares a 'linear' curve with the given factor.
- Source:
Parameters:
Name | Type | Default | Description |
---|---|---|---|
$factor |
number |
1
|
The factor to use. |
Returns:
- Type
- TypeHandlerCurve
(static) multiply($f, $g) → {TypeHandlerCurve}
- Description:
- Prepares a multiplied curve from the two given curves.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
$f |
TypeHandlerCurve | The first curve to use. |
$g |
TypeHandlerCurve | The second curve to use. |
Returns:
- Type
- TypeHandlerCurve
(static) negate($curve) → {TypeHandlerCurve}
- Description:
- Prepares a negated curve from the given curve.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
$curve |
TypeHandlerCurve | The curve to use. |
Returns:
- Type
- TypeHandlerCurve
(static) reverse($curve) → {TypeHandlerCurve}
- Description:
- Prepares a reversed curve from the given curve.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
$curve |
TypeHandlerCurve | The curve to use. |
Returns:
- Type
- TypeHandlerCurve
(static) sine($pi) → {TypeHandlerCurve}
- Description:
- Prepares a 'sine' curve with the given amount of pi rotations.
- Source:
Parameters:
Name | Type | Default | Description |
---|---|---|---|
$pi |
number |
2
|
The number pi rotations. |
Returns:
- Type
- TypeHandlerCurve
Type Definitions
(protected) TypeHandlerCurve($x) → {number}
- Source:
Parameters:
Name | Type | Description |
---|---|---|
$x |
number | The value to transform (in [0, 1] range). |
Returns:
- Type
- number