translate.c 1.18 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
/* This file is part of GEGL
 *
 * GEGL is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * GEGL is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with GEGL; if not, write to the
 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 * Boston, MA 02110-1301, USA.
 *
 * Copyright 2006 Philip Lafleur
 */

21
#ifdef GEGL_CHANT_PROPERTIES
22

23 24
gegl_chant_double (x, -G_MAXDOUBLE, G_MAXDOUBLE, 1., "")
gegl_chant_double (y, -G_MAXDOUBLE, G_MAXDOUBLE, 1., "")
25 26 27

#else

28 29
#define GEGL_CHANT_NAME translate
#define GEGL_CHANT_SELF "translate.c"
30 31 32 33 34
#include "chant.h"

#include <math.h>

static void
35
create_matrix (GeglChantOperation *op,
36 37 38 39 40 41 42
               Matrix3        matrix)
{
  matrix [0][2] = op->x;
  matrix [1][2] = op->y;
}

#endif