'''Wrapper for transform.h

Generated with:
./ctypesgen.py --cpp cc -E -I/usr/local/include  -I/usr/local/include     -DPACKAGE="grasslibs" -DPACKAGE="grasslibs"  -I/wrkdirs/usr/ports/databases/grass/work/grass-6.4.2/dist.i386/include -lgrass_trans.6.4.2 /wrkdirs/usr/ports/databases/grass/work/grass-6.4.2/dist.i386/include/grass/transform.h -o trans.py

Do not modify this file.
'''

__docformat__ =  'restructuredtext'


_libs = {}
_libdirs = []

from ctypes_preamble import *
from ctypes_preamble import _variadic_function
from ctypes_loader import *

add_library_search_dirs([])

# Begin libraries

_libs["grass_trans.6.4.2"] = load_library("grass_trans.6.4.2")

# 1 libraries
# End libraries

# No modules

# /wrkdirs/usr/ports/databases/grass/work/grass-6.4.2/dist.i386/include/grass/transform.h: 11
if hasattr(_libs['grass_trans.6.4.2'], 'inverse'):
    inverse = _libs['grass_trans.6.4.2'].inverse
    inverse.restype = c_int
    inverse.argtypes = [(c_double * 3) * 3]

# /wrkdirs/usr/ports/databases/grass/work/grass-6.4.2/dist.i386/include/grass/transform.h: 12
if hasattr(_libs['grass_trans.6.4.2'], 'isnull'):
    isnull = _libs['grass_trans.6.4.2'].isnull
    isnull.restype = c_int
    isnull.argtypes = [(c_double * 3) * 3]

# /wrkdirs/usr/ports/databases/grass/work/grass-6.4.2/dist.i386/include/grass/transform.h: 15
if hasattr(_libs['grass_trans.6.4.2'], 'm_mult'):
    m_mult = _libs['grass_trans.6.4.2'].m_mult
    m_mult.restype = c_int
    m_mult.argtypes = [(c_double * 3) * 3, POINTER(c_double), POINTER(c_double)]

# /wrkdirs/usr/ports/databases/grass/work/grass-6.4.2/dist.i386/include/grass/transform.h: 18
if hasattr(_libs['grass_trans.6.4.2'], 'compute_transformation_coef'):
    compute_transformation_coef = _libs['grass_trans.6.4.2'].compute_transformation_coef
    compute_transformation_coef.restype = c_int
    compute_transformation_coef.argtypes = [POINTER(c_double), POINTER(c_double), POINTER(c_double), POINTER(c_double), POINTER(c_int), c_int]

# /wrkdirs/usr/ports/databases/grass/work/grass-6.4.2/dist.i386/include/grass/transform.h: 20
if hasattr(_libs['grass_trans.6.4.2'], 'transform_a_into_b'):
    transform_a_into_b = _libs['grass_trans.6.4.2'].transform_a_into_b
    transform_a_into_b.restype = c_int
    transform_a_into_b.argtypes = [c_double, c_double, POINTER(c_double), POINTER(c_double)]

# /wrkdirs/usr/ports/databases/grass/work/grass-6.4.2/dist.i386/include/grass/transform.h: 21
if hasattr(_libs['grass_trans.6.4.2'], 'transform_b_into_a'):
    transform_b_into_a = _libs['grass_trans.6.4.2'].transform_b_into_a
    transform_b_into_a.restype = c_int
    transform_b_into_a.argtypes = [c_double, c_double, POINTER(c_double), POINTER(c_double)]

# /wrkdirs/usr/ports/databases/grass/work/grass-6.4.2/dist.i386/include/grass/transform.h: 22
if hasattr(_libs['grass_trans.6.4.2'], 'residuals_a_predicts_b'):
    residuals_a_predicts_b = _libs['grass_trans.6.4.2'].residuals_a_predicts_b
    residuals_a_predicts_b.restype = c_int
    residuals_a_predicts_b.argtypes = [POINTER(c_double), POINTER(c_double), POINTER(c_double), POINTER(c_double), POINTER(c_int), c_int, POINTER(c_double), POINTER(c_double)]

# /wrkdirs/usr/ports/databases/grass/work/grass-6.4.2/dist.i386/include/grass/transform.h: 24
if hasattr(_libs['grass_trans.6.4.2'], 'residuals_b_predicts_a'):
    residuals_b_predicts_a = _libs['grass_trans.6.4.2'].residuals_b_predicts_a
    residuals_b_predicts_a.restype = c_int
    residuals_b_predicts_a.argtypes = [POINTER(c_double), POINTER(c_double), POINTER(c_double), POINTER(c_double), POINTER(c_int), c_int, POINTER(c_double), POINTER(c_double)]

# /wrkdirs/usr/ports/databases/grass/work/grass-6.4.2/dist.i386/include/grass/transform.h: 8
try:
    DIM_matrix = 3
except:
    pass

# No inserted files

