VectSharp 2.5.0
A light library for C# vector graphics
Loading...
Searching...
No Matches
VectSharp.SplineEasing Class Reference

Describes an easing defined by a Cubic Bezier curve. More...

Inheritance diagram for VectSharp.SplineEasing:

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.
Parameters
valueThe transition offset (ranging from 0 to 1).
Returns
The eased transition offset value.
More...
 
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...
 

Detailed Description

Describes an easing defined by a Cubic Bezier curve.

Definition at line 1233 of file Animation.cs.

Constructor & Destructor Documentation

◆ SplineEasing()

VectSharp.SplineEasing.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).

Parameters
controlPoint1The first control point of the curve. Both X and Y must be between 0 and 1, inclusive.
controlPoint2The second control point of the curve. Both X and Y must be between 0 and 1, inclusive.
Exceptions
ArgumentExceptionThis exception is thrown if any coordinate of the control points is < 0 or > 1.

Definition at line 1252 of file Animation.cs.

Member Function Documentation

◆ Ease()

double VectSharp.SplineEasing.Ease ( double  value)

Applies the easing to the specified transition offset.

Parameters
valueThe transition offset (ranging from 0 to 1).
Returns
The eased transition offset value.

Implements VectSharp.IEasing.

Definition at line 1301 of file Animation.cs.

Property Documentation

◆ ControlPoint1

Point VectSharp.SplineEasing.ControlPoint1
get

The first control point of the curve.

Definition at line 1238 of file Animation.cs.

◆ ControlPoint2

Point VectSharp.SplineEasing.ControlPoint2
get

The second control point of the curve.

Definition at line 1243 of file Animation.cs.


The documentation for this class was generated from the following file: