The easer class DtEaser return values along a bezier curve between input point 1 and point 2.
More...
Public Member Functions |
| | DtEaser (float x1, float y1, float x2, float y2) |
| | CTOR points(x1, y1) and (x2, y2) are the control points to a bezier curve between (0,0), and (1,1)
|
| virtual | ~DtEaser () |
| | DTOR.
|
| float | getEasedValue (float atX) |
| | return the interpolated Y value at the X value.
|
Protected Member Functions |
| float | calcBezier (float aT, float ax1, float ax2) |
| float | getSlope (float at, float a1, float a2) |
| float | getTforX (float x) |
Detailed Description
The easer class DtEaser return values along a bezier curve between input point 1 and point 2.
Constructor & Destructor Documentation
| makVrv::DtEaser::DtEaser |
( |
float |
x1, |
|
|
float |
y1, |
|
|
float |
x2, |
|
|
float |
y2 |
|
) |
| |
CTOR points(x1, y1) and (x2, y2) are the control points to a bezier curve between (0,0), and (1,1)
| virtual makVrv::DtEaser::~DtEaser |
( |
| ) |
|
|
virtual |
Member Function Documentation
| float makVrv::DtEaser::getEasedValue |
( |
float |
atX | ) |
|
return the interpolated Y value at the X value.
Input values are between 0 and 1
| float makVrv::DtEaser::calcBezier |
( |
float |
aT, |
|
|
float |
ax1, |
|
|
float |
ax2 |
|
) |
| |
|
protected |
| float makVrv::DtEaser::getSlope |
( |
float |
at, |
|
|
float |
a1, |
|
|
float |
a2 |
|
) |
| |
|
protected |
| float makVrv::DtEaser::getTforX |
( |
float |
x | ) |
|
|
protected |
Member Data Documentation
| float makVrv::DtEaser::myX1 |
|
protected |
| float makVrv::DtEaser::myY1 |
|
protected |
| float makVrv::DtEaser::myX2 |
|
protected |
| float makVrv::DtEaser::myY2 |
|
protected |
The documentation for this class was generated from the following file:
- /exports/nfedora7-1/nightly/docs/vrforcesDevelopment.vrf4-6-branch/include/vrvUtil/DtEaser.h