Mixer: Report azimuth and elevation of panner points.

This commit is contained in:
Jonathan Moore Liles 2010-02-12 04:21:34 -06:00
parent 1fa23f1a76
commit 63c4296d7b
1 changed files with 11 additions and 0 deletions

View File

@ -54,6 +54,17 @@ class Panner : public Fl_Widget
*Y = d * sinf( A );
}
float azimuth ( void ) const
{
return a;
}
float elevation ( void ) const
{
return ( 1.0f - d ) * 90.0f;
}
/** set point position in X, Y coordinates (0.0 to 1.0) */
void
angle ( float X1, float Y1 )
{