Class TTemporalMatrix2D (unit MatCtrl)

Inherits from

TMatrix2D

****** * * 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;

Method to apply matrix change values.

procedure SetDirection(fRadians: Real);

Position change per tick as X & Y deltas.

procedure SetSpeed(fSpeed: Real);

For speed, convert the direction in X & Y deltas only once here.

Properties

property fDirection : Real

Exposed 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.


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 : Real

Exposed 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.