VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtEaser Class Reference

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)

Protected Attributes

float myX1
float myY1
float myX2
float myY2

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

DTOR.

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:

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)