RCKit
Public Member Functions
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.

Examples:

TestSuite.pde.


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]valueThe input value

Reimplemented from Setter.


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