// $Id: xform.c 11289 2010-10-29 20:44:17Z airwin $
//
//      Example linear transformation function for contour plotter.
//

#include "plplotP.h"

extern PLFLT tr[];

void
xform( PLFLT x, PLFLT y, PLFLT * tx, PLFLT * ty )
{
    *tx = tr[0] * x + tr[1] * y + tr[2];
    *ty = tr[3] * x + tr[4] * y + tr[5];
}
