| Class TTemporalMatrix2D (unit MatCtrl) |
****** * * Module: MatCtrl * Author: Joe Kessler * IntegrationWare - A New Generation of Extraordinary PC Solutions * www.integrationware.com * * Purpose: * * This module builds upon the functionality of TMatrix2D by encapsulating * qualities such as speed, rotation, and direction. These are changes in * a matrix's values that occur over time. * ******
| Constructors |
| Functions |
procedure Move;
procedure SetDirection(fRadians: Real);
procedure SetSpeed(fSpeed: Real);| Properties |
property fDirection : Real
property fRotation : Real
property fSpeed : Real| Events |
| Variables |
m_fChangeX : Real;
m_fChangeY : Real;
m_fDirection : Real;
m_fRotation : Real;
m_fSpeed : Real;| Constructors |
| Functions |
procedure Move;Method to apply matrix change values.
procedure SetDirection(fRadians: Real);Position change per tick as X & Y deltas. } { Methods for getting/setting property values.
Set the new translation value depending upon whether the change value is nonzero.
procedure SetSpeed(fSpeed: Real);For speed, convert the direction in X & Y deltas only once here.
| Properties |
property fDirection : RealExposed properties.
property fRotation : Real
property fSpeed : Real| Events |
| Variables |
m_fChangeX : Real;Current speed in pixels/tick.
m_fChangeY : Real;
m_fDirection : Real;Transformation increment values.
m_fRotation : Real;Direction in radians.
m_fSpeed : Real;Current rotation in radians.