Linear Class Reference

Setter class that implements linear transform of its input value. More...

#include <Linear.h>

Inheritance diagram for Linear:

Inheritance graph
[legend]
Collaboration diagram for Linear:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Linear (float gain, int offset)
virtual void input (int value)


Detailed Description

Setter class that implements linear transform of its input value.

Author:
Mike McCauley (mikem@open.com.au)
Linear implements a y = mx + x linear transform of the input value. The resulting output value is sent to the next Setter (the target) in the chain.

Constructor & Destructor Documentation

Linear::Linear ( float  gain,
int  offset 
)

Constructor. Output will be calculated according to out = (in * gain) + offset

Author:
Mike McCauley (mikem@open.com.au)


Member Function Documentation

void Linear::input ( int  value  )  [virtual]

Input the value to be transformed

Parameters:
[in] value The input value

Reimplemented from Setter.

References Setter::input().


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

Generated on Wed Jul 21 07:33:52 2010 for RCKit by  doxygen 1.5.6