VectSharp 2.6.1
A light library for C# vector graphics
|
Describes an easing defined by a Cubic Bezier curve. More...
Public Member Functions | |||
SplineEasing (Point controlPoint1, Point controlPoint2) | |||
Creates a new SplineEasing with the specified control points. The start point is always (0, 0) and the end point is always (1, 1). More... | |||
double | Ease (double value) | ||
Applies the easing to the specified transition offset.
| |||
double | Ease (double value) | ||
Applies the easing to the specified transition offset. More... | |||
Properties | |
Point | ControlPoint1 [get] |
The first control point of the curve. More... | |
Point | ControlPoint2 [get] |
The second control point of the curve. More... | |
Describes an easing defined by a Cubic Bezier curve.
Definition at line 1261 of file Animation.cs.
Creates a new SplineEasing with the specified control points. The start point is always (0, 0) and the end point is always (1, 1).
controlPoint1 | The first control point of the curve. Both X and Y must be between 0 and 1, inclusive. |
controlPoint2 | The second control point of the curve. Both X and Y must be between 0 and 1, inclusive. |
ArgumentException | This exception is thrown if any coordinate of the control points is < 0 or > 1. |
Definition at line 1280 of file Animation.cs.
double VectSharp.SplineEasing.Ease | ( | double | value | ) |
Applies the easing to the specified transition offset.
value | The transition offset (ranging from 0 to 1). |
Implements VectSharp.IEasing.
Definition at line 1330 of file Animation.cs.
|
get |
The first control point of the curve.
Definition at line 1266 of file Animation.cs.
|
get |
The second control point of the curve.
Definition at line 1271 of file Animation.cs.