AVIR
High-quality pro image resizing library
 All Classes Files Functions Variables Typedefs Macros
Public Member Functions | List of all members
avir::CSineGen Class Reference

#include <avir.h>

Public Member Functions

 CSineGen (const double si, const double ph)
 
double generate ()
 

Detailed Description

Sine signal generator class.

Class implements sine signal generator without biasing, with constructor-based initalization only. This generator uses oscillator instead of "sin" function.

Constructor & Destructor Documentation

avir::CSineGen::CSineGen ( const double  si,
const double  ph 
)

Constructor initializes *this sine signal generator.

Parameters
siSine function increment, in radians.
phStarting phase, in radians. Add 0.5 * AVIR_PI for cosine function.

Member Function Documentation

double avir::CSineGen::generate ( )
Returns
The next value of the sine function, without biasing.