/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 4.0.1
 *
 * This file is not intended to be easily readable and contains a number of
 * coding conventions designed to improve portability and efficiency. Do not make
 * changes to this file unless you know what you are doing--modify the SWIG
 * interface file instead.
 * ----------------------------------------------------------------------------- */


#ifndef SWIGLUA
#define SWIGLUA
#endif

#define SWIG_LUA_TARGET SWIG_LUA_FLAVOR_LUA
#define SWIG_LUA_MODULE_GLOBAL


#ifdef __cplusplus
/* SwigValueWrapper is described in swig.swg */
template<typename T> class SwigValueWrapper {
  struct SwigMovePointer {
    T *ptr;
    SwigMovePointer(T *p) : ptr(p) { }
    ~SwigMovePointer() { delete ptr; }
    SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
  } pointer;
  SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
  SwigValueWrapper(const SwigValueWrapper<T>& rhs);
public:
  SwigValueWrapper() : pointer(0) { }
  SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; }
  operator T&() const { return *pointer.ptr; }
  T *operator&() { return pointer.ptr; }
};

template <typename T> T SwigValueInit() {
  return T();
}
#endif

/* -----------------------------------------------------------------------------
 *  This section contains generic SWIG labels for method/variable
 *  declarations/attributes, and other compiler dependent labels.
 * ----------------------------------------------------------------------------- */

/* template workaround for compilers that cannot correctly implement the C++ standard */
#ifndef SWIGTEMPLATEDISAMBIGUATOR
# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
#  define SWIGTEMPLATEDISAMBIGUATOR template
# elif defined(__HP_aCC)
/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
#  define SWIGTEMPLATEDISAMBIGUATOR template
# else
#  define SWIGTEMPLATEDISAMBIGUATOR
# endif
#endif

/* inline attribute */
#ifndef SWIGINLINE
# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
#   define SWIGINLINE inline
# else
#   define SWIGINLINE
# endif
#endif

/* attribute recognised by some compilers to avoid 'unused' warnings */
#ifndef SWIGUNUSED
# if defined(__GNUC__)
#   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
#     define SWIGUNUSED __attribute__ ((__unused__))
#   else
#     define SWIGUNUSED
#   endif
# elif defined(__ICC)
#   define SWIGUNUSED __attribute__ ((__unused__))
# else
#   define SWIGUNUSED
# endif
#endif

#ifndef SWIG_MSC_UNSUPPRESS_4505
# if defined(_MSC_VER)
#   pragma warning(disable : 4505) /* unreferenced local function has been removed */
# endif
#endif

#ifndef SWIGUNUSEDPARM
# ifdef __cplusplus
#   define SWIGUNUSEDPARM(p)
# else
#   define SWIGUNUSEDPARM(p) p SWIGUNUSED
# endif
#endif

/* internal SWIG method */
#ifndef SWIGINTERN
# define SWIGINTERN static SWIGUNUSED
#endif

/* internal inline SWIG method */
#ifndef SWIGINTERNINLINE
# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
#endif

/* exporting methods */
#if defined(__GNUC__)
#  if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
#    ifndef GCC_HASCLASSVISIBILITY
#      define GCC_HASCLASSVISIBILITY
#    endif
#  endif
#endif

#ifndef SWIGEXPORT
# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
#   if defined(STATIC_LINKED)
#     define SWIGEXPORT
#   else
#     define SWIGEXPORT __declspec(dllexport)
#   endif
# else
#   if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
#     define SWIGEXPORT __attribute__ ((visibility("default")))
#   else
#     define SWIGEXPORT
#   endif
# endif
#endif

/* calling conventions for Windows */
#ifndef SWIGSTDCALL
# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
#   define SWIGSTDCALL __stdcall
# else
#   define SWIGSTDCALL
# endif
#endif

/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
# define _CRT_SECURE_NO_DEPRECATE
#endif

/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
# define _SCL_SECURE_NO_DEPRECATE
#endif

/* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
#endif

/* Intel's compiler complains if a variable which was never initialised is
 * cast to void, which is a common idiom which we use to indicate that we
 * are aware a variable isn't used.  So we just silence that warning.
 * See: https://github.com/swig/swig/issues/192 for more discussion.
 */
#ifdef __INTEL_COMPILER
# pragma warning disable 592
#endif

/* -----------------------------------------------------------------------------
 * swigrun.swg
 *
 * This file contains generic C API SWIG runtime support for pointer
 * type checking.
 * ----------------------------------------------------------------------------- */

/* This should only be incremented when either the layout of swig_type_info changes,
   or for whatever reason, the runtime changes incompatibly */
#define SWIG_RUNTIME_VERSION "4"

/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
#ifdef SWIG_TYPE_TABLE
# define SWIG_QUOTE_STRING(x) #x
# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
#else
# define SWIG_TYPE_TABLE_NAME
#endif

/*
  You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
  creating a static or dynamic library from the SWIG runtime code.
  In 99.9% of the cases, SWIG just needs to declare them as 'static'.

  But only do this if strictly necessary, ie, if you have problems
  with your compiler or suchlike.
*/

#ifndef SWIGRUNTIME
# define SWIGRUNTIME SWIGINTERN
#endif

#ifndef SWIGRUNTIMEINLINE
# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
#endif

/*  Generic buffer size */
#ifndef SWIG_BUFFER_SIZE
# define SWIG_BUFFER_SIZE 1024
#endif

/* Flags for pointer conversions */
#define SWIG_POINTER_DISOWN        0x1
#define SWIG_CAST_NEW_MEMORY       0x2
#define SWIG_POINTER_NO_NULL       0x4

/* Flags for new pointer objects */
#define SWIG_POINTER_OWN           0x1


/*
   Flags/methods for returning states.

   The SWIG conversion methods, as ConvertPtr, return an integer
   that tells if the conversion was successful or not. And if not,
   an error code can be returned (see swigerrors.swg for the codes).

   Use the following macros/flags to set or process the returning
   states.

   In old versions of SWIG, code such as the following was usually written:

     if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
       // success code
     } else {
       //fail code
     }

   Now you can be more explicit:

    int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
    if (SWIG_IsOK(res)) {
      // success code
    } else {
      // fail code
    }

   which is the same really, but now you can also do

    Type *ptr;
    int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
    if (SWIG_IsOK(res)) {
      // success code
      if (SWIG_IsNewObj(res) {
        ...
	delete *ptr;
      } else {
        ...
      }
    } else {
      // fail code
    }

   I.e., now SWIG_ConvertPtr can return new objects and you can
   identify the case and take care of the deallocation. Of course that
   also requires SWIG_ConvertPtr to return new result values, such as

      int SWIG_ConvertPtr(obj, ptr,...) {
        if (<obj is ok>) {
          if (<need new object>) {
            *ptr = <ptr to new allocated object>;
            return SWIG_NEWOBJ;
          } else {
            *ptr = <ptr to old object>;
            return SWIG_OLDOBJ;
          }
        } else {
          return SWIG_BADOBJ;
        }
      }

   Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
   more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
   SWIG errors code.

   Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
   allows to return the 'cast rank', for example, if you have this

       int food(double)
       int fooi(int);

   and you call

      food(1)   // cast rank '1'  (1 -> 1.0)
      fooi(1)   // cast rank '0'

   just use the SWIG_AddCast()/SWIG_CheckState()
*/

#define SWIG_OK                    (0)
#define SWIG_ERROR                 (-1)
#define SWIG_IsOK(r)               (r >= 0)
#define SWIG_ArgError(r)           ((r != SWIG_ERROR) ? r : SWIG_TypeError)

/* The CastRankLimit says how many bits are used for the cast rank */
#define SWIG_CASTRANKLIMIT         (1 << 8)
/* The NewMask denotes the object was created (using new/malloc) */
#define SWIG_NEWOBJMASK            (SWIG_CASTRANKLIMIT  << 1)
/* The TmpMask is for in/out typemaps that use temporal objects */
#define SWIG_TMPOBJMASK            (SWIG_NEWOBJMASK << 1)
/* Simple returning values */
#define SWIG_BADOBJ                (SWIG_ERROR)
#define SWIG_OLDOBJ                (SWIG_OK)
#define SWIG_NEWOBJ                (SWIG_OK | SWIG_NEWOBJMASK)
#define SWIG_TMPOBJ                (SWIG_OK | SWIG_TMPOBJMASK)
/* Check, add and del mask methods */
#define SWIG_AddNewMask(r)         (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
#define SWIG_DelNewMask(r)         (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
#define SWIG_IsNewObj(r)           (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
#define SWIG_AddTmpMask(r)         (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
#define SWIG_DelTmpMask(r)         (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
#define SWIG_IsTmpObj(r)           (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))

/* Cast-Rank Mode */
#if defined(SWIG_CASTRANK_MODE)
#  ifndef SWIG_TypeRank
#    define SWIG_TypeRank             unsigned long
#  endif
#  ifndef SWIG_MAXCASTRANK            /* Default cast allowed */
#    define SWIG_MAXCASTRANK          (2)
#  endif
#  define SWIG_CASTRANKMASK          ((SWIG_CASTRANKLIMIT) -1)
#  define SWIG_CastRank(r)           (r & SWIG_CASTRANKMASK)
SWIGINTERNINLINE int SWIG_AddCast(int r) {
  return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
}
SWIGINTERNINLINE int SWIG_CheckState(int r) {
  return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
}
#else /* no cast-rank mode */
#  define SWIG_AddCast(r) (r)
#  define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
#endif


#include <string.h>

#ifdef __cplusplus
extern "C" {
#endif

typedef void *(*swig_converter_func)(void *, int *);
typedef struct swig_type_info *(*swig_dycast_func)(void **);

/* Structure to store information on one type */
typedef struct swig_type_info {
  const char             *name;			/* mangled name of this type */
  const char             *str;			/* human readable name of this type */
  swig_dycast_func        dcast;		/* dynamic cast function down a hierarchy */
  struct swig_cast_info  *cast;			/* linked list of types that can cast into this type */
  void                   *clientdata;		/* language specific type data */
  int                    owndata;		/* flag if the structure owns the clientdata */
} swig_type_info;

/* Structure to store a type and conversion function used for casting */
typedef struct swig_cast_info {
  swig_type_info         *type;			/* pointer to type that is equivalent to this type */
  swig_converter_func     converter;		/* function to cast the void pointers */
  struct swig_cast_info  *next;			/* pointer to next cast in linked list */
  struct swig_cast_info  *prev;			/* pointer to the previous cast */
} swig_cast_info;

/* Structure used to store module information
 * Each module generates one structure like this, and the runtime collects
 * all of these structures and stores them in a circularly linked list.*/
typedef struct swig_module_info {
  swig_type_info         **types;		/* Array of pointers to swig_type_info structures that are in this module */
  size_t                 size;		        /* Number of types in this module */
  struct swig_module_info *next;		/* Pointer to next element in circularly linked list */
  swig_type_info         **type_initial;	/* Array of initially generated type structures */
  swig_cast_info         **cast_initial;	/* Array of initially generated casting structures */
  void                    *clientdata;		/* Language specific module data */
} swig_module_info;

/*
  Compare two type names skipping the space characters, therefore
  "char*" == "char *" and "Class<int>" == "Class<int >", etc.

  Return 0 when the two name types are equivalent, as in
  strncmp, but skipping ' '.
*/
SWIGRUNTIME int
SWIG_TypeNameComp(const char *f1, const char *l1,
		  const char *f2, const char *l2) {
  for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
    while ((*f1 == ' ') && (f1 != l1)) ++f1;
    while ((*f2 == ' ') && (f2 != l2)) ++f2;
    if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
  }
  return (int)((l1 - f1) - (l2 - f2));
}

/*
  Check type equivalence in a name list like <name1>|<name2>|...
  Return 0 if equal, -1 if nb < tb, 1 if nb > tb
*/
SWIGRUNTIME int
SWIG_TypeCmp(const char *nb, const char *tb) {
  int equiv = 1;
  const char* te = tb + strlen(tb);
  const char* ne = nb;
  while (equiv != 0 && *ne) {
    for (nb = ne; *ne; ++ne) {
      if (*ne == '|') break;
    }
    equiv = SWIG_TypeNameComp(nb, ne, tb, te);
    if (*ne) ++ne;
  }
  return equiv;
}

/*
  Check type equivalence in a name list like <name1>|<name2>|...
  Return 0 if not equal, 1 if equal
*/
SWIGRUNTIME int
SWIG_TypeEquiv(const char *nb, const char *tb) {
  return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0;
}

/*
  Check the typename
*/
SWIGRUNTIME swig_cast_info *
SWIG_TypeCheck(const char *c, swig_type_info *ty) {
  if (ty) {
    swig_cast_info *iter = ty->cast;
    while (iter) {
      if (strcmp(iter->type->name, c) == 0) {
        if (iter == ty->cast)
          return iter;
        /* Move iter to the top of the linked list */
        iter->prev->next = iter->next;
        if (iter->next)
          iter->next->prev = iter->prev;
        iter->next = ty->cast;
        iter->prev = 0;
        if (ty->cast) ty->cast->prev = iter;
        ty->cast = iter;
        return iter;
      }
      iter = iter->next;
    }
  }
  return 0;
}

/*
  Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
*/
SWIGRUNTIME swig_cast_info *
SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
  if (ty) {
    swig_cast_info *iter = ty->cast;
    while (iter) {
      if (iter->type == from) {
        if (iter == ty->cast)
          return iter;
        /* Move iter to the top of the linked list */
        iter->prev->next = iter->next;
        if (iter->next)
          iter->next->prev = iter->prev;
        iter->next = ty->cast;
        iter->prev = 0;
        if (ty->cast) ty->cast->prev = iter;
        ty->cast = iter;
        return iter;
      }
      iter = iter->next;
    }
  }
  return 0;
}

/*
  Cast a pointer up an inheritance hierarchy
*/
SWIGRUNTIMEINLINE void *
SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
  return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
}

/*
   Dynamic pointer casting. Down an inheritance hierarchy
*/
SWIGRUNTIME swig_type_info *
SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
  swig_type_info *lastty = ty;
  if (!ty || !ty->dcast) return ty;
  while (ty && (ty->dcast)) {
    ty = (*ty->dcast)(ptr);
    if (ty) lastty = ty;
  }
  return lastty;
}

/*
  Return the name associated with this type
*/
SWIGRUNTIMEINLINE const char *
SWIG_TypeName(const swig_type_info *ty) {
  return ty->name;
}

/*
  Return the pretty name associated with this type,
  that is an unmangled type name in a form presentable to the user.
*/
SWIGRUNTIME const char *
SWIG_TypePrettyName(const swig_type_info *type) {
  /* The "str" field contains the equivalent pretty names of the
     type, separated by vertical-bar characters.  We choose
     to print the last name, as it is often (?) the most
     specific. */
  if (!type) return NULL;
  if (type->str != NULL) {
    const char *last_name = type->str;
    const char *s;
    for (s = type->str; *s; s++)
      if (*s == '|') last_name = s+1;
    return last_name;
  }
  else
    return type->name;
}

/*
   Set the clientdata field for a type
*/
SWIGRUNTIME void
SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
  swig_cast_info *cast = ti->cast;
  /* if (ti->clientdata == clientdata) return; */
  ti->clientdata = clientdata;

  while (cast) {
    if (!cast->converter) {
      swig_type_info *tc = cast->type;
      if (!tc->clientdata) {
	SWIG_TypeClientData(tc, clientdata);
      }
    }
    cast = cast->next;
  }
}
SWIGRUNTIME void
SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
  SWIG_TypeClientData(ti, clientdata);
  ti->owndata = 1;
}

/*
  Search for a swig_type_info structure only by mangled name
  Search is a O(log #types)

  We start searching at module start, and finish searching when start == end.
  Note: if start == end at the beginning of the function, we go all the way around
  the circular list.
*/
SWIGRUNTIME swig_type_info *
SWIG_MangledTypeQueryModule(swig_module_info *start,
                            swig_module_info *end,
		            const char *name) {
  swig_module_info *iter = start;
  do {
    if (iter->size) {
      size_t l = 0;
      size_t r = iter->size - 1;
      do {
	/* since l+r >= 0, we can (>> 1) instead (/ 2) */
	size_t i = (l + r) >> 1;
	const char *iname = iter->types[i]->name;
	if (iname) {
	  int compare = strcmp(name, iname);
	  if (compare == 0) {
	    return iter->types[i];
	  } else if (compare < 0) {
	    if (i) {
	      r = i - 1;
	    } else {
	      break;
	    }
	  } else if (compare > 0) {
	    l = i + 1;
	  }
	} else {
	  break; /* should never happen */
	}
      } while (l <= r);
    }
    iter = iter->next;
  } while (iter != end);
  return 0;
}

/*
  Search for a swig_type_info structure for either a mangled name or a human readable name.
  It first searches the mangled names of the types, which is a O(log #types)
  If a type is not found it then searches the human readable names, which is O(#types).

  We start searching at module start, and finish searching when start == end.
  Note: if start == end at the beginning of the function, we go all the way around
  the circular list.
*/
SWIGRUNTIME swig_type_info *
SWIG_TypeQueryModule(swig_module_info *start,
                     swig_module_info *end,
		     const char *name) {
  /* STEP 1: Search the name field using binary search */
  swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
  if (ret) {
    return ret;
  } else {
    /* STEP 2: If the type hasn't been found, do a complete search
       of the str field (the human readable name) */
    swig_module_info *iter = start;
    do {
      size_t i = 0;
      for (; i < iter->size; ++i) {
	if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
	  return iter->types[i];
      }
      iter = iter->next;
    } while (iter != end);
  }

  /* neither found a match */
  return 0;
}

/*
   Pack binary data into a string
*/
SWIGRUNTIME char *
SWIG_PackData(char *c, void *ptr, size_t sz) {
  static const char hex[17] = "0123456789abcdef";
  const unsigned char *u = (unsigned char *) ptr;
  const unsigned char *eu =  u + sz;
  for (; u != eu; ++u) {
    unsigned char uu = *u;
    *(c++) = hex[(uu & 0xf0) >> 4];
    *(c++) = hex[uu & 0xf];
  }
  return c;
}

/*
   Unpack binary data from a string
*/
SWIGRUNTIME const char *
SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
  unsigned char *u = (unsigned char *) ptr;
  const unsigned char *eu = u + sz;
  for (; u != eu; ++u) {
    char d = *(c++);
    unsigned char uu;
    if ((d >= '0') && (d <= '9'))
      uu = (unsigned char)((d - '0') << 4);
    else if ((d >= 'a') && (d <= 'f'))
      uu = (unsigned char)((d - ('a'-10)) << 4);
    else
      return (char *) 0;
    d = *(c++);
    if ((d >= '0') && (d <= '9'))
      uu |= (unsigned char)(d - '0');
    else if ((d >= 'a') && (d <= 'f'))
      uu |= (unsigned char)(d - ('a'-10));
    else
      return (char *) 0;
    *u = uu;
  }
  return c;
}

/*
   Pack 'void *' into a string buffer.
*/
SWIGRUNTIME char *
SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
  char *r = buff;
  if ((2*sizeof(void *) + 2) > bsz) return 0;
  *(r++) = '_';
  r = SWIG_PackData(r,&ptr,sizeof(void *));
  if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
  strcpy(r,name);
  return buff;
}

SWIGRUNTIME const char *
SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
  if (*c != '_') {
    if (strcmp(c,"NULL") == 0) {
      *ptr = (void *) 0;
      return name;
    } else {
      return 0;
    }
  }
  return SWIG_UnpackData(++c,ptr,sizeof(void *));
}

SWIGRUNTIME char *
SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
  char *r = buff;
  size_t lname = (name ? strlen(name) : 0);
  if ((2*sz + 2 + lname) > bsz) return 0;
  *(r++) = '_';
  r = SWIG_PackData(r,ptr,sz);
  if (lname) {
    strncpy(r,name,lname+1);
  } else {
    *r = 0;
  }
  return buff;
}

SWIGRUNTIME const char *
SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
  if (*c != '_') {
    if (strcmp(c,"NULL") == 0) {
      memset(ptr,0,sz);
      return name;
    } else {
      return 0;
    }
  }
  return SWIG_UnpackData(++c,ptr,sz);
}

#ifdef __cplusplus
}
#endif

/*  Errors in SWIG */
#define  SWIG_UnknownError    	   -1
#define  SWIG_IOError        	   -2
#define  SWIG_RuntimeError   	   -3
#define  SWIG_IndexError     	   -4
#define  SWIG_TypeError      	   -5
#define  SWIG_DivisionByZero 	   -6
#define  SWIG_OverflowError  	   -7
#define  SWIG_SyntaxError    	   -8
#define  SWIG_ValueError     	   -9
#define  SWIG_SystemError    	   -10
#define  SWIG_AttributeError 	   -11
#define  SWIG_MemoryError    	   -12
#define  SWIG_NullReferenceError   -13



/* -----------------------------------------------------------------------------
 * luarun.swg
 *
 * This file contains the runtime support for Lua modules
 * and includes code for managing global variables and pointer
 * type checking.
 * ----------------------------------------------------------------------------- */

#ifdef __cplusplus
extern "C" {
#endif

#include "lua.h"
#include "lauxlib.h"
#include <stdlib.h>  /* for malloc */
#include <assert.h>  /* for a few sanity tests */

/* -----------------------------------------------------------------------------
 * Lua flavors
 * ----------------------------------------------------------------------------- */

#define SWIG_LUA_FLAVOR_LUA 1
#define SWIG_LUA_FLAVOR_ELUA 2
#define SWIG_LUA_FLAVOR_ELUAC 3

#if !defined(SWIG_LUA_TARGET)
# error SWIG_LUA_TARGET not defined
#endif

#if defined(SWIG_LUA_ELUA_EMULATE)

struct swig_elua_entry;

typedef struct swig_elua_key {
  int type;
  union {
    const char* strkey;
    lua_Number numkey;
  } key;
} swig_elua_key;

typedef struct swig_elua_val {
  int type;
  union {
    lua_Number number;
    const struct swig_elua_entry *table;
    const char *string;
    lua_CFunction function;
    struct {
      char member;
      long lvalue;
      void *pvalue;
      swig_type_info **ptype;
    } userdata;
  } value;
} swig_elua_val;

typedef struct swig_elua_entry {
  swig_elua_key key;
  swig_elua_val value;
} swig_elua_entry;

#define LSTRKEY(x) {LUA_TSTRING, {.strkey = x} }
#define LNUMKEY(x) {LUA_TNUMBER, {.numkey = x} }
#define LNILKEY {LUA_TNIL, {.strkey = 0} }

#define LNUMVAL(x) {LUA_TNUMBER, {.number = x} }
#define LFUNCVAL(x) {LUA_TFUNCTION, {.function = x} }
#define LROVAL(x) {LUA_TTABLE, {.table = x} }
#define LNILVAL {LUA_TNIL, {.string = 0} }
#define LSTRVAL(x) {LUA_TSTRING, {.string = x} }

#define LUA_REG_TYPE swig_elua_entry

#define SWIG_LUA_ELUA_EMUL_METATABLE_KEY "__metatable"

#define lua_pushrotable(L,p)\
  lua_newtable(L);\
  assert(p);\
  SWIG_Lua_elua_emulate_register(L,(swig_elua_entry*)(p));

#define SWIG_LUA_CONSTTAB_POINTER(B,C,D)\
  LSTRKEY(B), {LUA_TUSERDATA, { .userdata={0,0,(void*)(C),&D} } }

#define SWIG_LUA_CONSTTAB_BINARY(B,S,C,D)\
  LSTRKEY(B), {LUA_TUSERDATA, { .userdata={1,S,(void*)(C),&D} } }
#endif

#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)
#  define SWIG_LUA_CONSTTAB_INT(B, C) LSTRKEY(B), LNUMVAL(C)
#  define SWIG_LUA_CONSTTAB_FLOAT(B, C) LSTRKEY(B), LNUMVAL(C)
#  define SWIG_LUA_CONSTTAB_STRING(B, C) LSTRKEY(B), LSTRVAL(C)
#  define SWIG_LUA_CONSTTAB_CHAR(B, C) LSTRKEY(B), LNUMVAL(C)
    /* Those two types of constants are not supported in elua */

#ifndef SWIG_LUA_CONSTTAB_POINTER
#warning eLua does not support pointers as constants. By default, nil will be used as value
#define SWIG_LUA_CONSTTAB_POINTER(B,C,D) LSTRKEY(B), LNILVAL
#endif

#ifndef SWIG_LUA_CONSTTAB_BINARY
#warning eLua does not support pointers to member as constants. By default, nil will be used as value
#define SWIG_LUA_CONSTTAB_BINARY(B, S, C, D) LSTRKEY(B), LNILVAL
#endif
#else /* SWIG_LUA_FLAVOR_LUA */
#  define SWIG_LUA_CONSTTAB_INT(B, C) SWIG_LUA_INT, (char *)B, (long)C, 0, 0, 0
#  define SWIG_LUA_CONSTTAB_FLOAT(B, C) SWIG_LUA_FLOAT, (char *)B, 0, (double)C, 0, 0
#  define SWIG_LUA_CONSTTAB_STRING(B, C) SWIG_LUA_STRING, (char *)B, 0, 0, (void *)C, 0
#  define SWIG_LUA_CONSTTAB_CHAR(B, C) SWIG_LUA_CHAR, (char *)B, (long)C, 0, 0, 0
#  define SWIG_LUA_CONSTTAB_POINTER(B,C,D)\
       SWIG_LUA_POINTER, (char *)B, 0, 0, (void *)C, &D
#  define SWIG_LUA_CONSTTAB_BINARY(B, S, C, D)\
       SWIG_LUA_BINARY,  (char *)B, S, 0, (void *)C, &D
#endif

#ifndef SWIG_LUA_ELUA_EMULATE
#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)
#  define LRO_STRVAL(v) {{.p = (char *) v}, LUA_TSTRING}
#  define LSTRVAL LRO_STRVAL
#endif
#endif /* SWIG_LUA_ELUA_EMULATE*/

#ifndef SWIG_LUA_ELUA_EMULATE
#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)

#ifndef MIN_OPT_LEVEL
#define MIN_OPT_LEVEL 2
#endif

#include "lrodefs.h"
#include "lrotable.h"
#endif
#endif /* SWIG_LUA_ELUA_EMULATE*/
/* -----------------------------------------------------------------------------
 * compatibility defines
 * ----------------------------------------------------------------------------- */

/* History of Lua C API length functions:  In Lua 5.0 (and before?)
   there was "lua_strlen".  In Lua 5.1, this was renamed "lua_objlen",
   but a compatibility define of "lua_strlen" was added.  In Lua 5.2,
   this function was again renamed, to "lua_rawlen" (to emphasize that
   it doesn't call the "__len" metamethod), and the compatibility
   define of lua_strlen was removed.  All SWIG uses have been updated
   to "lua_rawlen", and we add our own defines of that here for older
   versions of Lua.  */
#if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 501
# define lua_rawlen lua_strlen
#elif LUA_VERSION_NUM == 501
# define lua_rawlen lua_objlen
#endif


/* lua_pushglobaltable is the recommended "future-proof" way to get
   the global table for Lua 5.2 and later.  Here we define
   lua_pushglobaltable ourselves for Lua versions before 5.2.  */
#if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 502
# define lua_pushglobaltable(L) lua_pushvalue(L, LUA_GLOBALSINDEX)
#endif

/* lua_absindex was introduced in Lua 5.2 */
#if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 502
# define lua_absindex(L,i) ((i)>0 || (i) <= LUA_REGISTRYINDEX ? (i) : lua_gettop(L) + (i) + 1)
#endif

/* lua_rawsetp was introduced in Lua 5.2 */
#if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 502
#define lua_rawsetp(L,index,ptr)\
  lua_pushlightuserdata(L,(void*)(ptr));\
  lua_insert(L,-2);\
  lua_rawset(L,index);

#define lua_rawgetp(L,index,ptr)\
  lua_pushlightuserdata(L,(void*)(ptr));\
  lua_rawget(L,index);

#endif

/* --------------------------------------------------------------------------
 * Helper functions for error handling
 * -------------------------------------------------------------------------- */

/* Push the string STR on the Lua stack, like lua_pushstring, but
   prefixed with the location of the innermost Lua call-point
   (as formatted by luaL_where).  */
SWIGRUNTIME void
SWIG_Lua_pusherrstring (lua_State *L, const char *str)
{
  luaL_where (L, 1);
  lua_pushstring (L, str);
  lua_concat (L, 2);
}

/* Push a formatted string generated from FMT and following args on
   the Lua stack, like lua_pushfstring, but prefixed with the
   location of the innermost Lua call-point (as formatted by luaL_where).  */
SWIGRUNTIME void
SWIG_Lua_pushferrstring (lua_State *L, const char *fmt, ...)
{
  va_list argp;
  va_start(argp, fmt);
  luaL_where(L, 1);
  lua_pushvfstring(L, fmt, argp);
  va_end(argp);
  lua_concat(L, 2);
}


/* -----------------------------------------------------------------------------
 * global swig types
 * ----------------------------------------------------------------------------- */
/* Constant table */
#define SWIG_LUA_INT     1
#define SWIG_LUA_FLOAT   2
#define SWIG_LUA_STRING  3
#define SWIG_LUA_POINTER 4
#define SWIG_LUA_BINARY  5
#define SWIG_LUA_CHAR    6

/* Structure for variable linking table */
typedef struct {
  const char *name;
  lua_CFunction get;
  lua_CFunction set;
} swig_lua_var_info;

#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)
typedef const LUA_REG_TYPE swig_lua_method;
typedef const LUA_REG_TYPE swig_lua_const_info;
#else /* Normal lua */
typedef luaL_Reg swig_lua_method;

/* Constant information structure */
typedef struct {
    int type;
    char *name;
    long lvalue;
    double dvalue;
    void   *pvalue;
    swig_type_info **ptype;
} swig_lua_const_info;

#endif

typedef struct {
  const char     *name;
  lua_CFunction   getmethod;
  lua_CFunction   setmethod;
} swig_lua_attribute;


struct swig_lua_class;
/* Can be used to create namespaces. Currently used to wrap class static methods/variables/constants */
typedef struct swig_lua_namespace {
  const char            *name;
  swig_lua_method       *ns_methods;
  swig_lua_attribute    *ns_attributes;
  swig_lua_const_info   *ns_constants;
  struct swig_lua_class        **ns_classes;
  struct swig_lua_namespace    **ns_namespaces;
} swig_lua_namespace;

typedef struct swig_lua_class {
  const char    *name; /* Name that this class has in Lua */
  const char    *fqname; /* Fully qualified name - Scope + class name */
  swig_type_info   **type;
  lua_CFunction  constructor;
  void    (*destructor)(void *);
  swig_lua_method   *methods;
  swig_lua_attribute     *attributes;
  swig_lua_namespace    *cls_static;
  swig_lua_method   *metatable; /* 0 for -eluac */
  struct swig_lua_class **bases;
  const char **base_names;
} swig_lua_class;

/* this is the struct for wrapping all pointers in SwigLua
*/
typedef struct {
  swig_type_info   *type;
  int     own;  /* 1 if owned & must be destroyed */
  void        *ptr;
} swig_lua_userdata;

/* this is the struct for wrapping arbitrary packed binary data
(currently it is only used for member function pointers)
the data ordering is similar to swig_lua_userdata, but it is currently not possible
to tell the two structures apart within SWIG, other than by looking at the type
*/
typedef struct {
  swig_type_info   *type;
  int     own;  /* 1 if owned & must be destroyed */
  char data[1];       /* arbitrary amount of data */
} swig_lua_rawdata;

/* Common SWIG API */
#define SWIG_NewPointerObj(L, ptr, type, owner)       SWIG_Lua_NewPointerObj(L, (void *)ptr, type, owner)
#define SWIG_ConvertPtr(L,idx, ptr, type, flags)    SWIG_Lua_ConvertPtr(L,idx,ptr,type,flags)
#define SWIG_MustGetPtr(L,idx, type,flags, argnum,fnname)  SWIG_Lua_MustGetPtr(L,idx, type,flags, argnum,fnname)
/* for C++ member pointers, ie, member methods */
#define SWIG_ConvertMember(L, idx, ptr, sz, ty)       SWIG_Lua_ConvertPacked(L, idx, ptr, sz, ty)
#define SWIG_NewMemberObj(L, ptr, sz, type)      SWIG_Lua_NewPackedObj(L, ptr, sz, type)

/* Runtime API */
#define SWIG_GetModule(clientdata) SWIG_Lua_GetModule((lua_State*)(clientdata))
#define SWIG_SetModule(clientdata, pointer) SWIG_Lua_SetModule((lua_State*) (clientdata), pointer)
#define SWIG_MODULE_CLIENTDATA_TYPE lua_State*

/* Contract support */
#define SWIG_contract_assert(expr, msg)  \
  if (!(expr)) { SWIG_Lua_pusherrstring(L, (char *) msg); goto fail; } else


/* helper #defines */
#define SWIG_fail {goto fail;}
#define SWIG_fail_arg(func_name,argnum,type) \
  {SWIG_Lua_pushferrstring(L,"Error in %s (arg %d), expected '%s' got '%s'",\
  func_name,argnum,type,SWIG_Lua_typename(L,argnum));\
  goto fail;}
#define SWIG_fail_ptr(func_name,argnum,type) \
  SWIG_fail_arg(func_name,argnum,(type && type->str)?type->str:"void*")
#define SWIG_check_num_args(func_name,a,b) \
  if (lua_gettop(L)<a || lua_gettop(L)>b) \
  {SWIG_Lua_pushferrstring(L,"Error in %s expected %d..%d args, got %d",func_name,a,b,lua_gettop(L));\
  goto fail;}


#define SWIG_Lua_get_table(L,n) \
  (lua_pushstring(L, n), lua_rawget(L,-2))

#define SWIG_Lua_add_function(L,n,f) \
  (lua_pushstring(L, n), \
      lua_pushcfunction(L, f), \
      lua_rawset(L,-3))

#define SWIG_Lua_add_boolean(L,n,b) \
  (lua_pushstring(L, n), \
      lua_pushboolean(L, b), \
      lua_rawset(L,-3))

/* special helper for allowing 'nil' for usertypes */
#define SWIG_isptrtype(L,I) (lua_isuserdata(L,I) || lua_isnil(L,I))

#ifdef __cplusplus
/* Special helper for member function pointers
it gets the address, casts it, then dereferences it */
/*#define SWIG_mem_fn_as_voidptr(a)  (*((char**)&(a))) */
#endif

/* storing/access of swig_module_info */
SWIGRUNTIME swig_module_info *
SWIG_Lua_GetModule(lua_State *L) {
  swig_module_info *ret = 0;
  lua_pushstring(L,"swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME);
  lua_rawget(L,LUA_REGISTRYINDEX);
  if (lua_islightuserdata(L,-1))
    ret=(swig_module_info*)lua_touserdata(L,-1);
  lua_pop(L,1);  /* tidy */
  return ret;
}

SWIGRUNTIME void
SWIG_Lua_SetModule(lua_State *L, swig_module_info *module) {
  /* add this all into the Lua registry: */
  lua_pushstring(L,"swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME);
  lua_pushlightuserdata(L,(void*)module);
  lua_rawset(L,LUA_REGISTRYINDEX);
}

/* -----------------------------------------------------------------------------
 * global variable support code: modules
 * ----------------------------------------------------------------------------- */

/* this function is called when trying to set an immutable.
default action is to print an error.
This can removed with a compile flag SWIGLUA_IGNORE_SET_IMMUTABLE */
SWIGINTERN int SWIG_Lua_set_immutable(lua_State *L)
{
/*  there should be 1 param passed in: the new value */
#ifndef SWIGLUA_IGNORE_SET_IMMUTABLE
  lua_pop(L,1);  /* remove it */
  luaL_error(L,"This variable is immutable");
#endif
    return 0;   /* should not return anything */
}

#ifdef SWIG_LUA_ELUA_EMULATE

SWIGRUNTIME void SWIG_Lua_NewPointerObj(lua_State *L,void *ptr,swig_type_info *type, int own);
SWIGRUNTIME void SWIG_Lua_NewPackedObj(lua_State *L,void *ptr,size_t size,swig_type_info *type);
static int swig_lua_elua_emulate_unique_key;

/* This function emulates eLua rotables behaviour. It loads a rotable definition into the usual lua table. */
SWIGINTERN void SWIG_Lua_elua_emulate_register(lua_State *L, const swig_elua_entry *table)
{
  int i, table_parsed, parsed_tables_array, target_table;
  assert(lua_istable(L,-1));
  target_table = lua_gettop(L);
  /* Get the registry where we put all parsed tables to avoid loops */
  lua_rawgetp(L, LUA_REGISTRYINDEX, &swig_lua_elua_emulate_unique_key);
  if(lua_isnil(L,-1)) {
    lua_pop(L,1);
    lua_newtable(L);
    lua_pushvalue(L,-1);
    lua_rawsetp(L,LUA_REGISTRYINDEX,(void*)(&swig_lua_elua_emulate_unique_key));
  }
  parsed_tables_array = lua_gettop(L);
  lua_pushvalue(L,target_table);
  lua_rawsetp(L, parsed_tables_array, table);
  table_parsed = 0;
  const int SWIGUNUSED pairs_start = lua_gettop(L);
  for(i = 0;table[i].key.type != LUA_TNIL || table[i].value.type != LUA_TNIL;i++)
  {
    const swig_elua_entry *entry = table + i;
    int is_metatable = 0;
    switch(entry->key.type) {
      case LUA_TSTRING:
        lua_pushstring(L,entry->key.key.strkey);
        if(strcmp(entry->key.key.strkey, SWIG_LUA_ELUA_EMUL_METATABLE_KEY) == 0)
          is_metatable = 1;
        break;
      case  LUA_TNUMBER:
        lua_pushnumber(L,entry->key.key.numkey);
        break;
      case LUA_TNIL:
        lua_pushnil(L);
        break;
      default:
        assert(0);
    }
    switch(entry->value.type) {
      case LUA_TSTRING:
        lua_pushstring(L,entry->value.value.string);
        break;
      case  LUA_TNUMBER:
        lua_pushnumber(L,entry->value.value.number);
        break;
      case LUA_TFUNCTION:
        lua_pushcfunction(L,entry->value.value.function);
        break;
      case LUA_TTABLE:
        lua_rawgetp(L,parsed_tables_array, entry->value.value.table);
        table_parsed = !lua_isnil(L,-1);
        if(!table_parsed) {
          lua_pop(L,1); /*remove nil */
          lua_newtable(L);
          SWIG_Lua_elua_emulate_register(L,entry->value.value.table);
        }
        if(is_metatable) {
          assert(lua_istable(L,-1));
          lua_pushvalue(L,-1);
          lua_setmetatable(L,target_table);
        }

        break;
      case LUA_TUSERDATA:
        if(entry->value.value.userdata.member)
          SWIG_NewMemberObj(L,entry->value.value.userdata.pvalue,
              entry->value.value.userdata.lvalue,
              *(entry->value.value.userdata.ptype));
        else
          SWIG_NewPointerObj(L,entry->value.value.userdata.pvalue,
              *(entry->value.value.userdata.ptype),0);
        break;
      case LUA_TNIL:
        lua_pushnil(L);
        break;
      default:
        assert(0);
    }
    assert(lua_gettop(L) == pairs_start + 2);
    lua_rawset(L,target_table);
  }
  lua_pop(L,1); /* Removing parsed tables storage */
  assert(lua_gettop(L) == target_table);
}

SWIGINTERN void SWIG_Lua_elua_emulate_register_clear(lua_State *L)
{
  lua_pushnil(L);
  lua_rawsetp(L, LUA_REGISTRYINDEX, &swig_lua_elua_emulate_unique_key);
}

SWIGINTERN void SWIG_Lua_get_class_registry(lua_State *L);

SWIGINTERN int SWIG_Lua_emulate_elua_getmetatable(lua_State *L)
{
  SWIG_check_num_args("getmetatable(SWIG eLua emulation)", 1, 1);
  SWIG_Lua_get_class_registry(L);
  lua_getfield(L,-1,"lua_getmetatable");
  lua_remove(L,-2); /* remove the registry*/
  assert(!lua_isnil(L,-1));
  lua_pushvalue(L,1);
  assert(lua_gettop(L) == 3); /* object | function | object again */
  lua_call(L,1,1);
  if(!lua_isnil(L,-1)) /*There is an ordinary metatable */
    return 1;
  /*if it is a table, then emulate elua behaviour - check for __metatable attribute of a table*/
  assert(lua_gettop(L) == 2);
  if(lua_istable(L,-2)) {
    lua_pop(L,1); /*remove the nil*/
    lua_getfield(L,-1, SWIG_LUA_ELUA_EMUL_METATABLE_KEY);
  }
  assert(lua_gettop(L) == 2);
  return 1;

fail:
  lua_error(L);
  return 0;
}

SWIGINTERN void SWIG_Lua_emulate_elua_swap_getmetatable(lua_State *L)
{
  SWIG_Lua_get_class_registry(L);
  lua_pushglobaltable(L);
  lua_pushstring(L,"lua_getmetatable");
  lua_getfield(L,-2,"getmetatable");
  assert(!lua_isnil(L,-1));
  lua_rawset(L,-4);
  lua_pushstring(L, "getmetatable");
  lua_pushcfunction(L, SWIG_Lua_emulate_elua_getmetatable);
  lua_rawset(L,-3);
  lua_pop(L,2);

}
/* END OF REMOVE */

#endif
/* -----------------------------------------------------------------------------
 * global variable support code: namespaces and modules (which are the same thing)
 * ----------------------------------------------------------------------------- */

SWIGINTERN int SWIG_Lua_namespace_get(lua_State *L)
{
/*  there should be 2 params passed in
  (1) table (not the meta table)
  (2) string name of the attribute
*/
  assert(lua_istable(L,-2));  /* just in case */
  lua_getmetatable(L,-2);
  assert(lua_istable(L,-1));
  SWIG_Lua_get_table(L,".get"); /* find the .get table */
  assert(lua_istable(L,-1));
  /* look for the key in the .get table */
  lua_pushvalue(L,2);  /* key */
  lua_rawget(L,-2);
  lua_remove(L,-2); /* stack tidy, remove .get table */
  if (lua_iscfunction(L,-1))
  {  /* found it so call the fn & return its value */
    lua_call(L,0,1);  /* 1 value in (userdata),1 out (result) */
    lua_remove(L,-2); /* stack tidy, remove metatable */
    return 1;
  }
  lua_pop(L,1);  /* remove whatever was there */
  /* ok, so try the .fn table */
  SWIG_Lua_get_table(L,".fn"); /* find the .get table */
  assert(lua_istable(L,-1));  /* just in case */
  lua_pushvalue(L,2);  /* key */
  lua_rawget(L,-2);  /* look for the fn */
  lua_remove(L,-2); /* stack tidy, remove .fn table */
  if (lua_isfunction(L,-1)) /* note: whether it's a C function or lua function */
  {  /* found it so return the fn & let lua call it */
    lua_remove(L,-2); /* stack tidy, remove metatable */
    return 1;
  }
  lua_pop(L,1);  /* remove whatever was there */
  return 0;
}

SWIGINTERN int SWIG_Lua_namespace_set(lua_State *L)
{
/*  there should be 3 params passed in
  (1) table (not the meta table)
  (2) string name of the attribute
  (3) any for the new value
*/

  assert(lua_istable(L,1));
  lua_getmetatable(L,1);    /* get the meta table */
  assert(lua_istable(L,-1));

  SWIG_Lua_get_table(L,".set"); /* find the .set table */
  if (lua_istable(L,-1))
  {
    /* look for the key in the .set table */
    lua_pushvalue(L,2);  /* key */
    lua_rawget(L,-2);
    if (lua_iscfunction(L,-1))
    {  /* found it so call the fn & return its value */
      lua_pushvalue(L,3);  /* value */
      lua_call(L,1,0);
      return 0;
    }
    lua_pop(L,1);  /* remove the value */
  }
  lua_pop(L,1);  /* remove the value .set table */
  lua_pop(L,1); /* remote metatable */
  lua_rawset(L,-3);
  return 0;
}

#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA) /* In elua this is useless */
SWIGINTERN void SWIG_Lua_InstallConstants(lua_State *L, swig_lua_const_info constants[]); /* forward declaration */
SWIGINTERN void  SWIG_Lua_add_variable(lua_State *L,const char *name,lua_CFunction getFn,lua_CFunction setFn); /* forward declaration */
SWIGINTERN void  SWIG_Lua_class_register(lua_State *L,swig_lua_class *clss);

/* helper function - register namespace methods and attributes into namespace */
SWIGINTERN int SWIG_Lua_add_namespace_details(lua_State *L, swig_lua_namespace *ns)
{
  int i;
  /* There must be namespace table (not metatable) at the top of the stack */
  assert(lua_istable(L,-1));
  SWIG_Lua_InstallConstants(L, ns->ns_constants);

  /* add methods to the namespace/module table */
  for(i=0;ns->ns_methods[i].name;i++){
    SWIG_Lua_add_function(L,ns->ns_methods[i].name,ns->ns_methods[i].func);
  }
  lua_getmetatable(L,-1);

  /* add fns */
  for(i=0;ns->ns_attributes[i].name;i++){
    SWIG_Lua_add_variable(L,ns->ns_attributes[i].name,ns->ns_attributes[i].getmethod,ns->ns_attributes[i].setmethod);
  }

  /* clear stack - remove metatble */
  lua_pop(L,1);
  return 0;
}

/* Register all classes in the namespace */
SWIGINTERN void SWIG_Lua_add_namespace_classes(lua_State *L, swig_lua_namespace *ns)
{
  swig_lua_class **classes;

  /* There must be a module/namespace table at the top of the stack */
  assert(lua_istable(L,-1));

  classes = ns->ns_classes;

  if( classes != 0 ) {
    while(*classes != 0) {
      SWIG_Lua_class_register(L, *classes);
      classes++;
    }
  }
}

/* Helper function. Creates namespace table and adds it to module table
   if 'reg' is true, then will register namespace table to parent one (must be on top of the stack
   when function is called).
   Function always returns newly registered table on top of the stack.
*/
SWIGINTERN void SWIG_Lua_namespace_register(lua_State *L, swig_lua_namespace *ns, int reg)
{
  swig_lua_namespace **sub_namespace;
  /* 1 argument - table on the top of the stack */
  const int SWIGUNUSED begin = lua_gettop(L);
  assert(lua_istable(L,-1)); /* just in case. This is supposed to be module table or parent namespace table */
  lua_checkstack(L,5);
  lua_newtable(L); /* namespace itself */
  lua_newtable(L); /* metatable for namespace */

  /* add a table called ".get" */
  lua_pushstring(L,".get");
  lua_newtable(L);
  lua_rawset(L,-3);
  /* add a table called ".set" */
  lua_pushstring(L,".set");
  lua_newtable(L);
  lua_rawset(L,-3);
  /* add a table called ".fn" */
  lua_pushstring(L,".fn");
  lua_newtable(L);
  lua_rawset(L,-3);

  /* add accessor fns for using the .get,.set&.fn */
  SWIG_Lua_add_function(L,"__index",SWIG_Lua_namespace_get);
  SWIG_Lua_add_function(L,"__newindex",SWIG_Lua_namespace_set);

  lua_setmetatable(L,-2); /* set metatable */

  /* Register all functions, variables etc */
  SWIG_Lua_add_namespace_details(L,ns);
  /* Register classes */
  SWIG_Lua_add_namespace_classes(L,ns);

  sub_namespace = ns->ns_namespaces;
  if( sub_namespace != 0) {
    while(*sub_namespace != 0) {
      SWIG_Lua_namespace_register(L, *sub_namespace, 1);
      lua_pop(L,1); /* removing sub-namespace table */
      sub_namespace++;
    }
  }

  if (reg) {
    lua_pushstring(L,ns->name);
    lua_pushvalue(L,-2);
    lua_rawset(L,-4); /* add namespace to module table */
  }
  assert(lua_gettop(L) == begin+1);
}
#endif /* SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA */

/* -----------------------------------------------------------------------------
 * global variable support code: classes
 * ----------------------------------------------------------------------------- */

SWIGINTERN void  SWIG_Lua_get_class_metatable(lua_State *L,const char *cname);

typedef int (*swig_lua_base_iterator_func)(lua_State*,swig_type_info*, int, int *ret);

SWIGINTERN int SWIG_Lua_iterate_bases(lua_State *L, swig_type_info * SWIGUNUSED swig_type,
  int first_arg, swig_lua_base_iterator_func func, int  *const ret)
{
    /* first_arg - position of the object in stack. Everything that is above are arguments
     * and is passed to every evocation of the func */
    int last_arg = lua_gettop(L);/* position of last argument */
    int original_metatable = last_arg + 1;
    size_t bases_count;
    int result = SWIG_ERROR;
    int bases_table;
    (void)swig_type;
    lua_getmetatable(L,first_arg);

    /* initialise base search */
#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA)
    SWIG_Lua_get_table(L,".bases");
    assert(lua_istable(L,-1));
    bases_count = lua_rawlen(L,-1);
    bases_table = lua_gettop(L);
#else
    /* In elua .bases table doesn't exist. Use table from swig_lua_class */
    (void)bases_table;
    assert(swig_type!=0);
    swig_module_info *module=SWIG_GetModule(L);
    swig_lua_class **bases= ((swig_lua_class*)(swig_type->clientdata))->bases;
    const char **base_names= ((swig_lua_class*)(swig_type->clientdata))->base_names;
    bases_count = 0;
    for(;base_names[bases_count];
      bases_count++);/* get length of bases */
#endif

    if(ret)
      *ret = 0;
    if(bases_count>0)
    {
      int to_remove;
      size_t i;
      int j;
      int subcall_last_arg;
      int subcall_first_arg = lua_gettop(L) + 1;/* Here a copy of first_arg and arguments begin */
      int valid = 1;
      swig_type_info *base_swig_type = 0;
      for(j=first_arg;j<=last_arg;j++)
        lua_pushvalue(L,j);
      subcall_last_arg = lua_gettop(L);

      /* Trick: temporarily replacing original metatable with metatable for base class and call getter */
      for(i=0;i<bases_count;i++) {
        /* Iteration through class bases */
#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA)
        lua_rawgeti(L,bases_table,i+1);
        base_swig_type = 0;
        if(lua_isnil(L,-1)) {
          valid = 0;
          lua_pop(L,1);
        } else {
          valid = 1;
        }
#else /* In elua .bases table doesn't exist. Use table from swig_lua_class */
        swig_lua_class *base_class = bases[i];
        if(!base_class) {
          valid = 0;
        } else {
          valid = 1;
          SWIG_Lua_get_class_metatable(L,base_class->fqname);
          base_swig_type = SWIG_TypeQueryModule(module,module,base_names[i]);
          assert(base_swig_type != 0);
        }
#endif

        if(!valid)
          continue;
        assert(lua_isuserdata(L, subcall_first_arg));
        assert(lua_istable(L,-1));
        lua_setmetatable(L,subcall_first_arg); /* Set new metatable */
        assert(lua_gettop(L) == subcall_last_arg);
        result = func(L, base_swig_type,subcall_first_arg, ret); /* Forward call */
        if(result != SWIG_ERROR) {
          break;
        }
      }
      /* Restore original metatable */
      lua_pushvalue(L,original_metatable);
      lua_setmetatable(L,first_arg);
      /* Clear - remove everything between last_arg and subcall_last_arg including */
      to_remove = subcall_last_arg - last_arg;
      for(j=0;j<to_remove;j++)
        lua_remove(L,last_arg+1);
    } else {
      /* Remove everything after last_arg */
      lua_pop(L, lua_gettop(L) - last_arg);
    }
    if(ret) assert(lua_gettop(L) == last_arg + *ret);
    return result;
}

/* The class.get method helper, performs the lookup of class attributes.
 * It returns an error code. Number of function return values is passed inside 'ret'.
 * first_arg is not used in this function because function always has 2 arguments.
 */
SWIGINTERN int  SWIG_Lua_class_do_get_item(lua_State *L, swig_type_info *type, int SWIGUNUSED first_arg, int *ret)
{
/*  there should be 2 params passed in
  (1) userdata (not the meta table)
  (2) string name of the attribute
*/
  int bases_search_result;
  int substack_start = lua_gettop(L)-2;
  assert(first_arg == substack_start+1);
  lua_checkstack(L,5);
  assert(lua_isuserdata(L,-2));  /* just in case */
  lua_getmetatable(L,-2);    /* get the meta table */
  assert(lua_istable(L,-1));  /* just in case */
  /* NEW: looks for the __getitem() fn
  this is a user provided get fn */
  SWIG_Lua_get_table(L,"__getitem"); /* find the __getitem fn */
  if (lua_iscfunction(L,-1))  /* if its there */
  {  /* found it so call the fn & return its value */
    lua_pushvalue(L,substack_start+1);  /* the userdata */
    lua_pushvalue(L,substack_start+2);  /* the parameter */
    lua_call(L,2,1);  /* 2 value in (userdata),1 out (result) */
    lua_remove(L,-2); /* stack tidy, remove metatable */
    if(ret) *ret = 1;
    return SWIG_OK;
  }
  lua_pop(L,1);
  /* Remove the metatable */
  lua_pop(L,1);
  /* Search in base classes */
  bases_search_result = SWIG_Lua_iterate_bases(L,type,substack_start+1,SWIG_Lua_class_do_get_item,ret);
  return bases_search_result;  /* sorry not known */
}


/* The class.get method helper, performs the lookup of class attributes.
 * It returns an error code. Number of function return values is passed inside 'ret'.
 * first_arg is not used in this function because function always has 2 arguments.
 */
SWIGINTERN int  SWIG_Lua_class_do_get(lua_State *L, swig_type_info *type, int SWIGUNUSED first_arg, int *ret)
{
/*  there should be 2 params passed in
  (1) userdata (not the meta table)
  (2) string name of the attribute
*/
  int bases_search_result;
  int substack_start = lua_gettop(L)-2;
  assert(first_arg == substack_start+1);
  lua_checkstack(L,5);
  assert(lua_isuserdata(L,-2));  /* just in case */
  lua_getmetatable(L,-2);    /* get the meta table */
  assert(lua_istable(L,-1));  /* just in case */
  SWIG_Lua_get_table(L,".get"); /* find the .get table */
  assert(lua_istable(L,-1));  /* just in case */
  /* look for the key in the .get table */
  lua_pushvalue(L,substack_start+2);  /* key */
  lua_rawget(L,-2);
  lua_remove(L,-2); /* stack tidy, remove .get table */
  if (lua_iscfunction(L,-1))
  {  /* found it so call the fn & return its value */
    lua_pushvalue(L,substack_start+1);  /* the userdata */
    lua_call(L,1,1);  /* 1 value in (userdata),1 out (result) */
    lua_remove(L,-2); /* stack tidy, remove metatable */
    if(ret)
      *ret = 1;
    return SWIG_OK;
  }
  lua_pop(L,1);  /* remove whatever was there */
  /* ok, so try the .fn table */
  SWIG_Lua_get_table(L,".fn"); /* find the .fn table */
  assert(lua_istable(L,-1));  /* just in case */
  lua_pushvalue(L,substack_start+2);  /* key */
  lua_rawget(L,-2);  /* look for the fn */
  lua_remove(L,-2); /* stack tidy, remove .fn table */
  if (lua_isfunction(L,-1)) /* note: if its a C function or lua function */
  {  /* found it so return the fn & let lua call it */
    lua_remove(L,-2); /* stack tidy, remove metatable */
    if(ret)
      *ret = 1;
    return SWIG_OK;
  }
  lua_pop(L,1);  /* remove whatever was there */
  /* Remove the metatable */
  lua_pop(L,1);
  /* Search in base classes */
  bases_search_result = SWIG_Lua_iterate_bases(L,type,substack_start+1,SWIG_Lua_class_do_get,ret);
  return bases_search_result;  /* sorry not known */
}

/* the class.get method, performs the lookup of class attributes
 */
SWIGINTERN int  SWIG_Lua_class_get(lua_State *L)
{
/*  there should be 2 params passed in
  (1) userdata (not the meta table)
  (2) string name of the attribute
*/
  int result;
  swig_lua_userdata *usr;
  swig_type_info *type;
  int ret = 0;
  assert(lua_isuserdata(L,1));
  usr=(swig_lua_userdata*)lua_touserdata(L,1);  /* get data */
  type = usr->type;
  result = SWIG_Lua_class_do_get(L,type,1,&ret);
  if(result == SWIG_OK)
    return ret;

  result = SWIG_Lua_class_do_get_item(L,type,1,&ret);
  if(result == SWIG_OK)
    return ret;

  return 0;
}

/* helper for the class.set method, performs the lookup of class attributes
 * It returns error code. Number of function return values is passed inside 'ret'
 */
SWIGINTERN int  SWIG_Lua_class_do_set(lua_State *L, swig_type_info *type, int first_arg, int *ret)
{
/*  there should be 3 params passed in
  (1) table (not the meta table)
  (2) string name of the attribute
  (3) any for the new value
  */

  int bases_search_result;
  int substack_start = lua_gettop(L) - 3;
  lua_checkstack(L,5);
  assert(lua_isuserdata(L,substack_start+1));  /* just in case */
  lua_getmetatable(L,substack_start+1);    /* get the meta table */
  assert(lua_istable(L,-1));  /* just in case */
  if(ret)
    *ret = 0; /* it is setter - number of return values is always 0 */

  SWIG_Lua_get_table(L,".set"); /* find the .set table */
  if (lua_istable(L,-1))
  {
    /* look for the key in the .set table */
    lua_pushvalue(L,substack_start+2);  /* key */
    lua_rawget(L,-2);
    lua_remove(L,-2); /* tidy stack, remove .set table */
    if (lua_iscfunction(L,-1))
    {  /* found it so call the fn & return its value */
      lua_pushvalue(L,substack_start+1);  /* userdata */
      lua_pushvalue(L,substack_start+3);  /* value */
      lua_call(L,2,0);
      lua_remove(L,substack_start+4); /*remove metatable*/
      return SWIG_OK;
    }
    lua_pop(L,1);  /* remove the value */
  } else {
    lua_pop(L,1);  /* remove the answer for .set table request*/
  }
  /* NEW: looks for the __setitem() fn
  this is a user provided set fn */
  SWIG_Lua_get_table(L,"__setitem"); /* find the fn */
  if (lua_iscfunction(L,-1))  /* if its there */
  {  /* found it so call the fn & return its value */
    lua_pushvalue(L,substack_start+1);  /* the userdata */
    lua_pushvalue(L,substack_start+2);  /* the parameter */
    lua_pushvalue(L,substack_start+3);  /* the value */
    lua_call(L,3,0);  /* 3 values in ,0 out */
    lua_remove(L,-2); /* stack tidy, remove metatable */
    return SWIG_OK;
  }
  lua_pop(L,1); /* remove value */

  lua_pop(L,1); /* remove metatable */
  /* Search among bases */
  bases_search_result = SWIG_Lua_iterate_bases(L,type,first_arg,SWIG_Lua_class_do_set,ret);
  if(ret)
    assert(*ret == 0);
  assert(lua_gettop(L) == substack_start + 3);
  return bases_search_result;
}

/* This is the actual method exported to Lua. It calls SWIG_Lua_class_do_set and correctly
 * handles return values.
 */
SWIGINTERN int  SWIG_Lua_class_set(lua_State *L)
{
/*  There should be 3 params passed in
  (1) table (not the meta table)
  (2) string name of the attribute
  (3) any for the new value
  */
  int ret = 0;
  int result;
  swig_lua_userdata *usr;
  swig_type_info *type;
  assert(lua_isuserdata(L,1));
  usr=(swig_lua_userdata*)lua_touserdata(L,1);  /* get data */
  type = usr->type;
  result = SWIG_Lua_class_do_set(L,type,1,&ret);
  if(result != SWIG_OK) {
   SWIG_Lua_pushferrstring(L,"Assignment not possible. No setter/member with this name. For custom assignments implement __setitem method.");
   lua_error(L);
  } else {
    assert(ret==0);
  }
  return 0;
}

/* the class.destruct method called by the interpreter */
SWIGINTERN int  SWIG_Lua_class_destruct(lua_State *L)
{
/*  there should be 1 params passed in
  (1) userdata (not the meta table) */
  swig_lua_userdata *usr;
  swig_lua_class *clss;
  assert(lua_isuserdata(L,-1));  /* just in case */
  usr=(swig_lua_userdata*)lua_touserdata(L,-1);  /* get it */
  /* if must be destroyed & has a destructor */
  if (usr->own) /* if must be destroyed */
  {
    clss=(swig_lua_class*)usr->type->clientdata;  /* get the class */
    if (clss && clss->destructor)  /* there is a destroy fn */
    {
      clss->destructor(usr->ptr);  /* bye bye */
    }
  }
  return 0;
}

/* the class.__tostring method called by the interpreter and print */
SWIGINTERN int  SWIG_Lua_class_tostring(lua_State *L)
{
/*  there should be 1 param passed in
  (1) userdata (not the metatable) */
  swig_lua_userdata* userData;
  assert(lua_isuserdata(L,1));  /* just in case */
  userData = (swig_lua_userdata*)lua_touserdata(L,1); /* get the userdata address */

  lua_pushfstring(L, "<userdata of type '%s' at %p>", userData->type->str, userData->ptr);
  return 1;
}

/* to manually disown some userdata */
SWIGINTERN int  SWIG_Lua_class_disown(lua_State *L)
{
/*  there should be 1 params passed in
  (1) userdata (not the meta table) */
  swig_lua_userdata *usr;
  assert(lua_isuserdata(L,-1));  /* just in case */
  usr=(swig_lua_userdata*)lua_touserdata(L,-1);  /* get it */

  usr->own = 0; /* clear our ownership */
  return 0;
}

/* lua callable function to compare userdata's value
the issue is that two userdata may point to the same thing
but to lua, they are different objects */
SWIGRUNTIME int SWIG_Lua_class_equal(lua_State *L)
{
  int result;
  swig_lua_userdata *usr1,*usr2;
  if (!lua_isuserdata(L,1) || !lua_isuserdata(L,2))  /* just in case */
    return 0;  /* nil reply */
  usr1=(swig_lua_userdata*)lua_touserdata(L,1);  /* get data */
  usr2=(swig_lua_userdata*)lua_touserdata(L,2);  /* get data */
  /*result=(usr1->ptr==usr2->ptr && usr1->type==usr2->type); only works if type is the same*/
  result=(usr1->ptr==usr2->ptr);
   lua_pushboolean(L,result);
  return 1;
}

/* populate table at the top of the stack with metamethods that ought to be inherited */
SWIGINTERN void SWIG_Lua_populate_inheritable_metamethods(lua_State *L)
{
  SWIG_Lua_add_boolean(L, "__add", 1);
  SWIG_Lua_add_boolean(L, "__sub", 1);
  SWIG_Lua_add_boolean(L, "__mul", 1);
  SWIG_Lua_add_boolean(L, "__div", 1);
  SWIG_Lua_add_boolean(L, "__mod", 1);
  SWIG_Lua_add_boolean(L, "__pow", 1);
  SWIG_Lua_add_boolean(L, "__unm", 1);
  SWIG_Lua_add_boolean(L, "__len", 1 );
  SWIG_Lua_add_boolean(L, "__concat", 1 );
  SWIG_Lua_add_boolean(L, "__eq", 1);
  SWIG_Lua_add_boolean(L, "__lt", 1);
  SWIG_Lua_add_boolean(L, "__le", 1);
  SWIG_Lua_add_boolean(L, "__call", 1);
  SWIG_Lua_add_boolean(L, "__tostring", 1);
  SWIG_Lua_add_boolean(L, "__gc", 0);
}

/* creates the swig registry */
SWIGINTERN void SWIG_Lua_create_class_registry(lua_State *L)
{
  /* create main SWIG registry table */
  lua_pushstring(L,"SWIG");
  lua_newtable(L);
  /* populate it with some predefined data */

  /* .library table. Placeholder */
  lua_pushstring(L,".library");
  lua_newtable(L);
  {
    /* list of metamethods that class inherits from its bases */
    lua_pushstring(L,"inheritable_metamethods");
    lua_newtable(L);
    /* populate with list of metamethods */
    SWIG_Lua_populate_inheritable_metamethods(L);
    lua_rawset(L,-3);
  }
  lua_rawset(L,-3);

  lua_rawset(L,LUA_REGISTRYINDEX);
}

/* gets the swig registry (or creates it) */
SWIGINTERN void  SWIG_Lua_get_class_registry(lua_State *L)
{
  /* add this all into the swig registry: */
  lua_pushstring(L,"SWIG");
  lua_rawget(L,LUA_REGISTRYINDEX);  /* get the registry */
  if (!lua_istable(L,-1))  /* not there */
  {  /* must be first time, so add it */
    lua_pop(L,1);  /* remove the result */
    SWIG_Lua_create_class_registry(L);
    /* then get it */
    lua_pushstring(L,"SWIG");
    lua_rawget(L,LUA_REGISTRYINDEX);
  }
}

SWIGINTERN void SWIG_Lua_get_inheritable_metamethods(lua_State *L)
{
  SWIG_Lua_get_class_registry(L);
  lua_pushstring(L, ".library");
  lua_rawget(L,-2);
  assert( !lua_isnil(L,-1) );
  lua_pushstring(L, "inheritable_metamethods");
  lua_rawget(L,-2);

  /* Remove class registry and library table */
  lua_remove(L,-2);
  lua_remove(L,-2);
}

/* Helper function to get the classes metatable from the register */
SWIGINTERN void  SWIG_Lua_get_class_metatable(lua_State *L,const char *cname)
{
  SWIG_Lua_get_class_registry(L);  /* get the registry */
  lua_pushstring(L,cname);  /* get the name */
  lua_rawget(L,-2);    /* get it */
  lua_remove(L,-2);    /* tidy up (remove registry) */
}

/* Set up the base classes pointers.
Each class structure has a list of pointers to the base class structures.
This function fills them.
It cannot be done at compile time, as this will not work with hireachies
spread over more than one swig file.
Therefore it must be done at runtime, querying the SWIG type system.
*/
SWIGINTERN void SWIG_Lua_init_base_class(lua_State *L,swig_lua_class *clss)
{
  int i=0;
  swig_module_info *module=SWIG_GetModule(L);
  for(i=0;clss->base_names[i];i++)
  {
    if (clss->bases[i]==0) /* not found yet */
    {
      /* lookup and cache the base class */
      swig_type_info *info = SWIG_TypeQueryModule(module,module,clss->base_names[i]);
      if (info) clss->bases[i] = (swig_lua_class *) info->clientdata;
    }
  }
}

#if defined(SWIG_LUA_SQUASH_BASES) && (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA)
/* Merges two tables  */
SWIGINTERN void SWIG_Lua_merge_tables_by_index(lua_State *L, int target, int source)
{
  /* iterating */
  lua_pushnil(L);
  while (lua_next(L,source) != 0) {
    /* -1 - value, -2 - index */
    /* have to copy to assign */
    lua_pushvalue(L,-2); /* copy of index */
    lua_pushvalue(L,-2); /* copy of value */
    lua_rawset(L, target);
    lua_pop(L,1);
    /* only key is left */
  }
}

/* Merges two tables with given name. original - index of target metatable, base - index of source metatable */
SWIGINTERN void SWIG_Lua_merge_tables(lua_State *L, const char* name, int original, int base)
{
  /* push original[name], then base[name] */
  lua_pushstring(L,name);
  lua_rawget(L,original);
  int original_table = lua_gettop(L);
  lua_pushstring(L,name);
  lua_rawget(L,base);
  int base_table = lua_gettop(L);
  SWIG_Lua_merge_tables_by_index(L, original_table, base_table);
  /* clearing stack */
  lua_pop(L,2);
}

/* Function takes all symbols from base and adds it to derived class. It's just a helper. */
SWIGINTERN void SWIG_Lua_class_squash_base(lua_State *L, swig_lua_class *base_cls)
{
  /* There is one parameter - original, i.e. 'derived' class metatable */
  assert(lua_istable(L,-1));
  int original = lua_gettop(L);
  SWIG_Lua_get_class_metatable(L,base_cls->fqname);
  int base = lua_gettop(L);
  SWIG_Lua_merge_tables(L, ".fn", original, base );
  SWIG_Lua_merge_tables(L, ".set", original, base );
  SWIG_Lua_merge_tables(L, ".get", original, base );
  lua_pop(L,1);
}

/* Function squashes all symbols from 'clss' bases into itself */
SWIGINTERN void  SWIG_Lua_class_squash_bases(lua_State *L, swig_lua_class *clss)
{
  int i;
  SWIG_Lua_get_class_metatable(L,clss->fqname);
  for(i=0;clss->base_names[i];i++)
  {
    if (clss->bases[i]==0) /* Somehow it's not found. Skip it */
      continue;
    /* Thing is: all bases are already registered. Thus they have already executed
     * this function. So we just need to squash them into us, because their bases
     * are already squashed into them. No need for recursion here!
     */
    SWIG_Lua_class_squash_base(L, clss->bases[i]);
  }
  lua_pop(L,1); /*tidy stack*/
}
#endif

#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA) /* In elua this is useless */
/* helper add a variable to a registered class */
SWIGINTERN void  SWIG_Lua_add_variable(lua_State *L,const char *name,lua_CFunction getFn,lua_CFunction setFn)
{
  assert(lua_istable(L,-1));  /* just in case */
  SWIG_Lua_get_table(L,".get"); /* find the .get table */
  assert(lua_istable(L,-1));  /* just in case */
  SWIG_Lua_add_function(L,name,getFn);
  lua_pop(L,1);       /* tidy stack (remove table) */
  if (setFn)
  {
    SWIG_Lua_get_table(L,".set"); /* find the .set table */
    assert(lua_istable(L,-1));  /* just in case */
    SWIG_Lua_add_function(L,name,setFn);
    lua_pop(L,1);       /* tidy stack (remove table) */
  }
}

/* helper to recursively add class static details (static attributes, operations and constants) */
SWIGINTERN void SWIG_Lua_add_class_static_details(lua_State *L, swig_lua_class *clss)
{
  int i = 0;
  /* The class namespace table must be on the top of the stack */
  assert(lua_istable(L,-1));
  /* call all the base classes first: we can then override these later: */
  for(i=0;clss->bases[i];i++)
  {
    SWIG_Lua_add_class_static_details(L,clss->bases[i]);
  }

  SWIG_Lua_add_namespace_details(L, clss->cls_static);
}

SWIGINTERN void SWIG_Lua_add_class_user_metamethods(lua_State *L, swig_lua_class *clss); /* forward declaration */

/* helper to recursively add class details (attributes & operations) */
SWIGINTERN void  SWIG_Lua_add_class_instance_details(lua_State *L, swig_lua_class *clss)
{
  int i;
  size_t bases_count = 0;
  /* Add bases to .bases table */
  SWIG_Lua_get_table(L,".bases");
  assert(lua_istable(L,-1));  /* just in case */
  for(i=0;clss->bases[i];i++)
  {
    SWIG_Lua_get_class_metatable(L,clss->bases[i]->fqname);
    /* Base class must be already registered */
    assert(lua_istable(L,-1));
    lua_rawseti(L,-2,i+1); /* In lua indexing starts from 1 */
    bases_count++;
  }
  assert(lua_rawlen(L,-1) == bases_count);
  lua_pop(L,1); /* remove .bases table */
  /* add attributes */
  for(i=0;clss->attributes[i].name;i++){
    SWIG_Lua_add_variable(L,clss->attributes[i].name,clss->attributes[i].getmethod,clss->attributes[i].setmethod);
  }
  /* add methods to the metatable */
  SWIG_Lua_get_table(L,".fn"); /* find the .fn table */
  assert(lua_istable(L,-1));  /* just in case */
  for(i=0;clss->methods[i].name;i++){
    SWIG_Lua_add_function(L,clss->methods[i].name,clss->methods[i].func);
  }
  lua_pop(L,1);       /* tidy stack (remove table) */
  /* add operator overloads
    This adds methods from metatable array to metatable. Can mess up garbage
    collectind if someone defines __gc method
    */
  if(clss->metatable) {
    for(i=0;clss->metatable[i].name;i++) {
      SWIG_Lua_add_function(L,clss->metatable[i].name,clss->metatable[i].func);
    }
  }

#if !defined(SWIG_LUA_SQUASH_BASES)
  /* Adding metamethods that are defined in base classes. If bases were squashed
   * then it is obviously unnecessary
   */
  SWIG_Lua_add_class_user_metamethods(L, clss);
#endif
}

/* Helpers to add user defined class metamedhods - __add, __sub etc. The helpers are needed
   for the following issue: Lua runtime checks for metamethod existence with rawget function
   ignoring our SWIG-provided __index and __newindex functions. Thus our inheritance-aware method
   search algorithm doesn't work in such case. (Not to say that Lua runtime queries metamethod directly
   in metatable and not in object).
   Current solution is this: if somewhere in hierarchy metamethod __x is defined, then all descendants
   are automatically given a special proxy __x that calls the real __x method.
   Obvious idea - to copy __x instead of creating __x-proxy is wrong because if someone changes __x in runtime,
   those changes must be reflected in all descendants.
*/

SWIGRUNTIME int SWIG_Lua_resolve_metamethod(lua_State *L); /*forward declaration*/

/* The real function that resolves a metamethod.
 * Function searches given class and all it's bases(recursively) for first instance of something that is
 * not equal to SWIG_Lua_resolve_metatmethod. (Almost always this 'something' is actual metamethod implementation
 * and it is a SWIG-generated C function.). It returns value on the top of the L and there is no garbage below the
 * answer.
 * Returns 1 if found, 0 otherwise.
 * clss is class which metatable we will search for method
 * metamethod_name_idx is index in L where metamethod name (as string) lies
 * skip_check allows to skip searching metamethod in givel clss and immideatelly go to searching in bases. skip_check
 * is not caried to subsequent recursive calls - false is always passed. It is set to true only at first call from
 * SWIG_Lua_resolve_metamethod
 * */
SWIGINTERN int SWIG_Lua_do_resolve_metamethod(lua_State *L, const swig_lua_class *clss, int metamethod_name_idx,
    int skip_check)
{
  /* This function is called recursively */
  int result = 0;
  int i = 0;

  if (!skip_check) {
    SWIG_Lua_get_class_metatable(L, clss->fqname);
    lua_pushvalue(L, metamethod_name_idx);
    lua_rawget(L,-2);
    /* If this is cfunction and it is equal to SWIG_Lua_resolve_metamethod then
     * this isn't the function we are looking for :)
     * lua_tocfunction will return NULL if not cfunction
     */
    if (!lua_isnil(L,-1) && lua_tocfunction(L,-1) != SWIG_Lua_resolve_metamethod ) {
      lua_remove(L,-2); /* removing class metatable */
      return 1;
    }
    lua_pop(L,2); /* remove class metatable and query result */
  }

  /* Forwarding calls to bases */
  for(i=0;clss->bases[i];i++)
  {
    result = SWIG_Lua_do_resolve_metamethod(L, clss->bases[i], metamethod_name_idx, 0);
    if (result)
      break;
  }

  return result;
}

/* The proxy function for metamethod. All parameters are passed as cclosure. Searches for actual method
 * and calls it */
SWIGRUNTIME int SWIG_Lua_resolve_metamethod(lua_State *L)
{
  int numargs;
  int metamethod_name_idx;
  const swig_lua_class* clss;
  int result;

  lua_checkstack(L,5);
  numargs = lua_gettop(L); /* number of arguments to pass to actual metamethod */

  /* Get upvalues from closure */
  lua_pushvalue(L, lua_upvalueindex(1)); /*Get function name*/
  metamethod_name_idx = lua_gettop(L);

  lua_pushvalue(L, lua_upvalueindex(2));
  clss = (const swig_lua_class*)(lua_touserdata(L,-1));
  lua_pop(L,1); /* remove lightuserdata with clss from stack */

  /* Actual work */
  result = SWIG_Lua_do_resolve_metamethod(L, clss, metamethod_name_idx, 1);
  if (!result) {
   SWIG_Lua_pushferrstring(L,"The metamethod proxy is set, but it failed to find actual metamethod. Memory corruption is most likely explanation.");
   lua_error(L);
   return 0;
  }

  lua_remove(L,-2); /* remove metamethod key */
  lua_insert(L,1); /* move function to correct position */
  lua_call(L, numargs, LUA_MULTRET);
  return lua_gettop(L); /* return all results */
}


/* If given metamethod must be present in given class, then creates appropriate proxy
 * Returns 1 if successfully added, 0 if not added because no base class has it, -1
 * if method is defined in the class metatable itself
 */
SWIGINTERN int SWIG_Lua_add_class_user_metamethod(lua_State *L, swig_lua_class *clss, const int metatable_index)
{
  int key_index;
  int success = 0;
  int i = 0;

  /* metamethod name - on the top of the stack */
  assert(lua_isstring(L,-1));

  key_index = lua_gettop(L);

  /* Check whether method is already defined in metatable */
  lua_pushvalue(L,key_index); /* copy of the key */
  lua_gettable(L,metatable_index);
  if( !lua_isnil(L,-1) ) {
    lua_pop(L,1);
    return -1;
  }
  lua_pop(L,1);

  /* Iterating over immediate bases */
  for(i=0;clss->bases[i];i++)
  {
    const swig_lua_class *base = clss->bases[i];
    SWIG_Lua_get_class_metatable(L, base->fqname);
    lua_pushvalue(L, key_index);
    lua_rawget(L, -2);
    if( !lua_isnil(L,-1) ) {
      lua_pushvalue(L, key_index);

      /* Add proxy function */
      lua_pushvalue(L, key_index); /* first closure value is function name */
      lua_pushlightuserdata(L, clss); /* second closure value is swig_lua_class structure */
      lua_pushcclosure(L, SWIG_Lua_resolve_metamethod, 2);

      lua_rawset(L, metatable_index);
      success = 1;
    }
    lua_pop(L,1); /* remove function or nil */
    lua_pop(L,1); /* remove base class metatable */

    if( success )
      break;
  }

  return success;
}

SWIGINTERN void SWIG_Lua_add_class_user_metamethods(lua_State *L, swig_lua_class *clss)
{
  int metatable_index;
  int metamethods_info_index;
  int tostring_undefined;
  int eq_undefined = 0;

  SWIG_Lua_get_class_metatable(L, clss->fqname);
  metatable_index = lua_gettop(L);
  SWIG_Lua_get_inheritable_metamethods(L);
  assert(lua_istable(L,-1));
  metamethods_info_index = lua_gettop(L);
  lua_pushnil(L); /* first key */
  while(lua_next(L, metamethods_info_index) != 0 ) {
    /* key at index -2, value at index -1 */
    const int is_inheritable = lua_toboolean(L,-2);
    lua_pop(L,1); /* remove value - we don't need it anymore */

    if(is_inheritable) { /* if metamethod is inheritable */
      SWIG_Lua_add_class_user_metamethod(L,clss,metatable_index);
    }
  }

  lua_pop(L,1); /* remove inheritable metatmethods table */

  /* Special handling for __tostring method */
  lua_pushstring(L, "__tostring");
  lua_pushvalue(L,-1);
  lua_rawget(L,metatable_index);
  tostring_undefined = lua_isnil(L,-1);
  lua_pop(L,1);
  if( tostring_undefined ) {
    lua_pushcfunction(L, SWIG_Lua_class_tostring);
    lua_rawset(L, metatable_index);
  } else {
    lua_pop(L,1); /* remove copy of the key */
  }

  /* Special handling for __eq method */
  lua_pushstring(L, "__eq");
  lua_pushvalue(L,-1);
  lua_rawget(L,metatable_index);
  eq_undefined = lua_isnil(L,-1);
  lua_pop(L,1);
  if( eq_undefined ) {
    lua_pushcfunction(L, SWIG_Lua_class_equal);
    lua_rawset(L, metatable_index);
  } else {
    lua_pop(L,1); /* remove copy of the key */
  }
  /* Warning: __index and __newindex are SWIG-defined. For user-defined operator[]
   * a __getitem/__setitem method should be defined
   */
  lua_pop(L,1); /* pop class metatable */
}

/* Register class static methods,attributes etc as well as constructor proxy */
SWIGINTERN void SWIG_Lua_class_register_static(lua_State *L, swig_lua_class *clss)
{
  const int SWIGUNUSED begin = lua_gettop(L);
  lua_checkstack(L,5); /* just in case */
  assert(lua_istable(L,-1));  /* just in case */
  assert(strcmp(clss->name, clss->cls_static->name) == 0); /* in class those 2 must be equal */

  SWIG_Lua_namespace_register(L,clss->cls_static, 1);

  assert(lua_istable(L,-1)); /* just in case */

  /*  add its constructor to module with the name of the class
  so you can do MyClass(...) as well as new_MyClass(...)
  BUT only if a constructor is defined
  (this overcomes the problem of pure virtual classes without constructors)*/
  if (clss->constructor)
  {
    lua_getmetatable(L,-1);
    assert(lua_istable(L,-1)); /* just in case */
    SWIG_Lua_add_function(L,"__call", clss->constructor);
    lua_pop(L,1);
  }

  assert(lua_istable(L,-1)); /* just in case */
  SWIG_Lua_add_class_static_details(L, clss);

  /* clear stack */
  lua_pop(L,1);
  assert( lua_gettop(L) == begin );
}

/* Performs the instance (non-static) class registration process. Metatable for class is created
 * and added to the class registry.
 */
SWIGINTERN void  SWIG_Lua_class_register_instance(lua_State *L,swig_lua_class *clss)
{
  const int SWIGUNUSED begin = lua_gettop(L);
  int i;
  /* if name already there (class is already registered) then do nothing */
  SWIG_Lua_get_class_registry(L);  /* get the registry */
  lua_pushstring(L,clss->fqname);  /* get the name */
  lua_rawget(L,-2);
  if(!lua_isnil(L,-1)) {
    lua_pop(L,2);
    assert(lua_gettop(L)==begin);
    return;
  }
  lua_pop(L,2); /* tidy stack */
  /* Recursively initialize all bases */
  for(i=0;clss->bases[i];i++)
  {
    SWIG_Lua_class_register_instance(L,clss->bases[i]);
  }
  /* Again, get registry and push name */
  SWIG_Lua_get_class_registry(L);  /* get the registry */
  lua_pushstring(L,clss->fqname);  /* get the name */
  lua_newtable(L);    /* create the metatable */
#if defined(SWIG_LUA_SQUASH_BASES) && (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA)
  /* If squashing is requested, then merges all bases metatable into this one.
   * It would get us all special methods: __getitem, __add etc.
   * This would set .fn, .type, and other .xxx incorrectly, but we will overwrite it right away
   */
  {
    int new_metatable_index = lua_absindex(L,-1);
    for(i=0;clss->bases[i];i++)
    {
      int base_metatable;
      SWIG_Lua_get_class_metatable(L,clss->bases[i]->fqname);
      base_metatable = lua_absindex(L,-1);
      SWIG_Lua_merge_tables_by_index(L,new_metatable_index, base_metatable);
      lua_pop(L,1);
    }
  }
  /* And now we will overwrite all incorrectly set data */
#endif
  /* add string of class name called ".type" */
  lua_pushstring(L,".type");
  lua_pushstring(L,clss->fqname);
  lua_rawset(L,-3);
  /* add a table called bases */
  lua_pushstring(L,".bases");
  lua_newtable(L);
  lua_rawset(L,-3);
  /* add a table called ".get" */
  lua_pushstring(L,".get");
  lua_newtable(L);
  lua_rawset(L,-3);
  /* add a table called ".set" */
  lua_pushstring(L,".set");
  lua_newtable(L);
  lua_rawset(L,-3);
  /* add a table called ".fn" */
  lua_pushstring(L,".fn");
  lua_newtable(L);
  /* add manual disown method */
  SWIG_Lua_add_function(L,"__disown",SWIG_Lua_class_disown);
  lua_rawset(L,-3);
  /* add accessor fns for using the .get,.set&.fn */
  SWIG_Lua_add_function(L,"__index",SWIG_Lua_class_get);
  SWIG_Lua_add_function(L,"__newindex",SWIG_Lua_class_set);
  SWIG_Lua_add_function(L,"__gc",SWIG_Lua_class_destruct);
  /* add it */
  lua_rawset(L,-3);  /* metatable into registry */
  lua_pop(L,1);      /* tidy stack (remove registry) */
  assert(lua_gettop(L) == begin);

#if defined(SWIG_LUA_SQUASH_BASES) && (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA)
  /* Now merge all symbols from .fn, .set, .get etc from bases to our tables */
  SWIG_Lua_class_squash_bases(L,clss);
#endif
  SWIG_Lua_get_class_metatable(L,clss->fqname);
  SWIG_Lua_add_class_instance_details(L,clss);  /* recursive adding of details (atts & ops) */
  lua_pop(L,1);      /* tidy stack (remove class metatable) */
  assert( lua_gettop(L) == begin );
}

SWIGINTERN void  SWIG_Lua_class_register(lua_State *L,swig_lua_class *clss)
{
  int SWIGUNUSED begin;
  assert(lua_istable(L,-1)); /* This is a table (module or namespace) where classes will be added */
  SWIG_Lua_class_register_instance(L,clss);
  SWIG_Lua_class_register_static(L,clss);

  /* Add links from static part to instance part and vice versa */
  /* [SWIG registry]                                   [Module]
   *    "MyClass" ----> [MyClass metatable] <=====     "MyClass" -+> [static part]
   *                     ".get" ----> ...        |                |     getmetatable()----|
   *                     ".set" ----> ...        |                |                       |
   *                     ".static" --------------)----------------/           [static part metatable]
   *                                             |                                ".get" --> ...
   *                                             |                                ".set" --> ....
   *                                             |=============================== ".instance"
   */
  begin = lua_gettop(L);
  lua_pushstring(L,clss->cls_static->name);
  lua_rawget(L,-2); /* get class static table */
  assert(lua_istable(L,-1));
  lua_getmetatable(L,-1);
  assert(lua_istable(L,-1)); /* get class static metatable */
  lua_pushstring(L,".instance"); /* prepare key */

  SWIG_Lua_get_class_metatable(L,clss->fqname); /* get class metatable */
  assert(lua_istable(L,-1));
  lua_pushstring(L,".static"); /* prepare key */
  lua_pushvalue(L, -4); /* push static class TABLE */
  assert(lua_istable(L,-1));
  lua_rawset(L,-3); /* assign static class table(!NOT metatable) as ".static" member of class metatable */
  lua_rawset(L,-3); /* assign class metatable as ".instance" member of class static METATABLE */
  lua_pop(L,2);
  assert(lua_gettop(L) == begin);
}
#endif /* SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA */

#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)
SWIGINTERN void SWIG_Lua_elua_class_register_instance(lua_State *L, swig_lua_class *clss)
{
  const int SWIGUNUSED begin = lua_gettop(L);
  int i;
  /* if name already there (class is already registered) then do nothing */
  SWIG_Lua_get_class_registry(L);  /* get the registry */
  lua_pushstring(L,clss->fqname);  /* get the name */
  lua_rawget(L,-2);
  if(!lua_isnil(L,-1)) {
    lua_pop(L,2);
    assert(lua_gettop(L)==begin);
    return;
  }
  lua_pop(L,2); /* tidy stack */
  /* Recursively initialize all bases */
  for(i=0;clss->bases[i];i++)
  {
    SWIG_Lua_elua_class_register_instance(L,clss->bases[i]);
  }
  /* Again, get registry and push name */
  SWIG_Lua_get_class_registry(L);  /* get the registry */
  lua_pushstring(L,clss->fqname);  /* get the name */
  assert(clss->metatable);
  lua_pushrotable(L, (void*)(clss->metatable));    /* create the metatable */
  lua_rawset(L,-3);
  lua_pop(L,1);
  assert(lua_gettop(L) == begin);
}
#endif /* elua && eluac */

/* -----------------------------------------------------------------------------
 * Class/structure conversion fns
 * ----------------------------------------------------------------------------- */

/* helper to add metatable to new lua object */
SWIGINTERN void SWIG_Lua_AddMetatable(lua_State *L,swig_type_info *type)
{
  if (type->clientdata)  /* there is clientdata: so add the metatable */
  {
    SWIG_Lua_get_class_metatable(L,((swig_lua_class*)(type->clientdata))->fqname);
    if (lua_istable(L,-1))
    {
      lua_setmetatable(L,-2);
    }
    else
    {
      lua_pop(L,1);
    }
  }
}

/* pushes a new object into the lua stack */
SWIGRUNTIME void SWIG_Lua_NewPointerObj(lua_State *L,void *ptr,swig_type_info *type, int own)
{
  swig_lua_userdata *usr;
  if (!ptr){
    lua_pushnil(L);
    return;
  }
  usr=(swig_lua_userdata*)lua_newuserdata(L,sizeof(swig_lua_userdata));  /* get data */
  usr->ptr=ptr;  /* set the ptr */
  usr->type=type;
  usr->own=own;
#if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)
  SWIG_Lua_AddMetatable(L,type); /* add metatable */
#endif
}

/* takes a object from the lua stack & converts it into an object of the correct type
 (if possible) */
SWIGRUNTIME int  SWIG_Lua_ConvertPtr(lua_State *L,int index,void **ptr,swig_type_info *type,int flags)
{
  swig_lua_userdata *usr;
  swig_cast_info *cast;
  /* special case: lua nil => NULL pointer */
  if (lua_isnil(L,index))
  {
    *ptr=0;
    return (flags & SWIG_POINTER_NO_NULL) ? SWIG_NullReferenceError : SWIG_OK;
  }
  usr=(swig_lua_userdata*)lua_touserdata(L,index);  /* get data */
  if (usr)
  {
    if (flags & SWIG_POINTER_DISOWN) /* must disown the object */
    {
        usr->own=0;
    }
    if (!type)            /* special cast void*, no casting fn */
    {
      *ptr=usr->ptr;
      return SWIG_OK; /* ok */
    }
    cast=SWIG_TypeCheckStruct(usr->type,type); /* performs normal type checking */
    if (cast)
    {
      int newmemory = 0;
      *ptr=SWIG_TypeCast(cast,usr->ptr,&newmemory);
      assert(!newmemory); /* newmemory handling not yet implemented */
      return SWIG_OK;  /* ok */
    }
  }
  return SWIG_ERROR;  /* error */
}

SWIGRUNTIME void* SWIG_Lua_MustGetPtr(lua_State *L,int index,swig_type_info *type,int flags,
       int argnum,const char *func_name){
  void *result;
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,index,&result,type,flags))){
    luaL_error (L,"Error in %s, expected a %s at argument number %d\n",
		func_name,(type && type->str)?type->str:"void*",argnum);
  }
  return result;
}

/* pushes a packed userdata. user for member fn pointers only */
SWIGRUNTIME void SWIG_Lua_NewPackedObj(lua_State *L,void *ptr,size_t size,swig_type_info *type)
{
  swig_lua_rawdata *raw;
  assert(ptr); /* not acceptable to pass in a NULL value */
  raw=(swig_lua_rawdata*)lua_newuserdata(L,sizeof(swig_lua_rawdata)-1+size);  /* alloc data */
  raw->type=type;
  raw->own=0;
  memcpy(raw->data,ptr,size); /* copy the data */
  SWIG_Lua_AddMetatable(L,type); /* add metatable */
}

/* converts a packed userdata. user for member fn pointers only */
SWIGRUNTIME int  SWIG_Lua_ConvertPacked(lua_State *L,int index,void *ptr,size_t size,swig_type_info *type)
{
  swig_lua_rawdata *raw;
  raw=(swig_lua_rawdata*)lua_touserdata(L,index);  /* get data */
  if (!raw) return SWIG_ERROR;  /* error */
  if (type==0 || type==raw->type) /* void* or identical type */
  {
    memcpy(ptr,raw->data,size); /* copy it */
    return SWIG_OK; /* ok */
  }
  return SWIG_ERROR;  /* error */
}

/* a function to get the typestring of a piece of data */
SWIGRUNTIME const char *SWIG_Lua_typename(lua_State *L, int tp)
{
  swig_lua_userdata *usr;
  if (lua_isuserdata(L,tp))
  {
    usr=(swig_lua_userdata*)lua_touserdata(L,tp);  /* get data */
    if (usr && usr->type && usr->type->str)
      return usr->type->str;
    return "userdata (unknown type)";
  }
  return lua_typename(L,lua_type(L,tp));
}

/* lua callable function to get the userdata's type */
SWIGRUNTIME int SWIG_Lua_type(lua_State *L)
{
  lua_pushstring(L,SWIG_Lua_typename(L,1));
  return 1;
}

/* -----------------------------------------------------------------------------
 * global variable support code: class/struct typemap functions
 * ----------------------------------------------------------------------------- */

#if ((SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUA) && (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC))
/* Install Constants */
SWIGINTERN void
SWIG_Lua_InstallConstants(lua_State *L, swig_lua_const_info constants[]) {
  int i;
  for (i = 0; constants[i].type; i++) {
    switch(constants[i].type) {
    case SWIG_LUA_INT:
      lua_pushstring(L,constants[i].name);
      lua_pushinteger(L,(lua_Integer)constants[i].lvalue);
      lua_rawset(L,-3);
      break;
    case SWIG_LUA_FLOAT:
      lua_pushstring(L,constants[i].name);
      lua_pushnumber(L,(lua_Number)constants[i].dvalue);
      lua_rawset(L,-3);
      break;
    case SWIG_LUA_CHAR:
      lua_pushstring(L,constants[i].name);
      {
        char c = (char)constants[i].lvalue;
        lua_pushlstring(L,&c,1);
      }
      lua_rawset(L,-3);
      break;
    case SWIG_LUA_STRING:
      lua_pushstring(L,constants[i].name);
      lua_pushstring(L,(char *) constants[i].pvalue);
      lua_rawset(L,-3);
      break;
    case SWIG_LUA_POINTER:
      lua_pushstring(L,constants[i].name);
      SWIG_NewPointerObj(L,constants[i].pvalue, *(constants[i]).ptype,0);
      lua_rawset(L,-3);
      break;
    case SWIG_LUA_BINARY:
      lua_pushstring(L,constants[i].name);
      SWIG_NewMemberObj(L,constants[i].pvalue,constants[i].lvalue,*(constants[i]).ptype);
      lua_rawset(L,-3);
      break;
    default:
      break;
    }
  }
}
#endif

/* -----------------------------------------------------------------------------
 * executing lua code from within the wrapper
 * ----------------------------------------------------------------------------- */

#ifndef SWIG_DOSTRING_FAIL /* Allows redefining of error function */
#define SWIG_DOSTRING_FAIL(S) fprintf(stderr,"%s\n",S)
#endif
/* Executes a C string in Lua which is a really simple way of calling lua from C
Unfortunately lua keeps changing its APIs, so we need a conditional compile
In lua 5.0.X it's lua_dostring()
In lua 5.1.X it's luaL_dostring()
*/
SWIGINTERN int
SWIG_Lua_dostring(lua_State *L, const char *str) {
  int ok,top;
  if (str==0 || str[0]==0) return 0; /* nothing to do */
  top=lua_gettop(L); /* save stack */
#if (defined(LUA_VERSION_NUM) && (LUA_VERSION_NUM>=501))
  ok=luaL_dostring(L,str);	/* looks like this is lua 5.1.X or later, good */
#else
  ok=lua_dostring(L,str);	/* might be lua 5.0.x, using lua_dostring */
#endif
  if (ok!=0) {
    SWIG_DOSTRING_FAIL(lua_tostring(L,-1));
  }
  lua_settop(L,top); /* restore the stack */
  return ok;
}

#ifdef __cplusplus
}
#endif

/* ------------------------------ end luarun.swg  ------------------------------ */

/*  Errors in SWIG */
#define  SWIG_UnknownError    	   -1
#define  SWIG_IOError        	   -2
#define  SWIG_RuntimeError   	   -3
#define  SWIG_IndexError     	   -4
#define  SWIG_TypeError      	   -5
#define  SWIG_DivisionByZero 	   -6
#define  SWIG_OverflowError  	   -7
#define  SWIG_SyntaxError    	   -8
#define  SWIG_ValueError     	   -9
#define  SWIG_SystemError    	   -10
#define  SWIG_AttributeError 	   -11
#define  SWIG_MemoryError    	   -12
#define  SWIG_NullReferenceError   -13




/* -------- TYPES TABLE (BEGIN) -------- */

#define SWIGTYPE_p_float swig_types[0]
#define SWIGTYPE_p_glm__mat3 swig_types[1]
#define SWIGTYPE_p_glm__mat4 swig_types[2]
#define SWIGTYPE_p_glm__quat swig_types[3]
#define SWIGTYPE_p_glm__vec2 swig_types[4]
#define SWIGTYPE_p_glm__vec3 swig_types[5]
#define SWIGTYPE_p_glm__vec4 swig_types[6]
#define SWIGTYPE_p_int swig_types[7]
#define SWIGTYPE_p_std__string swig_types[8]
static swig_type_info *swig_types[10];
static swig_module_info swig_module = {swig_types, 9, 0, 0, 0, 0};
#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)

/* -------- TYPES TABLE (END) -------- */

#define SWIG_name      "glm"
#define SWIG_init      luaopen_glm
#define SWIG_init_user luaopen_glm_user

#define SWIG_LUACODE   luaopen_glm_luacode

namespace swig {
typedef struct{} LANGUAGE_OBJ;
}


#include <stdexcept>
#include <string>
#include <sstream>

// these included in math/ofVectorMath.h
// we declare some things manually, so some includes are commented out
#include "glm/vec2.hpp"
#include "glm/vec3.hpp"
#include "glm/vec4.hpp"
#include "glm/mat3x3.hpp"
#include "glm/mat4x4.hpp"
#include "glm/geometric.hpp"
#include "glm/common.hpp"
#include "glm/trigonometric.hpp"
#include "glm/exponential.hpp"
//#include "glm/vector_relational.hpp"
//#include "glm/ext.hpp"

//#include "glm/gtc/constants.hpp"
#include "glm/gtc/matrix_transform.hpp"
#include "glm/gtc/matrix_inverse.hpp"
//#include "glm/gtc/quaternion.hpp"
#include "glm/gtc/epsilon.hpp"
#include "glm/gtx/norm.hpp"
#include "glm/gtx/perpendicular.hpp"
#include "glm/gtx/quaternion.hpp"
#include "glm/gtx/rotate_vector.hpp"
#include "glm/gtx/spline.hpp"
#include "glm/gtx/transform.hpp"
#include "glm/gtx/vector_angle.hpp"
//#include "glm/gtx/scalar_multiplication.hpp"
//#include <glm/gtc/type_ptr.hpp>

// extras included via glm/ext.h
#include <glm/gtc/matrix_access.hpp>
#include <glm/ext/matrix_clip_space.hpp>
#include <glm/ext/matrix_projection.hpp>
#include <glm/gtx/compatibility.hpp>
#include <glm/gtx/fast_square_root.hpp>


#include <typeinfo>
#include <stdexcept>


#define SWIG_exception(a,b)\
{ lua_pushfstring(L,"%s:%s",#a,b);SWIG_fail; }


#include <typeinfo>
#include <stdexcept>


#include <string>


SWIGINTERN int SWIG_lua_isnilstring(lua_State *L, int idx) {
  int ret = lua_isstring(L, idx);
  if (!ret)
   ret = lua_isnil(L, idx);
  return ret;
}

SWIGINTERN float glm_vec2___getitem__(glm::vec2 *self,int i){
        
            if(i < 1 || i > self->length()) {
                throw std::out_of_range("in glm::vec2::__getitem__()");
            }
            return (*self)[i-1];
        





    }
SWIGINTERN void glm_vec2___setitem__(glm::vec2 *self,int i,float f){
        
            if(i < 1 || i > self->length()) {
                throw std::out_of_range("in glm::vec2::__setitem__()");
            }
            (*self)[i-1] = f;
        





    }
SWIGINTERN std::string glm_vec2___tostring(glm::vec2 *self){
        std::stringstream str;
        for(glm::length_t i = 0; i < self->length(); ++i) {
            str << (*self)[i];
            if(i + 1 != self->length()) {
                str << " ";
            }
        }
        return str.str();
    }
SWIGINTERN glm::vec2 glm_vec2_operator_Sa___SWIG_0(glm::vec2 *self,glm::vec2 const &v){return (*self) + v;}
SWIGINTERN glm::vec2 glm_vec2_operator_Sa___SWIG_1(glm::vec2 *self,float scalar){return (*self) + scalar;}
SWIGINTERN glm::vec2 glm_vec2_operator_Ss___SWIG_0(glm::vec2 *self,glm::vec2 const &v){return (*self) - v;}
SWIGINTERN glm::vec2 glm_vec2_operator_Ss___SWIG_1(glm::vec2 *self,float scalar){return (*self) - scalar;}
SWIGINTERN glm::vec2 glm_vec2_operator_Sm___SWIG_0(glm::vec2 *self,glm::vec2 const &v){return (*self) * v;}
SWIGINTERN glm::vec2 glm_vec2_operator_Sm___SWIG_1(glm::vec2 *self,float scalar){return (*self) * scalar;}
SWIGINTERN glm::vec2 glm_vec2_operator_Sd___SWIG_0(glm::vec2 *self,glm::vec2 const &v){return (*self) / v;}
SWIGINTERN glm::vec2 glm_vec2_operator_Sd___SWIG_1(glm::vec2 *self,float scalar){return (*self) / scalar;}
SWIGINTERN bool glm_vec2_operator_Se__Se_(glm::vec2 *self,glm::vec2 const &v){return (*self) == v;}
SWIGINTERN float glm_vec3___getitem__(glm::vec3 *self,int i){
        
            if(i < 1 || i > self->length()) {
                throw std::out_of_range("in glm::vec3::__getitem__()");
            }
            return (*self)[i-1];
        





    }
SWIGINTERN void glm_vec3___setitem__(glm::vec3 *self,int i,float f){
        
            if(i < 1 || i > self->length()) {
                throw std::out_of_range("in glm::vec3::__setitem__()");
            }
            (*self)[i-1] = f;
        





    }
SWIGINTERN std::string glm_vec3___tostring(glm::vec3 *self){
        std::stringstream str;
        for(glm::length_t i = 0; i < self->length(); ++i) {
            str << (*self)[i];
            if(i + 1 != self->length()) {
                str << " ";
            }
        }
        return str.str();
    }
SWIGINTERN glm::vec3 glm_vec3_operator_Sa___SWIG_0(glm::vec3 *self,glm::vec3 const &v){return (*self) + v;}
SWIGINTERN glm::vec3 glm_vec3_operator_Sa___SWIG_1(glm::vec3 *self,float scalar){return (*self) + scalar;}
SWIGINTERN glm::vec3 glm_vec3_operator_Ss___SWIG_0(glm::vec3 *self,glm::vec3 const &v){return (*self) - v;}
SWIGINTERN glm::vec3 glm_vec3_operator_Ss___SWIG_1(glm::vec3 *self,float scalar){return (*self) - scalar;}
SWIGINTERN glm::vec3 glm_vec3_operator_Sm___SWIG_0(glm::vec3 *self,glm::vec3 const &v){return (*self) * v;}
SWIGINTERN glm::vec3 glm_vec3_operator_Sm___SWIG_1(glm::vec3 *self,float scalar){return (*self) * scalar;}
SWIGINTERN glm::vec3 glm_vec3_operator_Sd___SWIG_0(glm::vec3 *self,glm::vec3 const &v){return (*self) / v;}
SWIGINTERN glm::vec3 glm_vec3_operator_Sd___SWIG_1(glm::vec3 *self,float scalar){return (*self) / scalar;}
SWIGINTERN bool glm_vec3_operator_Se__Se_(glm::vec3 *self,glm::vec3 const &v){return (*self) == v;}
SWIGINTERN float glm_vec4___getitem__(glm::vec4 *self,int i){
        
            if(i < 1 || i > self->length()) {
                throw std::out_of_range("in glm::vec4::__getitem__()");
            }
            return (*self)[i-1];
        





    }
SWIGINTERN void glm_vec4___setitem__(glm::vec4 *self,int i,float f){
        
            if(i < 1 || i > self->length()) {
                throw std::out_of_range("in glm::vec4::__setitem__()");
            }
            (*self)[i-1] = f;
        





    }
SWIGINTERN std::string glm_vec4___tostring(glm::vec4 *self){
        std::stringstream str;
        for(glm::length_t i = 0; i < self->length(); ++i) {
            str << (*self)[i];
            if(i + 1 != self->length()) {
                str << " ";
            }
        }
        return str.str();
    }
SWIGINTERN glm::vec4 glm_vec4_operator_Sa___SWIG_0(glm::vec4 *self,glm::vec4 const &v){return (*self) + v;}
SWIGINTERN glm::vec4 glm_vec4_operator_Sa___SWIG_1(glm::vec4 *self,float scalar){return (*self) + scalar;}
SWIGINTERN glm::vec4 glm_vec4_operator_Ss___SWIG_0(glm::vec4 *self,glm::vec4 const &v){return (*self) - v;}
SWIGINTERN glm::vec4 glm_vec4_operator_Ss___SWIG_1(glm::vec4 *self,float scalar){return (*self) - scalar;}
SWIGINTERN glm::vec4 glm_vec4_operator_Sm___SWIG_0(glm::vec4 *self,glm::vec4 const &v){return (*self) * v;}
SWIGINTERN glm::vec4 glm_vec4_operator_Sm___SWIG_1(glm::vec4 *self,float scalar){return (*self) * scalar;}
SWIGINTERN glm::vec4 glm_vec4_operator_Sd___SWIG_0(glm::vec4 *self,glm::vec4 const &v){return (*self) / v;}
SWIGINTERN glm::vec4 glm_vec4_operator_Sd___SWIG_1(glm::vec4 *self,float scalar){return (*self) / scalar;}
SWIGINTERN bool glm_vec4_operator_Se__Se_(glm::vec4 *self,glm::vec4 const &v){return (*self) == v;}
SWIGINTERN glm::vec3 glm_mat3___getitem__(glm::mat3 *self,int i){
        
            if(i < 1 || i > self->length()) {
                throw std::out_of_range("in glm::mat3::__getitem__()");
            }
            return (*self)[i-1];
        





    }
SWIGINTERN void glm_mat3___setitem__(glm::mat3 *self,int i,glm::vec3 v){
        
            if(i < 1 || i > self->length()) {
                throw std::out_of_range("in glm::mat3::__setitem__()");
            }
            (*self)[i-1] = v;
        





    }
SWIGINTERN std::string glm_mat3___tostring(glm::mat3 *self){
        std::stringstream str;
        const glm::length_t width = self->length();
        const glm::length_t height = (*self)[0].length();
        for(glm::length_t row = 0; row < height; ++row) {
            for(glm::length_t col = 0; col < width; ++col) {
                str << (*self)[col][row];
                if(col + 1 != width) {
                    str << "\t";
                }
            }
            if(row + 1 != height) {
                str << "\n";
            }
        }
        return str.str();
    }
SWIGINTERN glm::mat3 glm_mat3_operator_Sa___SWIG_0(glm::mat3 *self,float scalar){return (*self) + scalar;}
SWIGINTERN glm::mat3 glm_mat3_operator_Sa___SWIG_1(glm::mat3 *self,glm::mat3 const &m){return (*self) + m;}
SWIGINTERN glm::mat3 glm_mat3_operator_Ss___SWIG_0(glm::mat3 *self,float scalar){return (*self) - scalar;}
SWIGINTERN glm::mat3 glm_mat3_operator_Ss___SWIG_1(glm::mat3 *self,glm::mat3 const &m){return (*self) - m;}
SWIGINTERN glm::mat3 glm_mat3_operator_Sm___SWIG_0(glm::mat3 *self,float scalar){return (*self) * scalar;}
SWIGINTERN glm::mat3 glm_mat3_operator_Sm___SWIG_1(glm::mat3 *self,glm::mat3 const &m){return (*self) * m;}
SWIGINTERN glm::vec3 glm_mat3_operator_Sm___SWIG_2(glm::mat3 *self,glm::vec3 const &v){return (*self) * v;}
SWIGINTERN glm::mat3 glm_mat3_operator_Sd___SWIG_0(glm::mat3 *self,float scalar){return (*self) / scalar;}
SWIGINTERN glm::mat3 glm_mat3_operator_Sd___SWIG_1(glm::mat3 *self,glm::mat3 const &m){return (*self) / m;}
SWIGINTERN glm::vec3 glm_mat3_operator_Sd___SWIG_2(glm::mat3 *self,glm::vec3 const &v){return (*self) / v;}
SWIGINTERN bool glm_mat3_operator_Se__Se_(glm::mat3 *self,glm::mat3 const &m){return (*self) == m;}
SWIGINTERN glm::vec4 glm_mat4___getitem__(glm::mat4 *self,int i){
        
            if(i < 1 || i > self->length()) {
                throw std::out_of_range("in glm::mat4::__getitem__()");
            }
            return (*self)[i-1];
        





    }
SWIGINTERN void glm_mat4___setitem__(glm::mat4 *self,int i,glm::vec4 v){
        
            if(i < 1 || i > self->length()) {
                throw std::out_of_range("in glm::mat4::__setitem__()");
            }
            (*self)[i-1] = v;
        





    }
SWIGINTERN std::string glm_mat4___tostring(glm::mat4 *self){
        std::stringstream str;
        const glm::length_t width = self->length();
        const glm::length_t height = (*self)[0].length();
        for(glm::length_t row = 0; row < height; ++row) {
            for(glm::length_t col = 0; col < width; ++col) {
                str << (*self)[col][row];
                if(col + 1 != width) {
                    str << "\t";
                }
            }
            if(row + 1 != height) {
                str << "\n";
            }
        }
        return str.str();
    }
SWIGINTERN glm::mat4 glm_mat4_operator_Sa___SWIG_0(glm::mat4 *self,float scalar){return (*self) + scalar;}
SWIGINTERN glm::mat4 glm_mat4_operator_Sa___SWIG_1(glm::mat4 *self,glm::mat4 const &m){return (*self) + m;}
SWIGINTERN glm::mat4 glm_mat4_operator_Ss___SWIG_0(glm::mat4 *self,float scalar){return (*self) - scalar;}
SWIGINTERN glm::mat4 glm_mat4_operator_Ss___SWIG_1(glm::mat4 *self,glm::mat4 const &m){return (*self) - m;}
SWIGINTERN glm::mat4 glm_mat4_operator_Sm___SWIG_0(glm::mat4 *self,float scalar){return (*self) * scalar;}
SWIGINTERN glm::mat4 glm_mat4_operator_Sm___SWIG_1(glm::mat4 *self,glm::mat4 const &m){return (*self) * m;}
SWIGINTERN glm::vec4 glm_mat4_operator_Sm___SWIG_2(glm::mat4 *self,glm::vec4 const &v){return (*self) * v;}
SWIGINTERN glm::mat4 glm_mat4_operator_Sd___SWIG_0(glm::mat4 *self,float scalar){return (*self) / scalar;}
SWIGINTERN glm::mat4 glm_mat4_operator_Sd___SWIG_1(glm::mat4 *self,glm::mat4 const &m){return (*self) / m;}
SWIGINTERN glm::vec4 glm_mat4_operator_Sd___SWIG_2(glm::mat4 *self,glm::vec4 const &v){return (*self) / v;}
SWIGINTERN bool glm_mat4_operator_Se__Se_(glm::mat4 *self,glm::mat4 const &m){return (*self) == m;}
SWIGINTERN float glm_quat___getitem__(glm::quat *self,int i){
        
            if(i < 1 || i > self->length()) {
                throw std::out_of_range("in glm::quat::__getitem__()");
            }
            return (*self)[i-1];
        





    }
SWIGINTERN void glm_quat___setitem__(glm::quat *self,int i,float f){
        
            if(i < 1 || i > self->length()) {
                throw std::out_of_range("in glm::quat::__setitem__()");
            }
            (*self)[i-1] = f;
        





    }
SWIGINTERN std::string glm_quat___tostring(glm::quat *self){
        std::stringstream str;
        for(glm::length_t i = 0; i < self->length(); ++i) {
            str << (*self)[i];   
            if(i + 1 != self->length()) {
                str << " ";
            }
        }
        return str.str();
    }
SWIGINTERN glm::quat glm_quat_operator_Sa_(glm::quat *self,glm::quat const &q){return (*self) + q;}
SWIGINTERN glm::quat glm_quat_operator_Sm___SWIG_0(glm::quat *self,glm::quat const &q){return (*self) * q;}
SWIGINTERN glm::vec3 glm_quat_operator_Sm___SWIG_1(glm::quat *self,glm::vec3 const &v){return (*self) * v;}
SWIGINTERN glm::vec4 glm_quat_operator_Sm___SWIG_2(glm::quat *self,glm::vec4 const &v){return (*self) * v;}
SWIGINTERN glm::quat glm_quat_operator_Sm___SWIG_3(glm::quat *self,float const &s){return (*self) * s;}
SWIGINTERN glm::quat glm_quat_operator_Sd_(glm::quat *self,float const &s){return (*self) / s;}
SWIGINTERN bool glm_quat_operator_Se__Se_(glm::quat *self,glm::quat const &q){return (*self) == q;}
#ifdef __cplusplus
extern "C" {
#endif
static int _wrap_new_string__SWIG_0(lua_State* L) { int SWIG_arg = 0; std::string *result = 0 ;
  SWIG_check_num_args("std::string::string",0,0) result = (std::string *)new std::string();
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_std__string,1); SWIG_arg++;  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L);
  return SWIG_arg; }
static int _wrap_new_string__SWIG_1(lua_State* L) { int SWIG_arg = 0; char *arg1 = (char *) 0 ; std::string *result = 0 ;
  SWIG_check_num_args("std::string::string",1,1)
  if(!SWIG_lua_isnilstring(L,1)) SWIG_fail_arg("std::string::string",1,"char const *"); arg1 = (char *)lua_tostring(L, 1);
  result = (std::string *)new std::string((char const *)arg1);
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_std__string,1); SWIG_arg++;  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L);
  return SWIG_arg; }
static int _wrap_new_string(lua_State* L) { int argc; int argv[2]={ 1,2} ; argc = lua_gettop(L); if (argc == 0) {
    return _wrap_new_string__SWIG_0(L);}  if (argc == 1) { return _wrap_new_string__SWIG_1(L);} 
  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'new_string'\n" "  Possible C/C++ prototypes are:\n"
  "    std::string::string()\n" "    std::string::string(char const *)\n"); lua_error(L);return 0; }
static int _wrap_string_size(lua_State* L) { int SWIG_arg = 0; std::string *arg1 = (std::string *) 0 ; unsigned int result;
  SWIG_check_num_args("std::string::size",1,1)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("std::string::size",1,"std::string const *");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_std__string,0))){
    SWIG_fail_ptr("string_size",1,SWIGTYPE_p_std__string); }  result = (unsigned int)((std::string const *)arg1)->size();
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_string_length(lua_State* L) { int SWIG_arg = 0; std::string *arg1 = (std::string *) 0 ; unsigned int result;
  SWIG_check_num_args("std::string::length",1,1)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("std::string::length",1,"std::string const *");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_std__string,0))){
    SWIG_fail_ptr("string_length",1,SWIGTYPE_p_std__string); }  result = (unsigned int)((std::string const *)arg1)->length();
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_string_empty(lua_State* L) { int SWIG_arg = 0; std::string *arg1 = (std::string *) 0 ; bool result;
  SWIG_check_num_args("std::string::empty",1,1)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("std::string::empty",1,"std::string const *");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_std__string,0))){
    SWIG_fail_ptr("string_empty",1,SWIGTYPE_p_std__string); }  result = (bool)((std::string const *)arg1)->empty();
  lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_string_c_str(lua_State* L) { int SWIG_arg = 0; std::string *arg1 = (std::string *) 0 ; char *result = 0 ;
  SWIG_check_num_args("std::string::c_str",1,1)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("std::string::c_str",1,"std::string const *");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_std__string,0))){
    SWIG_fail_ptr("string_c_str",1,SWIGTYPE_p_std__string); }  result = (char *)((std::string const *)arg1)->c_str();
  lua_pushstring(L,(const char *)result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_string_data(lua_State* L) { int SWIG_arg = 0; std::string *arg1 = (std::string *) 0 ; char *result = 0 ;
  SWIG_check_num_args("std::string::data",1,1)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("std::string::data",1,"std::string const *");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_std__string,0))){
    SWIG_fail_ptr("string_data",1,SWIGTYPE_p_std__string); }  result = (char *)((std::string const *)arg1)->data();
  lua_pushstring(L,(const char *)result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_string_assign(lua_State* L) { int SWIG_arg = 0; std::string *arg1 = (std::string *) 0 ;
  char *arg2 = (char *) 0 ; SWIG_check_num_args("std::string::assign",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("std::string::assign",1,"std::string *");
  if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("std::string::assign",2,"char const *");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_std__string,0))){
    SWIG_fail_ptr("string_assign",1,SWIGTYPE_p_std__string); }  arg2 = (char *)lua_tostring(L, 2);
  (arg1)->assign((char const *)arg2); return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static void swig_delete_string(void *obj) {
std::string *arg1 = (std::string *) obj;
delete arg1;
}
static int _proxy__wrap_new_string(lua_State *L) {
    assert(lua_istable(L,1));
    lua_pushcfunction(L,_wrap_new_string);
    assert(!lua_isnil(L,-1));
    lua_replace(L,1); /* replace our table with real constructor */
    lua_call(L,lua_gettop(L)-1,1);
    return 1;
}
static swig_lua_attribute swig_string_attributes[] = {
    {0,0,0}
};
static swig_lua_method swig_string_methods[]= {
    { "size", _wrap_string_size},
    { "length", _wrap_string_length},
    { "empty", _wrap_string_empty},
    { "c_str", _wrap_string_c_str},
    { "data", _wrap_string_data},
    { "assign", _wrap_string_assign},
    {0,0}
};
static swig_lua_method swig_string_meta[] = {
    {0,0}
};

static swig_lua_attribute swig_string_Sf_SwigStatic_attributes[] = {
    {0,0,0}
};
static swig_lua_const_info swig_string_Sf_SwigStatic_constants[]= {
    {0,0,0,0,0,0}
};
static swig_lua_method swig_string_Sf_SwigStatic_methods[]= {
    {0,0}
};
static swig_lua_class* swig_string_Sf_SwigStatic_classes[]= {
    0
};

static swig_lua_namespace swig_string_Sf_SwigStatic = {
    "string",
    swig_string_Sf_SwigStatic_methods,
    swig_string_Sf_SwigStatic_attributes,
    swig_string_Sf_SwigStatic_constants,
    swig_string_Sf_SwigStatic_classes,
    0
};
static swig_lua_class *swig_string_bases[] = {0};
static const char *swig_string_base_names[] = {0};
static swig_lua_class _wrap_class_string = { "string", "string", &SWIGTYPE_p_std__string,_proxy__wrap_new_string, swig_delete_string, swig_string_methods, swig_string_attributes, &swig_string_Sf_SwigStatic, swig_string_meta, swig_string_bases, swig_string_base_names };

static int _wrap_vec2_x_set(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = (glm::vec2 *) 0 ; float arg2 ;
  SWIG_check_num_args("glm::vec2::x",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec2::x",1,"glm::vec2 *");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::vec2::x",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){
    SWIG_fail_ptr("vec2_x_set",1,SWIGTYPE_p_glm__vec2); }  arg2 = (float)lua_tonumber(L, 2); if (arg1) (arg1)->x = arg2;
  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_vec2_x_get(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = (glm::vec2 *) 0 ; float result;
  SWIG_check_num_args("glm::vec2::x",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec2::x",1,"glm::vec2 *");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){
    SWIG_fail_ptr("vec2_x_get",1,SWIGTYPE_p_glm__vec2); }  result = (float) ((arg1)->x);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_vec2_y_set(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = (glm::vec2 *) 0 ; float arg2 ;
  SWIG_check_num_args("glm::vec2::y",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec2::y",1,"glm::vec2 *");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::vec2::y",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){
    SWIG_fail_ptr("vec2_y_set",1,SWIGTYPE_p_glm__vec2); }  arg2 = (float)lua_tonumber(L, 2); if (arg1) (arg1)->y = arg2;
  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_vec2_y_get(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = (glm::vec2 *) 0 ; float result;
  SWIG_check_num_args("glm::vec2::y",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec2::y",1,"glm::vec2 *");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){
    SWIG_fail_ptr("vec2_y_get",1,SWIGTYPE_p_glm__vec2); }  result = (float) ((arg1)->y);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_vec2_length(lua_State* L) { int SWIG_arg = 0; glm::length_t result;
  SWIG_check_num_args("glm::vec2::length",0,0) result = (glm::length_t)glm::vec2::length();
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_new_vec2__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::vec2 *result = 0 ;
  SWIG_check_num_args("glm::vec2::vec2",0,0) result = (glm::vec2 *)new glm::vec2();
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_glm__vec2,1); SWIG_arg++;  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L);
  return SWIG_arg; }
static int _wrap_new_vec2__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 *result = 0 ;
  SWIG_check_num_args("glm::vec2::vec2",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::vec2::vec2",1,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("new_vec2",1,SWIGTYPE_p_glm__vec2); }
   result = (glm::vec2 *)new glm::vec2((glm::vec2 const &)*arg1);
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_glm__vec2,1); SWIG_arg++;  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L);
  return SWIG_arg; }
static int _wrap_new_vec2__SWIG_2(lua_State* L) { int SWIG_arg = 0; float arg1 ; glm::vec2 *result = 0 ;
  SWIG_check_num_args("glm::vec2::vec2",1,1) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::vec2::vec2",1,"float");
  arg1 = (float)lua_tonumber(L, 1); result = (glm::vec2 *)new glm::vec2(arg1);
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_glm__vec2,1); SWIG_arg++;  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L);
  return SWIG_arg; }
static int _wrap_new_vec2__SWIG_3(lua_State* L) { int SWIG_arg = 0; float arg1 ; float arg2 ; glm::vec2 *result = 0 ;
  SWIG_check_num_args("glm::vec2::vec2",2,2) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::vec2::vec2",1,"float");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::vec2::vec2",2,"float"); arg1 = (float)lua_tonumber(L, 1);
  arg2 = (float)lua_tonumber(L, 2); result = (glm::vec2 *)new glm::vec2(arg1,arg2);
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_glm__vec2,1); SWIG_arg++;  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L);
  return SWIG_arg; }
static int _wrap_new_vec2__SWIG_4(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec2 *result = 0 ;
  SWIG_check_num_args("glm::vec2::vec2",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::vec2::vec2",1,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("new_vec2",1,SWIGTYPE_p_glm__vec3); }
   result = (glm::vec2 *)new glm::vec2((glm::vec3 const &)*arg1);
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_glm__vec2,1); SWIG_arg++;  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L);
  return SWIG_arg; }
static int _wrap_new_vec2__SWIG_5(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec2 *result = 0 ;
  SWIG_check_num_args("glm::vec2::vec2",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::vec2::vec2",1,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("new_vec2",1,SWIGTYPE_p_glm__vec4); }
   result = (glm::vec2 *)new glm::vec2((glm::vec4 const &)*arg1);
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_glm__vec2,1); SWIG_arg++;  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L);
  return SWIG_arg; }
static int _wrap_new_vec2(lua_State* L) { int argc; int argv[3]={ 1,2,3} ; argc = lua_gettop(L); if (argc == 0) {
    return _wrap_new_vec2__SWIG_0(L);}  if (argc == 1) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_new_vec2__SWIG_1(L);}  check_2: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_new_vec2__SWIG_4(L);}  check_3: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_4; return _wrap_new_vec2__SWIG_5(L);}  check_4: if (argc == 1) {
    return _wrap_new_vec2__SWIG_2(L);}  if (argc == 2) { return _wrap_new_vec2__SWIG_3(L);} 
  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'new_vec2'\n" "  Possible C/C++ prototypes are:\n"
  "    glm::vec2::vec2()\n" "    glm::vec2::vec2(glm::vec2 const &)\n" "    glm::vec2::vec2(float)\n"
  "    glm::vec2::vec2(float,float)\n" "    glm::vec2::vec2(glm::vec3 const &)\n" "    glm::vec2::vec2(glm::vec4 const &)\n");
  lua_error(L);return 0; }
static int _wrap_vec2___getitem(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = (glm::vec2 *) 0 ; int arg2 ; float result;
  SWIG_check_num_args("glm::vec2::__getitem__",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec2::__getitem__",1,"glm::vec2 *");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::vec2::__getitem__",2,"int");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){
    SWIG_fail_ptr("vec2___getitem",1,SWIGTYPE_p_glm__vec2); }  arg2 = (int)lua_tonumber(L, 2); try {
    result = (float)glm_vec2___getitem__(arg1,arg2);}  catch(std::out_of_range &_e) {
    SWIG_exception(SWIG_IndexError, (&_e)->what()); }  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg;
  if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_vec2___setitem(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = (glm::vec2 *) 0 ; int arg2 ; float arg3 ;
  SWIG_check_num_args("glm::vec2::__setitem__",3,3)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec2::__setitem__",1,"glm::vec2 *");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::vec2::__setitem__",2,"int");
  if(!lua_isnumber(L,3)) SWIG_fail_arg("glm::vec2::__setitem__",3,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){
    SWIG_fail_ptr("vec2___setitem",1,SWIGTYPE_p_glm__vec2); }  arg2 = (int)lua_tonumber(L, 2); arg3 = (float)lua_tonumber(L, 3);
  try { glm_vec2___setitem__(arg1,arg2,arg3);}  catch(std::out_of_range &_e) { SWIG_exception(SWIG_IndexError, (&_e)->what()); }
   return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_vec2___tostring(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = (glm::vec2 *) 0 ; std::string result;
  SWIG_check_num_args("glm::vec2::__tostring",1,1)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec2::__tostring",1,"glm::vec2 *");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){
    SWIG_fail_ptr("vec2___tostring",1,SWIGTYPE_p_glm__vec2); }  result = glm_vec2___tostring(arg1);
  lua_pushlstring(L,(&result)->data(),(&result)->size()); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L);
  return SWIG_arg; }
static int _wrap_vec2___add__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = (glm::vec2 *) 0 ; glm::vec2 *arg2 = 0 ;
  glm::vec2 result; SWIG_check_num_args("glm::vec2::operator +",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec2::operator +",1,"glm::vec2 *");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::vec2::operator +",2,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){
    SWIG_fail_ptr("vec2___add",1,SWIGTYPE_p_glm__vec2); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec2,0))){
    SWIG_fail_ptr("vec2___add",2,SWIGTYPE_p_glm__vec2); } 
  result = glm_vec2_operator_Sa___SWIG_0(arg1,(glm::vec2 const &)*arg2); {
    glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_vec2___add__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = (glm::vec2 *) 0 ; float arg2 ;
  glm::vec2 result; SWIG_check_num_args("glm::vec2::operator +",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec2::operator +",1,"glm::vec2 *");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::vec2::operator +",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){
    SWIG_fail_ptr("vec2___add",1,SWIGTYPE_p_glm__vec2); }  arg2 = (float)lua_tonumber(L, 2);
  result = glm_vec2_operator_Sa___SWIG_1(arg1,arg2); { glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_vec2___add(lua_State* L) { int argc; int argv[3]={ 1,2,3} ; argc = lua_gettop(L); if (argc == 2) { int _v = 0;
    { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_vec2___add__SWIG_0(L);}  check_1:
  if (argc == 2) { return _wrap_vec2___add__SWIG_1(L);} 
  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'vec2___add'\n" "  Possible C/C++ prototypes are:\n"
  "    glm::vec2::operator +(glm::vec2 const &)\n" "    glm::vec2::operator +(float)\n"); lua_error(L);return 0; }
static int _wrap_vec2___sub__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = (glm::vec2 *) 0 ; glm::vec2 *arg2 = 0 ;
  glm::vec2 result; SWIG_check_num_args("glm::vec2::operator -",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec2::operator -",1,"glm::vec2 *");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::vec2::operator -",2,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){
    SWIG_fail_ptr("vec2___sub",1,SWIGTYPE_p_glm__vec2); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec2,0))){
    SWIG_fail_ptr("vec2___sub",2,SWIGTYPE_p_glm__vec2); } 
  result = glm_vec2_operator_Ss___SWIG_0(arg1,(glm::vec2 const &)*arg2); {
    glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_vec2___sub__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = (glm::vec2 *) 0 ; float arg2 ;
  glm::vec2 result; SWIG_check_num_args("glm::vec2::operator -",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec2::operator -",1,"glm::vec2 *");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::vec2::operator -",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){
    SWIG_fail_ptr("vec2___sub",1,SWIGTYPE_p_glm__vec2); }  arg2 = (float)lua_tonumber(L, 2);
  result = glm_vec2_operator_Ss___SWIG_1(arg1,arg2); { glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_vec2___sub(lua_State* L) { int argc; int argv[3]={ 1,2,3} ; argc = lua_gettop(L); if (argc == 2) { int _v = 0;
    { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_vec2___sub__SWIG_0(L);}  check_1:
  if (argc == 2) { return _wrap_vec2___sub__SWIG_1(L);} 
  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'vec2___sub'\n" "  Possible C/C++ prototypes are:\n"
  "    glm::vec2::operator -(glm::vec2 const &)\n" "    glm::vec2::operator -(float)\n"); lua_error(L);return 0; }
static int _wrap_vec2___mul__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = (glm::vec2 *) 0 ; glm::vec2 *arg2 = 0 ;
  glm::vec2 result; SWIG_check_num_args("glm::vec2::operator *",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec2::operator *",1,"glm::vec2 *");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::vec2::operator *",2,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){
    SWIG_fail_ptr("vec2___mul",1,SWIGTYPE_p_glm__vec2); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec2,0))){
    SWIG_fail_ptr("vec2___mul",2,SWIGTYPE_p_glm__vec2); } 
  result = glm_vec2_operator_Sm___SWIG_0(arg1,(glm::vec2 const &)*arg2); {
    glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_vec2___mul__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = (glm::vec2 *) 0 ; float arg2 ;
  glm::vec2 result; SWIG_check_num_args("glm::vec2::operator *",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec2::operator *",1,"glm::vec2 *");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::vec2::operator *",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){
    SWIG_fail_ptr("vec2___mul",1,SWIGTYPE_p_glm__vec2); }  arg2 = (float)lua_tonumber(L, 2);
  result = glm_vec2_operator_Sm___SWIG_1(arg1,arg2); { glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_vec2___mul(lua_State* L) { int argc; int argv[3]={ 1,2,3} ; argc = lua_gettop(L); if (argc == 2) { int _v = 0;
    { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_vec2___mul__SWIG_0(L);}  check_1:
  if (argc == 2) { return _wrap_vec2___mul__SWIG_1(L);} 
  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'vec2___mul'\n" "  Possible C/C++ prototypes are:\n"
  "    glm::vec2::operator *(glm::vec2 const &)\n" "    glm::vec2::operator *(float)\n"); lua_error(L);return 0; }
static int _wrap_vec2___div__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = (glm::vec2 *) 0 ; glm::vec2 *arg2 = 0 ;
  glm::vec2 result; SWIG_check_num_args("glm::vec2::operator /",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec2::operator /",1,"glm::vec2 *");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::vec2::operator /",2,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){
    SWIG_fail_ptr("vec2___div",1,SWIGTYPE_p_glm__vec2); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec2,0))){
    SWIG_fail_ptr("vec2___div",2,SWIGTYPE_p_glm__vec2); } 
  result = glm_vec2_operator_Sd___SWIG_0(arg1,(glm::vec2 const &)*arg2); {
    glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_vec2___div__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = (glm::vec2 *) 0 ; float arg2 ;
  glm::vec2 result; SWIG_check_num_args("glm::vec2::operator /",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec2::operator /",1,"glm::vec2 *");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::vec2::operator /",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){
    SWIG_fail_ptr("vec2___div",1,SWIGTYPE_p_glm__vec2); }  arg2 = (float)lua_tonumber(L, 2);
  result = glm_vec2_operator_Sd___SWIG_1(arg1,arg2); { glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_vec2___div(lua_State* L) { int argc; int argv[3]={ 1,2,3} ; argc = lua_gettop(L); if (argc == 2) { int _v = 0;
    { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_vec2___div__SWIG_0(L);}  check_1:
  if (argc == 2) { return _wrap_vec2___div__SWIG_1(L);} 
  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'vec2___div'\n" "  Possible C/C++ prototypes are:\n"
  "    glm::vec2::operator /(glm::vec2 const &)\n" "    glm::vec2::operator /(float)\n"); lua_error(L);return 0; }
static int _wrap_vec2___eq(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = (glm::vec2 *) 0 ; glm::vec2 *arg2 = 0 ;
  bool result; SWIG_check_num_args("glm::vec2::operator ==",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec2::operator ==",1,"glm::vec2 *");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::vec2::operator ==",2,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){
    SWIG_fail_ptr("vec2___eq",1,SWIGTYPE_p_glm__vec2); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec2,0))){
    SWIG_fail_ptr("vec2___eq",2,SWIGTYPE_p_glm__vec2); } 
  result = (bool)glm_vec2_operator_Se__Se_(arg1,(glm::vec2 const &)*arg2); lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static void swig_delete_vec2(void *obj) {
glm::vec2 *arg1 = (glm::vec2 *) obj;
delete arg1;
}
static int _proxy__wrap_new_vec2(lua_State *L) {
    assert(lua_istable(L,1));
    lua_pushcfunction(L,_wrap_new_vec2);
    assert(!lua_isnil(L,-1));
    lua_replace(L,1); /* replace our table with real constructor */
    lua_call(L,lua_gettop(L)-1,1);
    return 1;
}
static swig_lua_attribute swig_vec2_attributes[] = {
    { "x", _wrap_vec2_x_get, _wrap_vec2_x_set },
    { "y", _wrap_vec2_y_get, _wrap_vec2_y_set },
    {0,0,0}
};
static swig_lua_method swig_vec2_methods[]= {
    { "__getitem", _wrap_vec2___getitem},
    { "__setitem", _wrap_vec2___setitem},
    { "__tostring", _wrap_vec2___tostring},
    { "__add", _wrap_vec2___add},
    { "__sub", _wrap_vec2___sub},
    { "__mul", _wrap_vec2___mul},
    { "__div", _wrap_vec2___div},
    { "__eq", _wrap_vec2___eq},
    {0,0}
};
static swig_lua_method swig_vec2_meta[] = {
    { "__getitem", _wrap_vec2___getitem},
    { "__setitem", _wrap_vec2___setitem},
    { "__tostring", _wrap_vec2___tostring},
    { "__add", _wrap_vec2___add},
    { "__sub", _wrap_vec2___sub},
    { "__mul", _wrap_vec2___mul},
    { "__div", _wrap_vec2___div},
    { "__eq", _wrap_vec2___eq},
    {0,0}
};

static swig_lua_attribute swig_vec2_Sf_SwigStatic_attributes[] = {
    {0,0,0}
};
static swig_lua_const_info swig_vec2_Sf_SwigStatic_constants[]= {
    {0,0,0,0,0,0}
};
static swig_lua_method swig_vec2_Sf_SwigStatic_methods[]= {
    { "length", _wrap_vec2_length},
    {0,0}
};
static swig_lua_class* swig_vec2_Sf_SwigStatic_classes[]= {
    0
};

static swig_lua_namespace swig_vec2_Sf_SwigStatic = {
    "vec2",
    swig_vec2_Sf_SwigStatic_methods,
    swig_vec2_Sf_SwigStatic_attributes,
    swig_vec2_Sf_SwigStatic_constants,
    swig_vec2_Sf_SwigStatic_classes,
    0
};
static swig_lua_class *swig_vec2_bases[] = {0};
static const char *swig_vec2_base_names[] = {0};
static swig_lua_class _wrap_class_vec2 = { "vec2", "vec2", &SWIGTYPE_p_glm__vec2,_proxy__wrap_new_vec2, swig_delete_vec2, swig_vec2_methods, swig_vec2_attributes, &swig_vec2_Sf_SwigStatic, swig_vec2_meta, swig_vec2_bases, swig_vec2_base_names };

static int _wrap_add__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; float arg2 ; glm::vec2 result;
  SWIG_check_num_args("glm::operator +",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator +",1,"glm::vec2 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::operator +",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("add",1,SWIGTYPE_p_glm__vec2); } 
  arg2 = (float)lua_tonumber(L, 2); result = glm::operator +((glm::vec2 const &)*arg1,arg2); {
    glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_add__SWIG_1(lua_State* L) { int SWIG_arg = 0; float arg1 ; glm::vec2 *arg2 = 0 ; glm::vec2 result;
  SWIG_check_num_args("glm::operator +",2,2) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::operator +",1,"float");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator +",2,"glm::vec2 const &"); arg1 = (float)lua_tonumber(L, 1);
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("add",2,SWIGTYPE_p_glm__vec2); } 
  result = glm::operator +(arg1,(glm::vec2 const &)*arg2); { glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_add__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 *arg2 = 0 ; glm::vec2 result;
  SWIG_check_num_args("glm::operator +",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator +",1,"glm::vec2 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator +",2,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("add",1,SWIGTYPE_p_glm__vec2); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("add",2,SWIGTYPE_p_glm__vec2); } 
  result = glm::operator +((glm::vec2 const &)*arg1,(glm::vec2 const &)*arg2); {
    glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_sub__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; float arg2 ; glm::vec2 result;
  SWIG_check_num_args("glm::operator -",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator -",1,"glm::vec2 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::operator -",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("sub",1,SWIGTYPE_p_glm__vec2); } 
  arg2 = (float)lua_tonumber(L, 2); result = glm::operator -((glm::vec2 const &)*arg1,arg2); {
    glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_sub__SWIG_1(lua_State* L) { int SWIG_arg = 0; float arg1 ; glm::vec2 *arg2 = 0 ; glm::vec2 result;
  SWIG_check_num_args("glm::operator -",2,2) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::operator -",1,"float");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator -",2,"glm::vec2 const &"); arg1 = (float)lua_tonumber(L, 1);
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("sub",2,SWIGTYPE_p_glm__vec2); } 
  result = glm::operator -(arg1,(glm::vec2 const &)*arg2); { glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_sub__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 *arg2 = 0 ; glm::vec2 result;
  SWIG_check_num_args("glm::operator -",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator -",1,"glm::vec2 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator -",2,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("sub",1,SWIGTYPE_p_glm__vec2); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("sub",2,SWIGTYPE_p_glm__vec2); } 
  result = glm::operator -((glm::vec2 const &)*arg1,(glm::vec2 const &)*arg2); {
    glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mul__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; float arg2 ; glm::vec2 result;
  SWIG_check_num_args("glm::operator *",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator *",1,"glm::vec2 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::operator *",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("mul",1,SWIGTYPE_p_glm__vec2); } 
  arg2 = (float)lua_tonumber(L, 2); result = glm::operator *((glm::vec2 const &)*arg1,arg2); {
    glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mul__SWIG_1(lua_State* L) { int SWIG_arg = 0; float arg1 ; glm::vec2 *arg2 = 0 ; glm::vec2 result;
  SWIG_check_num_args("glm::operator *",2,2) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::operator *",1,"float");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator *",2,"glm::vec2 const &"); arg1 = (float)lua_tonumber(L, 1);
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("mul",2,SWIGTYPE_p_glm__vec2); } 
  result = glm::operator *(arg1,(glm::vec2 const &)*arg2); { glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mul__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 *arg2 = 0 ; glm::vec2 result;
  SWIG_check_num_args("glm::operator *",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator *",1,"glm::vec2 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator *",2,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("mul",1,SWIGTYPE_p_glm__vec2); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("mul",2,SWIGTYPE_p_glm__vec2); } 
  result = glm::operator *((glm::vec2 const &)*arg1,(glm::vec2 const &)*arg2); {
    glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_div__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; float arg2 ; glm::vec2 result;
  SWIG_check_num_args("glm::operator /",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator /",1,"glm::vec2 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::operator /",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("div",1,SWIGTYPE_p_glm__vec2); } 
  arg2 = (float)lua_tonumber(L, 2); result = glm::operator /((glm::vec2 const &)*arg1,arg2); {
    glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_div__SWIG_1(lua_State* L) { int SWIG_arg = 0; float arg1 ; glm::vec2 *arg2 = 0 ; glm::vec2 result;
  SWIG_check_num_args("glm::operator /",2,2) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::operator /",1,"float");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator /",2,"glm::vec2 const &"); arg1 = (float)lua_tonumber(L, 1);
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("div",2,SWIGTYPE_p_glm__vec2); } 
  result = glm::operator /(arg1,(glm::vec2 const &)*arg2); { glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_div__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 *arg2 = 0 ; glm::vec2 result;
  SWIG_check_num_args("glm::operator /",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator /",1,"glm::vec2 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator /",2,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("div",1,SWIGTYPE_p_glm__vec2); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("div",2,SWIGTYPE_p_glm__vec2); } 
  result = glm::operator /((glm::vec2 const &)*arg1,(glm::vec2 const &)*arg2); {
    glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_eq__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 *arg2 = 0 ; bool result;
  SWIG_check_num_args("glm::operator ==",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator ==",1,"glm::vec2 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator ==",2,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("eq",1,SWIGTYPE_p_glm__vec2); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("eq",2,SWIGTYPE_p_glm__vec2); } 
  result = (bool)glm::operator ==((glm::vec2 const &)*arg1,(glm::vec2 const &)*arg2);
  lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_vec3_x_set(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = (glm::vec3 *) 0 ; float arg2 ;
  SWIG_check_num_args("glm::vec3::x",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec3::x",1,"glm::vec3 *");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::vec3::x",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("vec3_x_set",1,SWIGTYPE_p_glm__vec3); }  arg2 = (float)lua_tonumber(L, 2); if (arg1) (arg1)->x = arg2;
  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_vec3_x_get(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = (glm::vec3 *) 0 ; float result;
  SWIG_check_num_args("glm::vec3::x",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec3::x",1,"glm::vec3 *");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("vec3_x_get",1,SWIGTYPE_p_glm__vec3); }  result = (float) ((arg1)->x);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_vec3_y_set(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = (glm::vec3 *) 0 ; float arg2 ;
  SWIG_check_num_args("glm::vec3::y",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec3::y",1,"glm::vec3 *");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::vec3::y",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("vec3_y_set",1,SWIGTYPE_p_glm__vec3); }  arg2 = (float)lua_tonumber(L, 2); if (arg1) (arg1)->y = arg2;
  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_vec3_y_get(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = (glm::vec3 *) 0 ; float result;
  SWIG_check_num_args("glm::vec3::y",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec3::y",1,"glm::vec3 *");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("vec3_y_get",1,SWIGTYPE_p_glm__vec3); }  result = (float) ((arg1)->y);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_vec3_z_set(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = (glm::vec3 *) 0 ; float arg2 ;
  SWIG_check_num_args("glm::vec3::z",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec3::z",1,"glm::vec3 *");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::vec3::z",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("vec3_z_set",1,SWIGTYPE_p_glm__vec3); }  arg2 = (float)lua_tonumber(L, 2); if (arg1) (arg1)->z = arg2;
  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_vec3_z_get(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = (glm::vec3 *) 0 ; float result;
  SWIG_check_num_args("glm::vec3::z",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec3::z",1,"glm::vec3 *");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("vec3_z_get",1,SWIGTYPE_p_glm__vec3); }  result = (float) ((arg1)->z);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_vec3_length(lua_State* L) { int SWIG_arg = 0; glm::length_t result;
  SWIG_check_num_args("glm::vec3::length",0,0) result = (glm::length_t)glm::vec3::length();
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_new_vec3__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::vec3 *result = 0 ;
  SWIG_check_num_args("glm::vec3::vec3",0,0) result = (glm::vec3 *)new glm::vec3();
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_glm__vec3,1); SWIG_arg++;  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L);
  return SWIG_arg; }
static int _wrap_new_vec3__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 *result = 0 ;
  SWIG_check_num_args("glm::vec3::vec3",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::vec3::vec3",1,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("new_vec3",1,SWIGTYPE_p_glm__vec3); }
   result = (glm::vec3 *)new glm::vec3((glm::vec3 const &)*arg1);
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_glm__vec3,1); SWIG_arg++;  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L);
  return SWIG_arg; }
static int _wrap_new_vec3__SWIG_2(lua_State* L) { int SWIG_arg = 0; float arg1 ; glm::vec3 *result = 0 ;
  SWIG_check_num_args("glm::vec3::vec3",1,1) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::vec3::vec3",1,"float");
  arg1 = (float)lua_tonumber(L, 1); result = (glm::vec3 *)new glm::vec3(arg1);
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_glm__vec3,1); SWIG_arg++;  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L);
  return SWIG_arg; }
static int _wrap_new_vec3__SWIG_3(lua_State* L) { int SWIG_arg = 0; float arg1 ; float arg2 ; float arg3 ;
  glm::vec3 *result = 0 ; SWIG_check_num_args("glm::vec3::vec3",3,3)
  if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::vec3::vec3",1,"float");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::vec3::vec3",2,"float");
  if(!lua_isnumber(L,3)) SWIG_fail_arg("glm::vec3::vec3",3,"float"); arg1 = (float)lua_tonumber(L, 1);
  arg2 = (float)lua_tonumber(L, 2); arg3 = (float)lua_tonumber(L, 3); result = (glm::vec3 *)new glm::vec3(arg1,arg2,arg3);
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_glm__vec3,1); SWIG_arg++;  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L);
  return SWIG_arg; }
static int _wrap_new_vec3__SWIG_4(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; float arg2 ; glm::vec3 *result = 0 ;
  SWIG_check_num_args("glm::vec3::vec3",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::vec3::vec3",1,"glm::vec2 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::vec3::vec3",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("new_vec3",1,SWIGTYPE_p_glm__vec2); }
   arg2 = (float)lua_tonumber(L, 2); result = (glm::vec3 *)new glm::vec3((glm::vec2 const &)*arg1,arg2);
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_glm__vec3,1); SWIG_arg++;  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L);
  return SWIG_arg; }
static int _wrap_new_vec3__SWIG_5(lua_State* L) { int SWIG_arg = 0; float arg1 ; glm::vec2 *arg2 = 0 ; glm::vec3 *result = 0 ;
  SWIG_check_num_args("glm::vec3::vec3",2,2) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::vec3::vec3",1,"float");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::vec3::vec3",2,"glm::vec2 const &"); arg1 = (float)lua_tonumber(L, 1);
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("new_vec3",2,SWIGTYPE_p_glm__vec2); }
   result = (glm::vec3 *)new glm::vec3(arg1,(glm::vec2 const &)*arg2);
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_glm__vec3,1); SWIG_arg++;  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L);
  return SWIG_arg; }
static int _wrap_new_vec3__SWIG_6(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec3 *result = 0 ;
  SWIG_check_num_args("glm::vec3::vec3",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::vec3::vec3",1,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("new_vec3",1,SWIGTYPE_p_glm__vec4); }
   result = (glm::vec3 *)new glm::vec3((glm::vec4 const &)*arg1);
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_glm__vec3,1); SWIG_arg++;  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L);
  return SWIG_arg; }
static int _wrap_new_vec3(lua_State* L) { int argc; int argv[4]={ 1,2,3,4} ; argc = lua_gettop(L); if (argc == 0) {
    return _wrap_new_vec3__SWIG_0(L);}  if (argc == 1) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_new_vec3__SWIG_1(L);}  check_2: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_new_vec3__SWIG_6(L);}  check_3: if (argc == 1) {
    return _wrap_new_vec3__SWIG_2(L);}  if (argc == 2) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_5; { { _v = lua_isnumber(L,argv[1]); } }  if (!_v) goto check_5;
    return _wrap_new_vec3__SWIG_4(L);}  check_5: if (argc == 2) { return _wrap_new_vec3__SWIG_5(L);}  if (argc == 3) {
    return _wrap_new_vec3__SWIG_3(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'new_vec3'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::vec3::vec3()\n" "    glm::vec3::vec3(glm::vec3 const &)\n"
  "    glm::vec3::vec3(float)\n" "    glm::vec3::vec3(float,float,float)\n" "    glm::vec3::vec3(glm::vec2 const &,float)\n"
  "    glm::vec3::vec3(float,glm::vec2 const &)\n" "    glm::vec3::vec3(glm::vec4 const &)\n"); lua_error(L);return 0; }
static int _wrap_vec3___getitem(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = (glm::vec3 *) 0 ; int arg2 ; float result;
  SWIG_check_num_args("glm::vec3::__getitem__",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec3::__getitem__",1,"glm::vec3 *");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::vec3::__getitem__",2,"int");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("vec3___getitem",1,SWIGTYPE_p_glm__vec3); }  arg2 = (int)lua_tonumber(L, 2); try {
    result = (float)glm_vec3___getitem__(arg1,arg2);}  catch(std::out_of_range &_e) {
    SWIG_exception(SWIG_IndexError, (&_e)->what()); }  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg;
  if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_vec3___setitem(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = (glm::vec3 *) 0 ; int arg2 ; float arg3 ;
  SWIG_check_num_args("glm::vec3::__setitem__",3,3)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec3::__setitem__",1,"glm::vec3 *");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::vec3::__setitem__",2,"int");
  if(!lua_isnumber(L,3)) SWIG_fail_arg("glm::vec3::__setitem__",3,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("vec3___setitem",1,SWIGTYPE_p_glm__vec3); }  arg2 = (int)lua_tonumber(L, 2); arg3 = (float)lua_tonumber(L, 3);
  try { glm_vec3___setitem__(arg1,arg2,arg3);}  catch(std::out_of_range &_e) { SWIG_exception(SWIG_IndexError, (&_e)->what()); }
   return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_vec3___tostring(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = (glm::vec3 *) 0 ; std::string result;
  SWIG_check_num_args("glm::vec3::__tostring",1,1)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec3::__tostring",1,"glm::vec3 *");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("vec3___tostring",1,SWIGTYPE_p_glm__vec3); }  result = glm_vec3___tostring(arg1);
  lua_pushlstring(L,(&result)->data(),(&result)->size()); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L);
  return SWIG_arg; }
static int _wrap_vec3___add__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = (glm::vec3 *) 0 ; glm::vec3 *arg2 = 0 ;
  glm::vec3 result; SWIG_check_num_args("glm::vec3::operator +",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec3::operator +",1,"glm::vec3 *");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::vec3::operator +",2,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("vec3___add",1,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("vec3___add",2,SWIGTYPE_p_glm__vec3); } 
  result = glm_vec3_operator_Sa___SWIG_0(arg1,(glm::vec3 const &)*arg2); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_vec3___add__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = (glm::vec3 *) 0 ; float arg2 ;
  glm::vec3 result; SWIG_check_num_args("glm::vec3::operator +",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec3::operator +",1,"glm::vec3 *");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::vec3::operator +",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("vec3___add",1,SWIGTYPE_p_glm__vec3); }  arg2 = (float)lua_tonumber(L, 2);
  result = glm_vec3_operator_Sa___SWIG_1(arg1,arg2); { glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_vec3___add(lua_State* L) { int argc; int argv[3]={ 1,2,3} ; argc = lua_gettop(L); if (argc == 2) { int _v = 0;
    { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_vec3___add__SWIG_0(L);}  check_1:
  if (argc == 2) { return _wrap_vec3___add__SWIG_1(L);} 
  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'vec3___add'\n" "  Possible C/C++ prototypes are:\n"
  "    glm::vec3::operator +(glm::vec3 const &)\n" "    glm::vec3::operator +(float)\n"); lua_error(L);return 0; }
static int _wrap_vec3___sub__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = (glm::vec3 *) 0 ; glm::vec3 *arg2 = 0 ;
  glm::vec3 result; SWIG_check_num_args("glm::vec3::operator -",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec3::operator -",1,"glm::vec3 *");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::vec3::operator -",2,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("vec3___sub",1,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("vec3___sub",2,SWIGTYPE_p_glm__vec3); } 
  result = glm_vec3_operator_Ss___SWIG_0(arg1,(glm::vec3 const &)*arg2); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_vec3___sub__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = (glm::vec3 *) 0 ; float arg2 ;
  glm::vec3 result; SWIG_check_num_args("glm::vec3::operator -",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec3::operator -",1,"glm::vec3 *");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::vec3::operator -",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("vec3___sub",1,SWIGTYPE_p_glm__vec3); }  arg2 = (float)lua_tonumber(L, 2);
  result = glm_vec3_operator_Ss___SWIG_1(arg1,arg2); { glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_vec3___sub(lua_State* L) { int argc; int argv[3]={ 1,2,3} ; argc = lua_gettop(L); if (argc == 2) { int _v = 0;
    { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_vec3___sub__SWIG_0(L);}  check_1:
  if (argc == 2) { return _wrap_vec3___sub__SWIG_1(L);} 
  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'vec3___sub'\n" "  Possible C/C++ prototypes are:\n"
  "    glm::vec3::operator -(glm::vec3 const &)\n" "    glm::vec3::operator -(float)\n"); lua_error(L);return 0; }
static int _wrap_vec3___mul__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = (glm::vec3 *) 0 ; glm::vec3 *arg2 = 0 ;
  glm::vec3 result; SWIG_check_num_args("glm::vec3::operator *",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec3::operator *",1,"glm::vec3 *");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::vec3::operator *",2,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("vec3___mul",1,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("vec3___mul",2,SWIGTYPE_p_glm__vec3); } 
  result = glm_vec3_operator_Sm___SWIG_0(arg1,(glm::vec3 const &)*arg2); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_vec3___mul__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = (glm::vec3 *) 0 ; float arg2 ;
  glm::vec3 result; SWIG_check_num_args("glm::vec3::operator *",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec3::operator *",1,"glm::vec3 *");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::vec3::operator *",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("vec3___mul",1,SWIGTYPE_p_glm__vec3); }  arg2 = (float)lua_tonumber(L, 2);
  result = glm_vec3_operator_Sm___SWIG_1(arg1,arg2); { glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_vec3___mul(lua_State* L) { int argc; int argv[3]={ 1,2,3} ; argc = lua_gettop(L); if (argc == 2) { int _v = 0;
    { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_vec3___mul__SWIG_0(L);}  check_1:
  if (argc == 2) { return _wrap_vec3___mul__SWIG_1(L);} 
  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'vec3___mul'\n" "  Possible C/C++ prototypes are:\n"
  "    glm::vec3::operator *(glm::vec3 const &)\n" "    glm::vec3::operator *(float)\n"); lua_error(L);return 0; }
static int _wrap_vec3___div__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = (glm::vec3 *) 0 ; glm::vec3 *arg2 = 0 ;
  glm::vec3 result; SWIG_check_num_args("glm::vec3::operator /",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec3::operator /",1,"glm::vec3 *");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::vec3::operator /",2,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("vec3___div",1,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("vec3___div",2,SWIGTYPE_p_glm__vec3); } 
  result = glm_vec3_operator_Sd___SWIG_0(arg1,(glm::vec3 const &)*arg2); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_vec3___div__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = (glm::vec3 *) 0 ; float arg2 ;
  glm::vec3 result; SWIG_check_num_args("glm::vec3::operator /",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec3::operator /",1,"glm::vec3 *");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::vec3::operator /",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("vec3___div",1,SWIGTYPE_p_glm__vec3); }  arg2 = (float)lua_tonumber(L, 2);
  result = glm_vec3_operator_Sd___SWIG_1(arg1,arg2); { glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_vec3___div(lua_State* L) { int argc; int argv[3]={ 1,2,3} ; argc = lua_gettop(L); if (argc == 2) { int _v = 0;
    { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_vec3___div__SWIG_0(L);}  check_1:
  if (argc == 2) { return _wrap_vec3___div__SWIG_1(L);} 
  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'vec3___div'\n" "  Possible C/C++ prototypes are:\n"
  "    glm::vec3::operator /(glm::vec3 const &)\n" "    glm::vec3::operator /(float)\n"); lua_error(L);return 0; }
static int _wrap_vec3___eq(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = (glm::vec3 *) 0 ; glm::vec3 *arg2 = 0 ;
  bool result; SWIG_check_num_args("glm::vec3::operator ==",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec3::operator ==",1,"glm::vec3 *");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::vec3::operator ==",2,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("vec3___eq",1,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("vec3___eq",2,SWIGTYPE_p_glm__vec3); } 
  result = (bool)glm_vec3_operator_Se__Se_(arg1,(glm::vec3 const &)*arg2); lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static void swig_delete_vec3(void *obj) {
glm::vec3 *arg1 = (glm::vec3 *) obj;
delete arg1;
}
static int _proxy__wrap_new_vec3(lua_State *L) {
    assert(lua_istable(L,1));
    lua_pushcfunction(L,_wrap_new_vec3);
    assert(!lua_isnil(L,-1));
    lua_replace(L,1); /* replace our table with real constructor */
    lua_call(L,lua_gettop(L)-1,1);
    return 1;
}
static swig_lua_attribute swig_vec3_attributes[] = {
    { "x", _wrap_vec3_x_get, _wrap_vec3_x_set },
    { "y", _wrap_vec3_y_get, _wrap_vec3_y_set },
    { "z", _wrap_vec3_z_get, _wrap_vec3_z_set },
    {0,0,0}
};
static swig_lua_method swig_vec3_methods[]= {
    { "__getitem", _wrap_vec3___getitem},
    { "__setitem", _wrap_vec3___setitem},
    { "__tostring", _wrap_vec3___tostring},
    { "__add", _wrap_vec3___add},
    { "__sub", _wrap_vec3___sub},
    { "__mul", _wrap_vec3___mul},
    { "__div", _wrap_vec3___div},
    { "__eq", _wrap_vec3___eq},
    {0,0}
};
static swig_lua_method swig_vec3_meta[] = {
    { "__getitem", _wrap_vec3___getitem},
    { "__setitem", _wrap_vec3___setitem},
    { "__tostring", _wrap_vec3___tostring},
    { "__add", _wrap_vec3___add},
    { "__sub", _wrap_vec3___sub},
    { "__mul", _wrap_vec3___mul},
    { "__div", _wrap_vec3___div},
    { "__eq", _wrap_vec3___eq},
    {0,0}
};

static swig_lua_attribute swig_vec3_Sf_SwigStatic_attributes[] = {
    {0,0,0}
};
static swig_lua_const_info swig_vec3_Sf_SwigStatic_constants[]= {
    {0,0,0,0,0,0}
};
static swig_lua_method swig_vec3_Sf_SwigStatic_methods[]= {
    { "length", _wrap_vec3_length},
    {0,0}
};
static swig_lua_class* swig_vec3_Sf_SwigStatic_classes[]= {
    0
};

static swig_lua_namespace swig_vec3_Sf_SwigStatic = {
    "vec3",
    swig_vec3_Sf_SwigStatic_methods,
    swig_vec3_Sf_SwigStatic_attributes,
    swig_vec3_Sf_SwigStatic_constants,
    swig_vec3_Sf_SwigStatic_classes,
    0
};
static swig_lua_class *swig_vec3_bases[] = {0};
static const char *swig_vec3_base_names[] = {0};
static swig_lua_class _wrap_class_vec3 = { "vec3", "vec3", &SWIGTYPE_p_glm__vec3,_proxy__wrap_new_vec3, swig_delete_vec3, swig_vec3_methods, swig_vec3_attributes, &swig_vec3_Sf_SwigStatic, swig_vec3_meta, swig_vec3_bases, swig_vec3_base_names };

static int _wrap_add__SWIG_3(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; float arg2 ; glm::vec3 result;
  SWIG_check_num_args("glm::operator +",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator +",1,"glm::vec3 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::operator +",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("add",1,SWIGTYPE_p_glm__vec3); } 
  arg2 = (float)lua_tonumber(L, 2); result = glm::operator +((glm::vec3 const &)*arg1,arg2); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_add__SWIG_4(lua_State* L) { int SWIG_arg = 0; float arg1 ; glm::vec3 *arg2 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::operator +",2,2) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::operator +",1,"float");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator +",2,"glm::vec3 const &"); arg1 = (float)lua_tonumber(L, 1);
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("add",2,SWIGTYPE_p_glm__vec3); } 
  result = glm::operator +(arg1,(glm::vec3 const &)*arg2); { glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_add__SWIG_5(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 *arg2 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::operator +",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator +",1,"glm::vec3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator +",2,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("add",1,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("add",2,SWIGTYPE_p_glm__vec3); } 
  result = glm::operator +((glm::vec3 const &)*arg1,(glm::vec3 const &)*arg2); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_sub__SWIG_3(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; float arg2 ; glm::vec3 result;
  SWIG_check_num_args("glm::operator -",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator -",1,"glm::vec3 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::operator -",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("sub",1,SWIGTYPE_p_glm__vec3); } 
  arg2 = (float)lua_tonumber(L, 2); result = glm::operator -((glm::vec3 const &)*arg1,arg2); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_sub__SWIG_4(lua_State* L) { int SWIG_arg = 0; float arg1 ; glm::vec3 *arg2 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::operator -",2,2) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::operator -",1,"float");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator -",2,"glm::vec3 const &"); arg1 = (float)lua_tonumber(L, 1);
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("sub",2,SWIGTYPE_p_glm__vec3); } 
  result = glm::operator -(arg1,(glm::vec3 const &)*arg2); { glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_sub__SWIG_5(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 *arg2 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::operator -",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator -",1,"glm::vec3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator -",2,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("sub",1,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("sub",2,SWIGTYPE_p_glm__vec3); } 
  result = glm::operator -((glm::vec3 const &)*arg1,(glm::vec3 const &)*arg2); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mul__SWIG_3(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; float arg2 ; glm::vec3 result;
  SWIG_check_num_args("glm::operator *",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator *",1,"glm::vec3 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::operator *",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("mul",1,SWIGTYPE_p_glm__vec3); } 
  arg2 = (float)lua_tonumber(L, 2); result = glm::operator *((glm::vec3 const &)*arg1,arg2); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mul__SWIG_4(lua_State* L) { int SWIG_arg = 0; float arg1 ; glm::vec3 *arg2 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::operator *",2,2) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::operator *",1,"float");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator *",2,"glm::vec3 const &"); arg1 = (float)lua_tonumber(L, 1);
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("mul",2,SWIGTYPE_p_glm__vec3); } 
  result = glm::operator *(arg1,(glm::vec3 const &)*arg2); { glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mul__SWIG_5(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 *arg2 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::operator *",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator *",1,"glm::vec3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator *",2,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("mul",1,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("mul",2,SWIGTYPE_p_glm__vec3); } 
  result = glm::operator *((glm::vec3 const &)*arg1,(glm::vec3 const &)*arg2); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_div__SWIG_3(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; float arg2 ; glm::vec3 result;
  SWIG_check_num_args("glm::operator /",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator /",1,"glm::vec3 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::operator /",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("div",1,SWIGTYPE_p_glm__vec3); } 
  arg2 = (float)lua_tonumber(L, 2); result = glm::operator /((glm::vec3 const &)*arg1,arg2); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_div__SWIG_4(lua_State* L) { int SWIG_arg = 0; float arg1 ; glm::vec3 *arg2 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::operator /",2,2) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::operator /",1,"float");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator /",2,"glm::vec3 const &"); arg1 = (float)lua_tonumber(L, 1);
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("div",2,SWIGTYPE_p_glm__vec3); } 
  result = glm::operator /(arg1,(glm::vec3 const &)*arg2); { glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_div__SWIG_5(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 *arg2 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::operator /",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator /",1,"glm::vec3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator /",2,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("div",1,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("div",2,SWIGTYPE_p_glm__vec3); } 
  result = glm::operator /((glm::vec3 const &)*arg1,(glm::vec3 const &)*arg2); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_eq__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 *arg2 = 0 ; bool result;
  SWIG_check_num_args("glm::operator ==",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator ==",1,"glm::vec3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator ==",2,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("eq",1,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("eq",2,SWIGTYPE_p_glm__vec3); } 
  result = (bool)glm::operator ==((glm::vec3 const &)*arg1,(glm::vec3 const &)*arg2);
  lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_vec4_x_set(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = (glm::vec4 *) 0 ; float arg2 ;
  SWIG_check_num_args("glm::vec4::x",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec4::x",1,"glm::vec4 *");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::vec4::x",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){
    SWIG_fail_ptr("vec4_x_set",1,SWIGTYPE_p_glm__vec4); }  arg2 = (float)lua_tonumber(L, 2); if (arg1) (arg1)->x = arg2;
  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_vec4_x_get(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = (glm::vec4 *) 0 ; float result;
  SWIG_check_num_args("glm::vec4::x",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec4::x",1,"glm::vec4 *");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){
    SWIG_fail_ptr("vec4_x_get",1,SWIGTYPE_p_glm__vec4); }  result = (float) ((arg1)->x);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_vec4_y_set(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = (glm::vec4 *) 0 ; float arg2 ;
  SWIG_check_num_args("glm::vec4::y",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec4::y",1,"glm::vec4 *");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::vec4::y",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){
    SWIG_fail_ptr("vec4_y_set",1,SWIGTYPE_p_glm__vec4); }  arg2 = (float)lua_tonumber(L, 2); if (arg1) (arg1)->y = arg2;
  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_vec4_y_get(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = (glm::vec4 *) 0 ; float result;
  SWIG_check_num_args("glm::vec4::y",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec4::y",1,"glm::vec4 *");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){
    SWIG_fail_ptr("vec4_y_get",1,SWIGTYPE_p_glm__vec4); }  result = (float) ((arg1)->y);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_vec4_z_set(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = (glm::vec4 *) 0 ; float arg2 ;
  SWIG_check_num_args("glm::vec4::z",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec4::z",1,"glm::vec4 *");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::vec4::z",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){
    SWIG_fail_ptr("vec4_z_set",1,SWIGTYPE_p_glm__vec4); }  arg2 = (float)lua_tonumber(L, 2); if (arg1) (arg1)->z = arg2;
  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_vec4_z_get(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = (glm::vec4 *) 0 ; float result;
  SWIG_check_num_args("glm::vec4::z",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec4::z",1,"glm::vec4 *");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){
    SWIG_fail_ptr("vec4_z_get",1,SWIGTYPE_p_glm__vec4); }  result = (float) ((arg1)->z);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_vec4_w_set(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = (glm::vec4 *) 0 ; float arg2 ;
  SWIG_check_num_args("glm::vec4::w",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec4::w",1,"glm::vec4 *");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::vec4::w",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){
    SWIG_fail_ptr("vec4_w_set",1,SWIGTYPE_p_glm__vec4); }  arg2 = (float)lua_tonumber(L, 2); if (arg1) (arg1)->w = arg2;
  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_vec4_w_get(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = (glm::vec4 *) 0 ; float result;
  SWIG_check_num_args("glm::vec4::w",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec4::w",1,"glm::vec4 *");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){
    SWIG_fail_ptr("vec4_w_get",1,SWIGTYPE_p_glm__vec4); }  result = (float) ((arg1)->w);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_vec4_length(lua_State* L) { int SWIG_arg = 0; glm::length_t result;
  SWIG_check_num_args("glm::vec4::length",0,0) result = (glm::length_t)glm::vec4::length();
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_new_vec4__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::vec4 *result = 0 ;
  SWIG_check_num_args("glm::vec4::vec4",0,0) result = (glm::vec4 *)new glm::vec4();
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_glm__vec4,1); SWIG_arg++;  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L);
  return SWIG_arg; }
static int _wrap_new_vec4__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 *result = 0 ;
  SWIG_check_num_args("glm::vec4::vec4",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::vec4::vec4",1,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("new_vec4",1,SWIGTYPE_p_glm__vec4); }
   result = (glm::vec4 *)new glm::vec4((glm::vec4 const &)*arg1);
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_glm__vec4,1); SWIG_arg++;  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L);
  return SWIG_arg; }
static int _wrap_new_vec4__SWIG_2(lua_State* L) { int SWIG_arg = 0; float arg1 ; glm::vec4 *result = 0 ;
  SWIG_check_num_args("glm::vec4::vec4",1,1) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::vec4::vec4",1,"float");
  arg1 = (float)lua_tonumber(L, 1); result = (glm::vec4 *)new glm::vec4(arg1);
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_glm__vec4,1); SWIG_arg++;  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L);
  return SWIG_arg; }
static int _wrap_new_vec4__SWIG_3(lua_State* L) { int SWIG_arg = 0; float arg1 ; float arg2 ; float arg3 ; float arg4 ;
  glm::vec4 *result = 0 ; SWIG_check_num_args("glm::vec4::vec4",4,4)
  if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::vec4::vec4",1,"float");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::vec4::vec4",2,"float");
  if(!lua_isnumber(L,3)) SWIG_fail_arg("glm::vec4::vec4",3,"float");
  if(!lua_isnumber(L,4)) SWIG_fail_arg("glm::vec4::vec4",4,"float"); arg1 = (float)lua_tonumber(L, 1);
  arg2 = (float)lua_tonumber(L, 2); arg3 = (float)lua_tonumber(L, 3); arg4 = (float)lua_tonumber(L, 4);
  result = (glm::vec4 *)new glm::vec4(arg1,arg2,arg3,arg4); SWIG_NewPointerObj(L,result,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; 
  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_new_vec4__SWIG_4(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 *arg2 = 0 ;
  glm::vec4 *result = 0 ; SWIG_check_num_args("glm::vec4::vec4",2,2)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::vec4::vec4",1,"glm::vec2 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::vec4::vec4",2,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("new_vec4",1,SWIGTYPE_p_glm__vec2); }
   if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec2,0))){
    SWIG_fail_ptr("new_vec4",2,SWIGTYPE_p_glm__vec2); } 
  result = (glm::vec4 *)new glm::vec4((glm::vec2 const &)*arg1,(glm::vec2 const &)*arg2);
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_glm__vec4,1); SWIG_arg++;  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L);
  return SWIG_arg; }
static int _wrap_new_vec4__SWIG_5(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; float arg2 ; float arg3 ;
  glm::vec4 *result = 0 ; SWIG_check_num_args("glm::vec4::vec4",3,3)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::vec4::vec4",1,"glm::vec2 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::vec4::vec4",2,"float");
  if(!lua_isnumber(L,3)) SWIG_fail_arg("glm::vec4::vec4",3,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("new_vec4",1,SWIGTYPE_p_glm__vec2); }
   arg2 = (float)lua_tonumber(L, 2); arg3 = (float)lua_tonumber(L, 3);
  result = (glm::vec4 *)new glm::vec4((glm::vec2 const &)*arg1,arg2,arg3);
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_glm__vec4,1); SWIG_arg++;  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L);
  return SWIG_arg; }
static int _wrap_new_vec4__SWIG_6(lua_State* L) { int SWIG_arg = 0; float arg1 ; glm::vec2 *arg2 = 0 ; float arg3 ;
  glm::vec4 *result = 0 ; SWIG_check_num_args("glm::vec4::vec4",3,3)
  if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::vec4::vec4",1,"float");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::vec4::vec4",2,"glm::vec2 const &");
  if(!lua_isnumber(L,3)) SWIG_fail_arg("glm::vec4::vec4",3,"float"); arg1 = (float)lua_tonumber(L, 1);
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("new_vec4",2,SWIGTYPE_p_glm__vec2); }
   arg3 = (float)lua_tonumber(L, 3); result = (glm::vec4 *)new glm::vec4(arg1,(glm::vec2 const &)*arg2,arg3);
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_glm__vec4,1); SWIG_arg++;  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L);
  return SWIG_arg; }
static int _wrap_new_vec4__SWIG_7(lua_State* L) { int SWIG_arg = 0; float arg1 ; float arg2 ; glm::vec2 *arg3 = 0 ;
  glm::vec4 *result = 0 ; SWIG_check_num_args("glm::vec4::vec4",3,3)
  if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::vec4::vec4",1,"float");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::vec4::vec4",2,"float");
  if(!lua_isuserdata(L,3)) SWIG_fail_arg("glm::vec4::vec4",3,"glm::vec2 const &"); arg1 = (float)lua_tonumber(L, 1);
  arg2 = (float)lua_tonumber(L, 2); if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_glm__vec2,0))){
    SWIG_fail_ptr("new_vec4",3,SWIGTYPE_p_glm__vec2); } 
  result = (glm::vec4 *)new glm::vec4(arg1,arg2,(glm::vec2 const &)*arg3);
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_glm__vec4,1); SWIG_arg++;  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L);
  return SWIG_arg; }
static int _wrap_new_vec4__SWIG_8(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; float arg2 ; glm::vec4 *result = 0 ;
  SWIG_check_num_args("glm::vec4::vec4",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::vec4::vec4",1,"glm::vec3 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::vec4::vec4",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("new_vec4",1,SWIGTYPE_p_glm__vec3); }
   arg2 = (float)lua_tonumber(L, 2); result = (glm::vec4 *)new glm::vec4((glm::vec3 const &)*arg1,arg2);
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_glm__vec4,1); SWIG_arg++;  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L);
  return SWIG_arg; }
static int _wrap_new_vec4__SWIG_9(lua_State* L) { int SWIG_arg = 0; float arg1 ; glm::vec3 *arg2 = 0 ; glm::vec4 *result = 0 ;
  SWIG_check_num_args("glm::vec4::vec4",2,2) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::vec4::vec4",1,"float");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::vec4::vec4",2,"glm::vec3 const &"); arg1 = (float)lua_tonumber(L, 1);
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("new_vec4",2,SWIGTYPE_p_glm__vec3); }
   result = (glm::vec4 *)new glm::vec4(arg1,(glm::vec3 const &)*arg2);
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_glm__vec4,1); SWIG_arg++;  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L);
  return SWIG_arg; }
static int _wrap_new_vec4(lua_State* L) { int argc; int argv[5]={ 1,2,3,4,5} ; argc = lua_gettop(L); if (argc == 0) {
    return _wrap_new_vec4__SWIG_0(L);}  if (argc == 1) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_new_vec4__SWIG_1(L);}  check_2: if (argc == 1) {
    return _wrap_new_vec4__SWIG_2(L);}  if (argc == 2) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_4; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_4; return _wrap_new_vec4__SWIG_4(L);}  check_4: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_5; { { _v = lua_isnumber(L,argv[1]); } }  if (!_v) goto check_5;
    return _wrap_new_vec4__SWIG_8(L);}  check_5: if (argc == 2) { return _wrap_new_vec4__SWIG_9(L);}  if (argc == 3) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_7; { { _v = lua_isnumber(L,argv[1]); } }  if (!_v) goto check_7;
    { { _v = lua_isnumber(L,argv[2]); } }  if (!_v) goto check_7; return _wrap_new_vec4__SWIG_5(L);}  check_7: if (argc == 3) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_8; { { _v = lua_isnumber(L,argv[2]); } }  if (!_v) goto check_8;
    return _wrap_new_vec4__SWIG_6(L);}  check_8: if (argc == 3) { return _wrap_new_vec4__SWIG_7(L);}  if (argc == 4) {
    return _wrap_new_vec4__SWIG_3(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'new_vec4'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::vec4::vec4()\n" "    glm::vec4::vec4(glm::vec4 const &)\n"
  "    glm::vec4::vec4(float)\n" "    glm::vec4::vec4(float,float,float,float)\n"
  "    glm::vec4::vec4(glm::vec2 const &,glm::vec2 const &)\n" "    glm::vec4::vec4(glm::vec2 const &,float,float)\n"
  "    glm::vec4::vec4(float,glm::vec2 const &,float)\n" "    glm::vec4::vec4(float,float,glm::vec2 const &)\n"
  "    glm::vec4::vec4(glm::vec3 const &,float)\n" "    glm::vec4::vec4(float,glm::vec3 const &)\n"); lua_error(L);return 0; }
static int _wrap_vec4___getitem(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = (glm::vec4 *) 0 ; int arg2 ; float result;
  SWIG_check_num_args("glm::vec4::__getitem__",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec4::__getitem__",1,"glm::vec4 *");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::vec4::__getitem__",2,"int");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){
    SWIG_fail_ptr("vec4___getitem",1,SWIGTYPE_p_glm__vec4); }  arg2 = (int)lua_tonumber(L, 2); try {
    result = (float)glm_vec4___getitem__(arg1,arg2);}  catch(std::out_of_range &_e) {
    SWIG_exception(SWIG_IndexError, (&_e)->what()); }  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg;
  if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_vec4___setitem(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = (glm::vec4 *) 0 ; int arg2 ; float arg3 ;
  SWIG_check_num_args("glm::vec4::__setitem__",3,3)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec4::__setitem__",1,"glm::vec4 *");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::vec4::__setitem__",2,"int");
  if(!lua_isnumber(L,3)) SWIG_fail_arg("glm::vec4::__setitem__",3,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){
    SWIG_fail_ptr("vec4___setitem",1,SWIGTYPE_p_glm__vec4); }  arg2 = (int)lua_tonumber(L, 2); arg3 = (float)lua_tonumber(L, 3);
  try { glm_vec4___setitem__(arg1,arg2,arg3);}  catch(std::out_of_range &_e) { SWIG_exception(SWIG_IndexError, (&_e)->what()); }
   return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_vec4___tostring(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = (glm::vec4 *) 0 ; std::string result;
  SWIG_check_num_args("glm::vec4::__tostring",1,1)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec4::__tostring",1,"glm::vec4 *");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){
    SWIG_fail_ptr("vec4___tostring",1,SWIGTYPE_p_glm__vec4); }  result = glm_vec4___tostring(arg1);
  lua_pushlstring(L,(&result)->data(),(&result)->size()); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L);
  return SWIG_arg; }
static int _wrap_vec4___add__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = (glm::vec4 *) 0 ; glm::vec4 *arg2 = 0 ;
  glm::vec4 result; SWIG_check_num_args("glm::vec4::operator +",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec4::operator +",1,"glm::vec4 *");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::vec4::operator +",2,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){
    SWIG_fail_ptr("vec4___add",1,SWIGTYPE_p_glm__vec4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec4,0))){
    SWIG_fail_ptr("vec4___add",2,SWIGTYPE_p_glm__vec4); } 
  result = glm_vec4_operator_Sa___SWIG_0(arg1,(glm::vec4 const &)*arg2); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_vec4___add__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = (glm::vec4 *) 0 ; float arg2 ;
  glm::vec4 result; SWIG_check_num_args("glm::vec4::operator +",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec4::operator +",1,"glm::vec4 *");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::vec4::operator +",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){
    SWIG_fail_ptr("vec4___add",1,SWIGTYPE_p_glm__vec4); }  arg2 = (float)lua_tonumber(L, 2);
  result = glm_vec4_operator_Sa___SWIG_1(arg1,arg2); { glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_vec4___add(lua_State* L) { int argc; int argv[3]={ 1,2,3} ; argc = lua_gettop(L); if (argc == 2) { int _v = 0;
    { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_vec4___add__SWIG_0(L);}  check_1:
  if (argc == 2) { return _wrap_vec4___add__SWIG_1(L);} 
  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'vec4___add'\n" "  Possible C/C++ prototypes are:\n"
  "    glm::vec4::operator +(glm::vec4 const &)\n" "    glm::vec4::operator +(float)\n"); lua_error(L);return 0; }
static int _wrap_vec4___sub__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = (glm::vec4 *) 0 ; glm::vec4 *arg2 = 0 ;
  glm::vec4 result; SWIG_check_num_args("glm::vec4::operator -",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec4::operator -",1,"glm::vec4 *");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::vec4::operator -",2,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){
    SWIG_fail_ptr("vec4___sub",1,SWIGTYPE_p_glm__vec4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec4,0))){
    SWIG_fail_ptr("vec4___sub",2,SWIGTYPE_p_glm__vec4); } 
  result = glm_vec4_operator_Ss___SWIG_0(arg1,(glm::vec4 const &)*arg2); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_vec4___sub__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = (glm::vec4 *) 0 ; float arg2 ;
  glm::vec4 result; SWIG_check_num_args("glm::vec4::operator -",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec4::operator -",1,"glm::vec4 *");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::vec4::operator -",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){
    SWIG_fail_ptr("vec4___sub",1,SWIGTYPE_p_glm__vec4); }  arg2 = (float)lua_tonumber(L, 2);
  result = glm_vec4_operator_Ss___SWIG_1(arg1,arg2); { glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_vec4___sub(lua_State* L) { int argc; int argv[3]={ 1,2,3} ; argc = lua_gettop(L); if (argc == 2) { int _v = 0;
    { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_vec4___sub__SWIG_0(L);}  check_1:
  if (argc == 2) { return _wrap_vec4___sub__SWIG_1(L);} 
  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'vec4___sub'\n" "  Possible C/C++ prototypes are:\n"
  "    glm::vec4::operator -(glm::vec4 const &)\n" "    glm::vec4::operator -(float)\n"); lua_error(L);return 0; }
static int _wrap_vec4___mul__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = (glm::vec4 *) 0 ; glm::vec4 *arg2 = 0 ;
  glm::vec4 result; SWIG_check_num_args("glm::vec4::operator *",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec4::operator *",1,"glm::vec4 *");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::vec4::operator *",2,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){
    SWIG_fail_ptr("vec4___mul",1,SWIGTYPE_p_glm__vec4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec4,0))){
    SWIG_fail_ptr("vec4___mul",2,SWIGTYPE_p_glm__vec4); } 
  result = glm_vec4_operator_Sm___SWIG_0(arg1,(glm::vec4 const &)*arg2); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_vec4___mul__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = (glm::vec4 *) 0 ; float arg2 ;
  glm::vec4 result; SWIG_check_num_args("glm::vec4::operator *",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec4::operator *",1,"glm::vec4 *");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::vec4::operator *",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){
    SWIG_fail_ptr("vec4___mul",1,SWIGTYPE_p_glm__vec4); }  arg2 = (float)lua_tonumber(L, 2);
  result = glm_vec4_operator_Sm___SWIG_1(arg1,arg2); { glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_vec4___mul(lua_State* L) { int argc; int argv[3]={ 1,2,3} ; argc = lua_gettop(L); if (argc == 2) { int _v = 0;
    { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_vec4___mul__SWIG_0(L);}  check_1:
  if (argc == 2) { return _wrap_vec4___mul__SWIG_1(L);} 
  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'vec4___mul'\n" "  Possible C/C++ prototypes are:\n"
  "    glm::vec4::operator *(glm::vec4 const &)\n" "    glm::vec4::operator *(float)\n"); lua_error(L);return 0; }
static int _wrap_vec4___div__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = (glm::vec4 *) 0 ; glm::vec4 *arg2 = 0 ;
  glm::vec4 result; SWIG_check_num_args("glm::vec4::operator /",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec4::operator /",1,"glm::vec4 *");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::vec4::operator /",2,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){
    SWIG_fail_ptr("vec4___div",1,SWIGTYPE_p_glm__vec4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec4,0))){
    SWIG_fail_ptr("vec4___div",2,SWIGTYPE_p_glm__vec4); } 
  result = glm_vec4_operator_Sd___SWIG_0(arg1,(glm::vec4 const &)*arg2); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_vec4___div__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = (glm::vec4 *) 0 ; float arg2 ;
  glm::vec4 result; SWIG_check_num_args("glm::vec4::operator /",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec4::operator /",1,"glm::vec4 *");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::vec4::operator /",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){
    SWIG_fail_ptr("vec4___div",1,SWIGTYPE_p_glm__vec4); }  arg2 = (float)lua_tonumber(L, 2);
  result = glm_vec4_operator_Sd___SWIG_1(arg1,arg2); { glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_vec4___div(lua_State* L) { int argc; int argv[3]={ 1,2,3} ; argc = lua_gettop(L); if (argc == 2) { int _v = 0;
    { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_vec4___div__SWIG_0(L);}  check_1:
  if (argc == 2) { return _wrap_vec4___div__SWIG_1(L);} 
  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'vec4___div'\n" "  Possible C/C++ prototypes are:\n"
  "    glm::vec4::operator /(glm::vec4 const &)\n" "    glm::vec4::operator /(float)\n"); lua_error(L);return 0; }
static int _wrap_vec4___eq(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = (glm::vec4 *) 0 ; glm::vec4 *arg2 = 0 ;
  bool result; SWIG_check_num_args("glm::vec4::operator ==",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::vec4::operator ==",1,"glm::vec4 *");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::vec4::operator ==",2,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){
    SWIG_fail_ptr("vec4___eq",1,SWIGTYPE_p_glm__vec4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec4,0))){
    SWIG_fail_ptr("vec4___eq",2,SWIGTYPE_p_glm__vec4); } 
  result = (bool)glm_vec4_operator_Se__Se_(arg1,(glm::vec4 const &)*arg2); lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static void swig_delete_vec4(void *obj) {
glm::vec4 *arg1 = (glm::vec4 *) obj;
delete arg1;
}
static int _proxy__wrap_new_vec4(lua_State *L) {
    assert(lua_istable(L,1));
    lua_pushcfunction(L,_wrap_new_vec4);
    assert(!lua_isnil(L,-1));
    lua_replace(L,1); /* replace our table with real constructor */
    lua_call(L,lua_gettop(L)-1,1);
    return 1;
}
static swig_lua_attribute swig_vec4_attributes[] = {
    { "x", _wrap_vec4_x_get, _wrap_vec4_x_set },
    { "y", _wrap_vec4_y_get, _wrap_vec4_y_set },
    { "z", _wrap_vec4_z_get, _wrap_vec4_z_set },
    { "w", _wrap_vec4_w_get, _wrap_vec4_w_set },
    {0,0,0}
};
static swig_lua_method swig_vec4_methods[]= {
    { "__getitem", _wrap_vec4___getitem},
    { "__setitem", _wrap_vec4___setitem},
    { "__tostring", _wrap_vec4___tostring},
    { "__add", _wrap_vec4___add},
    { "__sub", _wrap_vec4___sub},
    { "__mul", _wrap_vec4___mul},
    { "__div", _wrap_vec4___div},
    { "__eq", _wrap_vec4___eq},
    {0,0}
};
static swig_lua_method swig_vec4_meta[] = {
    { "__getitem", _wrap_vec4___getitem},
    { "__setitem", _wrap_vec4___setitem},
    { "__tostring", _wrap_vec4___tostring},
    { "__add", _wrap_vec4___add},
    { "__sub", _wrap_vec4___sub},
    { "__mul", _wrap_vec4___mul},
    { "__div", _wrap_vec4___div},
    { "__eq", _wrap_vec4___eq},
    {0,0}
};

static swig_lua_attribute swig_vec4_Sf_SwigStatic_attributes[] = {
    {0,0,0}
};
static swig_lua_const_info swig_vec4_Sf_SwigStatic_constants[]= {
    {0,0,0,0,0,0}
};
static swig_lua_method swig_vec4_Sf_SwigStatic_methods[]= {
    { "length", _wrap_vec4_length},
    {0,0}
};
static swig_lua_class* swig_vec4_Sf_SwigStatic_classes[]= {
    0
};

static swig_lua_namespace swig_vec4_Sf_SwigStatic = {
    "vec4",
    swig_vec4_Sf_SwigStatic_methods,
    swig_vec4_Sf_SwigStatic_attributes,
    swig_vec4_Sf_SwigStatic_constants,
    swig_vec4_Sf_SwigStatic_classes,
    0
};
static swig_lua_class *swig_vec4_bases[] = {0};
static const char *swig_vec4_base_names[] = {0};
static swig_lua_class _wrap_class_vec4 = { "vec4", "vec4", &SWIGTYPE_p_glm__vec4,_proxy__wrap_new_vec4, swig_delete_vec4, swig_vec4_methods, swig_vec4_attributes, &swig_vec4_Sf_SwigStatic, swig_vec4_meta, swig_vec4_bases, swig_vec4_base_names };

static int _wrap_add__SWIG_6(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; float arg2 ; glm::vec4 result;
  SWIG_check_num_args("glm::operator +",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator +",1,"glm::vec4 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::operator +",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("add",1,SWIGTYPE_p_glm__vec4); } 
  arg2 = (float)lua_tonumber(L, 2); result = glm::operator +((glm::vec4 const &)*arg1,arg2); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_add__SWIG_7(lua_State* L) { int SWIG_arg = 0; float arg1 ; glm::vec4 *arg2 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::operator +",2,2) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::operator +",1,"float");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator +",2,"glm::vec4 const &"); arg1 = (float)lua_tonumber(L, 1);
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("add",2,SWIGTYPE_p_glm__vec4); } 
  result = glm::operator +(arg1,(glm::vec4 const &)*arg2); { glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_add__SWIG_8(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 *arg2 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::operator +",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator +",1,"glm::vec4 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator +",2,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("add",1,SWIGTYPE_p_glm__vec4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("add",2,SWIGTYPE_p_glm__vec4); } 
  result = glm::operator +((glm::vec4 const &)*arg1,(glm::vec4 const &)*arg2); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_sub__SWIG_6(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; float arg2 ; glm::vec4 result;
  SWIG_check_num_args("glm::operator -",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator -",1,"glm::vec4 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::operator -",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("sub",1,SWIGTYPE_p_glm__vec4); } 
  arg2 = (float)lua_tonumber(L, 2); result = glm::operator -((glm::vec4 const &)*arg1,arg2); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_sub__SWIG_7(lua_State* L) { int SWIG_arg = 0; float arg1 ; glm::vec4 *arg2 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::operator -",2,2) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::operator -",1,"float");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator -",2,"glm::vec4 const &"); arg1 = (float)lua_tonumber(L, 1);
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("sub",2,SWIGTYPE_p_glm__vec4); } 
  result = glm::operator -(arg1,(glm::vec4 const &)*arg2); { glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_sub__SWIG_8(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 *arg2 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::operator -",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator -",1,"glm::vec4 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator -",2,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("sub",1,SWIGTYPE_p_glm__vec4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("sub",2,SWIGTYPE_p_glm__vec4); } 
  result = glm::operator -((glm::vec4 const &)*arg1,(glm::vec4 const &)*arg2); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mul__SWIG_6(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; float arg2 ; glm::vec4 result;
  SWIG_check_num_args("glm::operator *",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator *",1,"glm::vec4 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::operator *",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("mul",1,SWIGTYPE_p_glm__vec4); } 
  arg2 = (float)lua_tonumber(L, 2); result = glm::operator *((glm::vec4 const &)*arg1,arg2); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mul__SWIG_7(lua_State* L) { int SWIG_arg = 0; float arg1 ; glm::vec4 *arg2 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::operator *",2,2) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::operator *",1,"float");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator *",2,"glm::vec4 const &"); arg1 = (float)lua_tonumber(L, 1);
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("mul",2,SWIGTYPE_p_glm__vec4); } 
  result = glm::operator *(arg1,(glm::vec4 const &)*arg2); { glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mul__SWIG_8(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 *arg2 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::operator *",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator *",1,"glm::vec4 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator *",2,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("mul",1,SWIGTYPE_p_glm__vec4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("mul",2,SWIGTYPE_p_glm__vec4); } 
  result = glm::operator *((glm::vec4 const &)*arg1,(glm::vec4 const &)*arg2); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_div__SWIG_6(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; float arg2 ; glm::vec4 result;
  SWIG_check_num_args("glm::operator /",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator /",1,"glm::vec4 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::operator /",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("div",1,SWIGTYPE_p_glm__vec4); } 
  arg2 = (float)lua_tonumber(L, 2); result = glm::operator /((glm::vec4 const &)*arg1,arg2); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_div__SWIG_7(lua_State* L) { int SWIG_arg = 0; float arg1 ; glm::vec4 *arg2 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::operator /",2,2) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::operator /",1,"float");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator /",2,"glm::vec4 const &"); arg1 = (float)lua_tonumber(L, 1);
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("div",2,SWIGTYPE_p_glm__vec4); } 
  result = glm::operator /(arg1,(glm::vec4 const &)*arg2); { glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_div__SWIG_8(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 *arg2 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::operator /",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator /",1,"glm::vec4 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator /",2,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("div",1,SWIGTYPE_p_glm__vec4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("div",2,SWIGTYPE_p_glm__vec4); } 
  result = glm::operator /((glm::vec4 const &)*arg1,(glm::vec4 const &)*arg2); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_eq__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 *arg2 = 0 ; bool result;
  SWIG_check_num_args("glm::operator ==",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator ==",1,"glm::vec4 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator ==",2,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("eq",1,SWIGTYPE_p_glm__vec4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("eq",2,SWIGTYPE_p_glm__vec4); } 
  result = (bool)glm::operator ==((glm::vec4 const &)*arg1,(glm::vec4 const &)*arg2);
  lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_mat3_length(lua_State* L) { int SWIG_arg = 0; glm::length_t result;
  SWIG_check_num_args("glm::mat3::length",0,0) result = (glm::length_t)glm::mat3::length();
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_new_mat3__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::mat3 *result = 0 ;
  SWIG_check_num_args("glm::mat3::mat3",0,0) result = (glm::mat3 *)new glm::mat3();
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_glm__mat3,1); SWIG_arg++;  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L);
  return SWIG_arg; }
static int _wrap_new_mat3__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::mat3 *arg1 = 0 ; glm::mat3 *result = 0 ;
  SWIG_check_num_args("glm::mat3::mat3",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::mat3::mat3",1,"glm::mat3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat3,0))){ SWIG_fail_ptr("new_mat3",1,SWIGTYPE_p_glm__mat3); }
   result = (glm::mat3 *)new glm::mat3((glm::mat3 const &)*arg1);
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_glm__mat3,1); SWIG_arg++;  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L);
  return SWIG_arg; }
static int _wrap_new_mat3__SWIG_2(lua_State* L) { int SWIG_arg = 0; float arg1 ; glm::mat3 *result = 0 ;
  SWIG_check_num_args("glm::mat3::mat3",1,1) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::mat3::mat3",1,"float");
  arg1 = (float)lua_tonumber(L, 1); result = (glm::mat3 *)new glm::mat3(arg1);
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_glm__mat3,1); SWIG_arg++;  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L);
  return SWIG_arg; }
static int _wrap_new_mat3__SWIG_3(lua_State* L) { int SWIG_arg = 0; float arg1 ; float arg2 ; float arg3 ; float arg4 ;
  float arg5 ; float arg6 ; float arg7 ; float arg8 ; float arg9 ; glm::mat3 *result = 0 ;
  SWIG_check_num_args("glm::mat3::mat3",9,9) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::mat3::mat3",1,"float");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::mat3::mat3",2,"float");
  if(!lua_isnumber(L,3)) SWIG_fail_arg("glm::mat3::mat3",3,"float");
  if(!lua_isnumber(L,4)) SWIG_fail_arg("glm::mat3::mat3",4,"float");
  if(!lua_isnumber(L,5)) SWIG_fail_arg("glm::mat3::mat3",5,"float");
  if(!lua_isnumber(L,6)) SWIG_fail_arg("glm::mat3::mat3",6,"float");
  if(!lua_isnumber(L,7)) SWIG_fail_arg("glm::mat3::mat3",7,"float");
  if(!lua_isnumber(L,8)) SWIG_fail_arg("glm::mat3::mat3",8,"float");
  if(!lua_isnumber(L,9)) SWIG_fail_arg("glm::mat3::mat3",9,"float"); arg1 = (float)lua_tonumber(L, 1);
  arg2 = (float)lua_tonumber(L, 2); arg3 = (float)lua_tonumber(L, 3); arg4 = (float)lua_tonumber(L, 4);
  arg5 = (float)lua_tonumber(L, 5); arg6 = (float)lua_tonumber(L, 6); arg7 = (float)lua_tonumber(L, 7);
  arg8 = (float)lua_tonumber(L, 8); arg9 = (float)lua_tonumber(L, 9);
  result = (glm::mat3 *)new glm::mat3(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9);
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_glm__mat3,1); SWIG_arg++;  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L);
  return SWIG_arg; }
static int _wrap_new_mat3__SWIG_4(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 *arg2 = 0 ;
  glm::vec3 *arg3 = 0 ; glm::mat3 *result = 0 ; SWIG_check_num_args("glm::mat3::mat3",3,3)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::mat3::mat3",1,"glm::vec3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::mat3::mat3",2,"glm::vec3 const &");
  if(!lua_isuserdata(L,3)) SWIG_fail_arg("glm::mat3::mat3",3,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("new_mat3",1,SWIGTYPE_p_glm__vec3); }
   if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("new_mat3",2,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("new_mat3",3,SWIGTYPE_p_glm__vec3); }
   result = (glm::mat3 *)new glm::mat3((glm::vec3 const &)*arg1,(glm::vec3 const &)*arg2,(glm::vec3 const &)*arg3);
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_glm__mat3,1); SWIG_arg++;  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L);
  return SWIG_arg; }
static int _wrap_new_mat3__SWIG_5(lua_State* L) { int SWIG_arg = 0; glm::mat4 *arg1 = 0 ; glm::mat3 *result = 0 ;
  SWIG_check_num_args("glm::mat3::mat3",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::mat3::mat3",1,"glm::mat4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat4,0))){ SWIG_fail_ptr("new_mat3",1,SWIGTYPE_p_glm__mat4); }
   result = (glm::mat3 *)new glm::mat3((glm::mat4 const &)*arg1);
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_glm__mat3,1); SWIG_arg++;  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L);
  return SWIG_arg; }
static int _wrap_new_mat3(lua_State* L) { int argc; int argv[10]={ 1,2,3,4,5,6,7,8,9,10} ; argc = lua_gettop(L);
  if (argc == 0) { return _wrap_new_mat3__SWIG_0(L);}  if (argc == 1) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__mat3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_new_mat3__SWIG_1(L);}  check_2: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__mat4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_new_mat3__SWIG_5(L);}  check_3: if (argc == 1) {
    return _wrap_new_mat3__SWIG_2(L);}  if (argc == 3) { return _wrap_new_mat3__SWIG_4(L);}  if (argc == 9) {
    return _wrap_new_mat3__SWIG_3(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'new_mat3'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::mat3::mat3()\n" "    glm::mat3::mat3(glm::mat3 const &)\n"
  "    glm::mat3::mat3(float)\n" "    glm::mat3::mat3(float,float,float,float,float,float,float,float,float)\n"
  "    glm::mat3::mat3(glm::vec3 const &,glm::vec3 const &,glm::vec3 const &)\n" "    glm::mat3::mat3(glm::mat4 const &)\n");
  lua_error(L);return 0; }
static int _wrap_mat3___getitem(lua_State* L) { int SWIG_arg = 0; glm::mat3 *arg1 = (glm::mat3 *) 0 ; int arg2 ;
  glm::vec3 result; SWIG_check_num_args("glm::mat3::__getitem__",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::mat3::__getitem__",1,"glm::mat3 *");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::mat3::__getitem__",2,"int");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat3,0))){
    SWIG_fail_ptr("mat3___getitem",1,SWIGTYPE_p_glm__mat3); }  arg2 = (int)lua_tonumber(L, 2); try {
    result = glm_mat3___getitem__(arg1,arg2);}  catch(std::out_of_range &_e) { SWIG_exception(SWIG_IndexError, (&_e)->what()); }
   { glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mat3___setitem(lua_State* L) { int SWIG_arg = 0; glm::mat3 *arg1 = (glm::mat3 *) 0 ; int arg2 ;
  glm::vec3 arg3 ; glm::vec3 *argp3 ; SWIG_check_num_args("glm::mat3::__setitem__",3,3)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::mat3::__setitem__",1,"glm::mat3 *");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::mat3::__setitem__",2,"int");
  if(!lua_isuserdata(L,3)) SWIG_fail_arg("glm::mat3::__setitem__",3,"glm::vec3");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat3,0))){
    SWIG_fail_ptr("mat3___setitem",1,SWIGTYPE_p_glm__mat3); }  arg2 = (int)lua_tonumber(L, 2);
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&argp3,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("mat3___setitem",3,SWIGTYPE_p_glm__vec3); }  arg3 = *argp3; try { glm_mat3___setitem__(arg1,arg2,arg3);}
   catch(std::out_of_range &_e) { SWIG_exception(SWIG_IndexError, (&_e)->what()); }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mat3___tostring(lua_State* L) { int SWIG_arg = 0; glm::mat3 *arg1 = (glm::mat3 *) 0 ; std::string result;
  SWIG_check_num_args("glm::mat3::__tostring",1,1)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::mat3::__tostring",1,"glm::mat3 *");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat3,0))){
    SWIG_fail_ptr("mat3___tostring",1,SWIGTYPE_p_glm__mat3); }  result = glm_mat3___tostring(arg1);
  lua_pushlstring(L,(&result)->data(),(&result)->size()); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L);
  return SWIG_arg; }
static int _wrap_mat3___add__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::mat3 *arg1 = (glm::mat3 *) 0 ; float arg2 ;
  glm::mat3 result; SWIG_check_num_args("glm::mat3::operator +",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::mat3::operator +",1,"glm::mat3 *");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::mat3::operator +",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat3,0))){
    SWIG_fail_ptr("mat3___add",1,SWIGTYPE_p_glm__mat3); }  arg2 = (float)lua_tonumber(L, 2);
  result = glm_mat3_operator_Sa___SWIG_0(arg1,arg2); { glm::mat3 * resultptr = new glm::mat3((const glm::mat3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mat3___add__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::mat3 *arg1 = (glm::mat3 *) 0 ; glm::mat3 *arg2 = 0 ;
  glm::mat3 result; SWIG_check_num_args("glm::mat3::operator +",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::mat3::operator +",1,"glm::mat3 *");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::mat3::operator +",2,"glm::mat3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat3,0))){
    SWIG_fail_ptr("mat3___add",1,SWIGTYPE_p_glm__mat3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__mat3,0))){
    SWIG_fail_ptr("mat3___add",2,SWIGTYPE_p_glm__mat3); } 
  result = glm_mat3_operator_Sa___SWIG_1(arg1,(glm::mat3 const &)*arg2); {
    glm::mat3 * resultptr = new glm::mat3((const glm::mat3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mat3___add(lua_State* L) { int argc; int argv[3]={ 1,2,3} ; argc = lua_gettop(L); if (argc == 2) { int _v = 0;
    { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__mat3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_mat3___add__SWIG_1(L);}  check_1:
  if (argc == 2) { return _wrap_mat3___add__SWIG_0(L);} 
  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'mat3___add'\n" "  Possible C/C++ prototypes are:\n"
  "    glm::mat3::operator +(float)\n" "    glm::mat3::operator +(glm::mat3 const &)\n"); lua_error(L);return 0; }
static int _wrap_mat3___sub__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::mat3 *arg1 = (glm::mat3 *) 0 ; float arg2 ;
  glm::mat3 result; SWIG_check_num_args("glm::mat3::operator -",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::mat3::operator -",1,"glm::mat3 *");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::mat3::operator -",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat3,0))){
    SWIG_fail_ptr("mat3___sub",1,SWIGTYPE_p_glm__mat3); }  arg2 = (float)lua_tonumber(L, 2);
  result = glm_mat3_operator_Ss___SWIG_0(arg1,arg2); { glm::mat3 * resultptr = new glm::mat3((const glm::mat3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mat3___sub__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::mat3 *arg1 = (glm::mat3 *) 0 ; glm::mat3 *arg2 = 0 ;
  glm::mat3 result; SWIG_check_num_args("glm::mat3::operator -",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::mat3::operator -",1,"glm::mat3 *");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::mat3::operator -",2,"glm::mat3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat3,0))){
    SWIG_fail_ptr("mat3___sub",1,SWIGTYPE_p_glm__mat3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__mat3,0))){
    SWIG_fail_ptr("mat3___sub",2,SWIGTYPE_p_glm__mat3); } 
  result = glm_mat3_operator_Ss___SWIG_1(arg1,(glm::mat3 const &)*arg2); {
    glm::mat3 * resultptr = new glm::mat3((const glm::mat3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mat3___sub(lua_State* L) { int argc; int argv[3]={ 1,2,3} ; argc = lua_gettop(L); if (argc == 2) { int _v = 0;
    { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__mat3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_mat3___sub__SWIG_1(L);}  check_1:
  if (argc == 2) { return _wrap_mat3___sub__SWIG_0(L);} 
  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'mat3___sub'\n" "  Possible C/C++ prototypes are:\n"
  "    glm::mat3::operator -(float)\n" "    glm::mat3::operator -(glm::mat3 const &)\n"); lua_error(L);return 0; }
static int _wrap_mat3___mul__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::mat3 *arg1 = (glm::mat3 *) 0 ; float arg2 ;
  glm::mat3 result; SWIG_check_num_args("glm::mat3::operator *",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::mat3::operator *",1,"glm::mat3 *");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::mat3::operator *",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat3,0))){
    SWIG_fail_ptr("mat3___mul",1,SWIGTYPE_p_glm__mat3); }  arg2 = (float)lua_tonumber(L, 2);
  result = glm_mat3_operator_Sm___SWIG_0(arg1,arg2); { glm::mat3 * resultptr = new glm::mat3((const glm::mat3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mat3___mul__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::mat3 *arg1 = (glm::mat3 *) 0 ; glm::mat3 *arg2 = 0 ;
  glm::mat3 result; SWIG_check_num_args("glm::mat3::operator *",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::mat3::operator *",1,"glm::mat3 *");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::mat3::operator *",2,"glm::mat3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat3,0))){
    SWIG_fail_ptr("mat3___mul",1,SWIGTYPE_p_glm__mat3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__mat3,0))){
    SWIG_fail_ptr("mat3___mul",2,SWIGTYPE_p_glm__mat3); } 
  result = glm_mat3_operator_Sm___SWIG_1(arg1,(glm::mat3 const &)*arg2); {
    glm::mat3 * resultptr = new glm::mat3((const glm::mat3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mat3___mul__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::mat3 *arg1 = (glm::mat3 *) 0 ; glm::vec3 *arg2 = 0 ;
  glm::vec3 result; SWIG_check_num_args("glm::mat3::operator *",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::mat3::operator *",1,"glm::mat3 *");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::mat3::operator *",2,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat3,0))){
    SWIG_fail_ptr("mat3___mul",1,SWIGTYPE_p_glm__mat3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("mat3___mul",2,SWIGTYPE_p_glm__vec3); } 
  result = glm_mat3_operator_Sm___SWIG_2(arg1,(glm::vec3 const &)*arg2); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mat3___mul(lua_State* L) { int argc; int argv[3]={ 1,2,3} ; argc = lua_gettop(L); if (argc == 2) { int _v = 0;
    { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__mat3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_mat3___mul__SWIG_1(L);}  check_1:
  if (argc == 2) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_mat3___mul__SWIG_2(L);}  check_2:
  if (argc == 2) { return _wrap_mat3___mul__SWIG_0(L);} 
  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'mat3___mul'\n" "  Possible C/C++ prototypes are:\n"
  "    glm::mat3::operator *(float)\n" "    glm::mat3::operator *(glm::mat3 const &)\n"
  "    glm::mat3::operator *(glm::vec3 const &)\n"); lua_error(L);return 0; }
static int _wrap_mat3___div__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::mat3 *arg1 = (glm::mat3 *) 0 ; float arg2 ;
  glm::mat3 result; SWIG_check_num_args("glm::mat3::operator /",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::mat3::operator /",1,"glm::mat3 *");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::mat3::operator /",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat3,0))){
    SWIG_fail_ptr("mat3___div",1,SWIGTYPE_p_glm__mat3); }  arg2 = (float)lua_tonumber(L, 2);
  result = glm_mat3_operator_Sd___SWIG_0(arg1,arg2); { glm::mat3 * resultptr = new glm::mat3((const glm::mat3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mat3___div__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::mat3 *arg1 = (glm::mat3 *) 0 ; glm::mat3 *arg2 = 0 ;
  glm::mat3 result; SWIG_check_num_args("glm::mat3::operator /",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::mat3::operator /",1,"glm::mat3 *");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::mat3::operator /",2,"glm::mat3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat3,0))){
    SWIG_fail_ptr("mat3___div",1,SWIGTYPE_p_glm__mat3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__mat3,0))){
    SWIG_fail_ptr("mat3___div",2,SWIGTYPE_p_glm__mat3); } 
  result = glm_mat3_operator_Sd___SWIG_1(arg1,(glm::mat3 const &)*arg2); {
    glm::mat3 * resultptr = new glm::mat3((const glm::mat3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mat3___div__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::mat3 *arg1 = (glm::mat3 *) 0 ; glm::vec3 *arg2 = 0 ;
  glm::vec3 result; SWIG_check_num_args("glm::mat3::operator /",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::mat3::operator /",1,"glm::mat3 *");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::mat3::operator /",2,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat3,0))){
    SWIG_fail_ptr("mat3___div",1,SWIGTYPE_p_glm__mat3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("mat3___div",2,SWIGTYPE_p_glm__vec3); } 
  result = glm_mat3_operator_Sd___SWIG_2(arg1,(glm::vec3 const &)*arg2); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mat3___div(lua_State* L) { int argc; int argv[3]={ 1,2,3} ; argc = lua_gettop(L); if (argc == 2) { int _v = 0;
    { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__mat3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_mat3___div__SWIG_1(L);}  check_1:
  if (argc == 2) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_mat3___div__SWIG_2(L);}  check_2:
  if (argc == 2) { return _wrap_mat3___div__SWIG_0(L);} 
  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'mat3___div'\n" "  Possible C/C++ prototypes are:\n"
  "    glm::mat3::operator /(float)\n" "    glm::mat3::operator /(glm::mat3 const &)\n"
  "    glm::mat3::operator /(glm::vec3 const &)\n"); lua_error(L);return 0; }
static int _wrap_mat3___eq(lua_State* L) { int SWIG_arg = 0; glm::mat3 *arg1 = (glm::mat3 *) 0 ; glm::mat3 *arg2 = 0 ;
  bool result; SWIG_check_num_args("glm::mat3::operator ==",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::mat3::operator ==",1,"glm::mat3 *");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::mat3::operator ==",2,"glm::mat3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat3,0))){
    SWIG_fail_ptr("mat3___eq",1,SWIGTYPE_p_glm__mat3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__mat3,0))){
    SWIG_fail_ptr("mat3___eq",2,SWIGTYPE_p_glm__mat3); } 
  result = (bool)glm_mat3_operator_Se__Se_(arg1,(glm::mat3 const &)*arg2); lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static void swig_delete_mat3(void *obj) {
glm::mat3 *arg1 = (glm::mat3 *) obj;
delete arg1;
}
static int _proxy__wrap_new_mat3(lua_State *L) {
    assert(lua_istable(L,1));
    lua_pushcfunction(L,_wrap_new_mat3);
    assert(!lua_isnil(L,-1));
    lua_replace(L,1); /* replace our table with real constructor */
    lua_call(L,lua_gettop(L)-1,1);
    return 1;
}
static swig_lua_attribute swig_mat3_attributes[] = {
    {0,0,0}
};
static swig_lua_method swig_mat3_methods[]= {
    { "__getitem", _wrap_mat3___getitem},
    { "__setitem", _wrap_mat3___setitem},
    { "__tostring", _wrap_mat3___tostring},
    { "__add", _wrap_mat3___add},
    { "__sub", _wrap_mat3___sub},
    { "__mul", _wrap_mat3___mul},
    { "__div", _wrap_mat3___div},
    { "__eq", _wrap_mat3___eq},
    {0,0}
};
static swig_lua_method swig_mat3_meta[] = {
    { "__getitem", _wrap_mat3___getitem},
    { "__setitem", _wrap_mat3___setitem},
    { "__tostring", _wrap_mat3___tostring},
    { "__add", _wrap_mat3___add},
    { "__sub", _wrap_mat3___sub},
    { "__mul", _wrap_mat3___mul},
    { "__div", _wrap_mat3___div},
    { "__eq", _wrap_mat3___eq},
    {0,0}
};

static swig_lua_attribute swig_mat3_Sf_SwigStatic_attributes[] = {
    {0,0,0}
};
static swig_lua_const_info swig_mat3_Sf_SwigStatic_constants[]= {
    {0,0,0,0,0,0}
};
static swig_lua_method swig_mat3_Sf_SwigStatic_methods[]= {
    { "length", _wrap_mat3_length},
    {0,0}
};
static swig_lua_class* swig_mat3_Sf_SwigStatic_classes[]= {
    0
};

static swig_lua_namespace swig_mat3_Sf_SwigStatic = {
    "mat3",
    swig_mat3_Sf_SwigStatic_methods,
    swig_mat3_Sf_SwigStatic_attributes,
    swig_mat3_Sf_SwigStatic_constants,
    swig_mat3_Sf_SwigStatic_classes,
    0
};
static swig_lua_class *swig_mat3_bases[] = {0};
static const char *swig_mat3_base_names[] = {0};
static swig_lua_class _wrap_class_mat3 = { "mat3", "mat3", &SWIGTYPE_p_glm__mat3,_proxy__wrap_new_mat3, swig_delete_mat3, swig_mat3_methods, swig_mat3_attributes, &swig_mat3_Sf_SwigStatic, swig_mat3_meta, swig_mat3_bases, swig_mat3_base_names };

static int _wrap_add__SWIG_9(lua_State* L) { int SWIG_arg = 0; glm::mat3 *arg1 = 0 ; float arg2 ; glm::mat3 result;
  SWIG_check_num_args("glm::operator +",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator +",1,"glm::mat3 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::operator +",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat3,0))){ SWIG_fail_ptr("add",1,SWIGTYPE_p_glm__mat3); } 
  arg2 = (float)lua_tonumber(L, 2); result = glm::operator +((glm::mat3 const &)*arg1,arg2); {
    glm::mat3 * resultptr = new glm::mat3((const glm::mat3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_add__SWIG_10(lua_State* L) { int SWIG_arg = 0; float arg1 ; glm::mat3 *arg2 = 0 ; glm::mat3 result;
  SWIG_check_num_args("glm::operator +",2,2) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::operator +",1,"float");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator +",2,"glm::mat3 const &"); arg1 = (float)lua_tonumber(L, 1);
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__mat3,0))){ SWIG_fail_ptr("add",2,SWIGTYPE_p_glm__mat3); } 
  result = glm::operator +(arg1,(glm::mat3 const &)*arg2); { glm::mat3 * resultptr = new glm::mat3((const glm::mat3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_add__SWIG_11(lua_State* L) { int SWIG_arg = 0; glm::mat3 *arg1 = 0 ; glm::mat3 *arg2 = 0 ; glm::mat3 result;
  SWIG_check_num_args("glm::operator +",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator +",1,"glm::mat3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator +",2,"glm::mat3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat3,0))){ SWIG_fail_ptr("add",1,SWIGTYPE_p_glm__mat3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__mat3,0))){ SWIG_fail_ptr("add",2,SWIGTYPE_p_glm__mat3); } 
  result = glm::operator +((glm::mat3 const &)*arg1,(glm::mat3 const &)*arg2); {
    glm::mat3 * resultptr = new glm::mat3((const glm::mat3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_sub__SWIG_9(lua_State* L) { int SWIG_arg = 0; glm::mat3 *arg1 = 0 ; float arg2 ; glm::mat3 result;
  SWIG_check_num_args("glm::operator -",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator -",1,"glm::mat3 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::operator -",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat3,0))){ SWIG_fail_ptr("sub",1,SWIGTYPE_p_glm__mat3); } 
  arg2 = (float)lua_tonumber(L, 2); result = glm::operator -((glm::mat3 const &)*arg1,arg2); {
    glm::mat3 * resultptr = new glm::mat3((const glm::mat3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_sub__SWIG_10(lua_State* L) { int SWIG_arg = 0; float arg1 ; glm::mat3 *arg2 = 0 ; glm::mat3 result;
  SWIG_check_num_args("glm::operator -",2,2) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::operator -",1,"float");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator -",2,"glm::mat3 const &"); arg1 = (float)lua_tonumber(L, 1);
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__mat3,0))){ SWIG_fail_ptr("sub",2,SWIGTYPE_p_glm__mat3); } 
  result = glm::operator -(arg1,(glm::mat3 const &)*arg2); { glm::mat3 * resultptr = new glm::mat3((const glm::mat3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_sub__SWIG_11(lua_State* L) { int SWIG_arg = 0; glm::mat3 *arg1 = 0 ; glm::mat3 *arg2 = 0 ; glm::mat3 result;
  SWIG_check_num_args("glm::operator -",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator -",1,"glm::mat3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator -",2,"glm::mat3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat3,0))){ SWIG_fail_ptr("sub",1,SWIGTYPE_p_glm__mat3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__mat3,0))){ SWIG_fail_ptr("sub",2,SWIGTYPE_p_glm__mat3); } 
  result = glm::operator -((glm::mat3 const &)*arg1,(glm::mat3 const &)*arg2); {
    glm::mat3 * resultptr = new glm::mat3((const glm::mat3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mul__SWIG_9(lua_State* L) { int SWIG_arg = 0; glm::mat3 *arg1 = 0 ; float arg2 ; glm::mat3 result;
  SWIG_check_num_args("glm::operator *",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator *",1,"glm::mat3 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::operator *",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat3,0))){ SWIG_fail_ptr("mul",1,SWIGTYPE_p_glm__mat3); } 
  arg2 = (float)lua_tonumber(L, 2); result = glm::operator *((glm::mat3 const &)*arg1,arg2); {
    glm::mat3 * resultptr = new glm::mat3((const glm::mat3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mul__SWIG_10(lua_State* L) { int SWIG_arg = 0; float arg1 ; glm::mat3 *arg2 = 0 ; glm::mat3 result;
  SWIG_check_num_args("glm::operator *",2,2) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::operator *",1,"float");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator *",2,"glm::mat3 const &"); arg1 = (float)lua_tonumber(L, 1);
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__mat3,0))){ SWIG_fail_ptr("mul",2,SWIGTYPE_p_glm__mat3); } 
  result = glm::operator *(arg1,(glm::mat3 const &)*arg2); { glm::mat3 * resultptr = new glm::mat3((const glm::mat3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mul__SWIG_11(lua_State* L) { int SWIG_arg = 0; glm::mat3 *arg1 = 0 ; glm::mat3 *arg2 = 0 ; glm::mat3 result;
  SWIG_check_num_args("glm::operator *",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator *",1,"glm::mat3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator *",2,"glm::mat3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat3,0))){ SWIG_fail_ptr("mul",1,SWIGTYPE_p_glm__mat3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__mat3,0))){ SWIG_fail_ptr("mul",2,SWIGTYPE_p_glm__mat3); } 
  result = glm::operator *((glm::mat3 const &)*arg1,(glm::mat3 const &)*arg2); {
    glm::mat3 * resultptr = new glm::mat3((const glm::mat3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mul__SWIG_12(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::mat3 *arg2 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::operator *",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator *",1,"glm::vec3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator *",2,"glm::mat3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("mul",1,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__mat3,0))){ SWIG_fail_ptr("mul",2,SWIGTYPE_p_glm__mat3); } 
  result = glm::operator *((glm::vec3 const &)*arg1,(glm::mat3 const &)*arg2); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mul__SWIG_13(lua_State* L) { int SWIG_arg = 0; glm::mat3 *arg1 = 0 ; glm::vec3 *arg2 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::operator *",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator *",1,"glm::mat3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator *",2,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat3,0))){ SWIG_fail_ptr("mul",1,SWIGTYPE_p_glm__mat3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("mul",2,SWIGTYPE_p_glm__vec3); } 
  result = glm::operator *((glm::mat3 const &)*arg1,(glm::vec3 const &)*arg2); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_div__SWIG_9(lua_State* L) { int SWIG_arg = 0; glm::mat3 *arg1 = 0 ; float arg2 ; glm::mat3 result;
  SWIG_check_num_args("glm::operator /",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator /",1,"glm::mat3 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::operator /",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat3,0))){ SWIG_fail_ptr("div",1,SWIGTYPE_p_glm__mat3); } 
  arg2 = (float)lua_tonumber(L, 2); result = glm::operator /((glm::mat3 const &)*arg1,arg2); {
    glm::mat3 * resultptr = new glm::mat3((const glm::mat3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_div__SWIG_10(lua_State* L) { int SWIG_arg = 0; float arg1 ; glm::mat3 *arg2 = 0 ; glm::mat3 result;
  SWIG_check_num_args("glm::operator /",2,2) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::operator /",1,"float");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator /",2,"glm::mat3 const &"); arg1 = (float)lua_tonumber(L, 1);
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__mat3,0))){ SWIG_fail_ptr("div",2,SWIGTYPE_p_glm__mat3); } 
  result = glm::operator /(arg1,(glm::mat3 const &)*arg2); { glm::mat3 * resultptr = new glm::mat3((const glm::mat3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_div__SWIG_11(lua_State* L) { int SWIG_arg = 0; glm::mat3 *arg1 = 0 ; glm::mat3 *arg2 = 0 ; glm::mat3 result;
  SWIG_check_num_args("glm::operator /",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator /",1,"glm::mat3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator /",2,"glm::mat3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat3,0))){ SWIG_fail_ptr("div",1,SWIGTYPE_p_glm__mat3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__mat3,0))){ SWIG_fail_ptr("div",2,SWIGTYPE_p_glm__mat3); } 
  result = glm::operator /((glm::mat3 const &)*arg1,(glm::mat3 const &)*arg2); {
    glm::mat3 * resultptr = new glm::mat3((const glm::mat3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_div__SWIG_12(lua_State* L) { int SWIG_arg = 0; glm::mat3 *arg1 = 0 ; glm::vec3 *arg2 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::operator /",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator /",1,"glm::mat3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator /",2,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat3,0))){ SWIG_fail_ptr("div",1,SWIGTYPE_p_glm__mat3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("div",2,SWIGTYPE_p_glm__vec3); } 
  result = glm::operator /((glm::mat3 const &)*arg1,(glm::vec3 const &)*arg2); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_div__SWIG_13(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::mat3 *arg2 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::operator /",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator /",1,"glm::vec3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator /",2,"glm::mat3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("div",1,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__mat3,0))){ SWIG_fail_ptr("div",2,SWIGTYPE_p_glm__mat3); } 
  result = glm::operator /((glm::vec3 const &)*arg1,(glm::mat3 const &)*arg2); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_eq__SWIG_3(lua_State* L) { int SWIG_arg = 0; glm::mat3 *arg1 = 0 ; glm::mat3 *arg2 = 0 ; bool result;
  SWIG_check_num_args("glm::operator ==",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator ==",1,"glm::mat3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator ==",2,"glm::mat3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat3,0))){ SWIG_fail_ptr("eq",1,SWIGTYPE_p_glm__mat3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__mat3,0))){ SWIG_fail_ptr("eq",2,SWIGTYPE_p_glm__mat3); } 
  result = (bool)glm::operator ==((glm::mat3 const &)*arg1,(glm::mat3 const &)*arg2);
  lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_mat4_length(lua_State* L) { int SWIG_arg = 0; glm::length_t result;
  SWIG_check_num_args("glm::mat4::length",0,0) result = (glm::length_t)glm::mat4::length();
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_new_mat4__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::mat4 *result = 0 ;
  SWIG_check_num_args("glm::mat4::mat4",0,0) result = (glm::mat4 *)new glm::mat4();
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_glm__mat4,1); SWIG_arg++;  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L);
  return SWIG_arg; }
static int _wrap_new_mat4__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::mat4 *arg1 = 0 ; glm::mat4 *result = 0 ;
  SWIG_check_num_args("glm::mat4::mat4",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::mat4::mat4",1,"glm::mat4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat4,0))){ SWIG_fail_ptr("new_mat4",1,SWIGTYPE_p_glm__mat4); }
   result = (glm::mat4 *)new glm::mat4((glm::mat4 const &)*arg1);
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_glm__mat4,1); SWIG_arg++;  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L);
  return SWIG_arg; }
static int _wrap_new_mat4__SWIG_2(lua_State* L) { int SWIG_arg = 0; float arg1 ; glm::mat4 *result = 0 ;
  SWIG_check_num_args("glm::mat4::mat4",1,1) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::mat4::mat4",1,"float");
  arg1 = (float)lua_tonumber(L, 1); result = (glm::mat4 *)new glm::mat4(arg1);
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_glm__mat4,1); SWIG_arg++;  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L);
  return SWIG_arg; }
static int _wrap_new_mat4__SWIG_3(lua_State* L) { int SWIG_arg = 0; float arg1 ; float arg2 ; float arg3 ; float arg4 ;
  float arg5 ; float arg6 ; float arg7 ; float arg8 ; float arg9 ; float arg10 ; float arg11 ; float arg12 ; float arg13 ;
  float arg14 ; float arg15 ; float arg16 ; glm::mat4 *result = 0 ; SWIG_check_num_args("glm::mat4::mat4",16,16)
  if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::mat4::mat4",1,"float");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::mat4::mat4",2,"float");
  if(!lua_isnumber(L,3)) SWIG_fail_arg("glm::mat4::mat4",3,"float");
  if(!lua_isnumber(L,4)) SWIG_fail_arg("glm::mat4::mat4",4,"float");
  if(!lua_isnumber(L,5)) SWIG_fail_arg("glm::mat4::mat4",5,"float");
  if(!lua_isnumber(L,6)) SWIG_fail_arg("glm::mat4::mat4",6,"float");
  if(!lua_isnumber(L,7)) SWIG_fail_arg("glm::mat4::mat4",7,"float");
  if(!lua_isnumber(L,8)) SWIG_fail_arg("glm::mat4::mat4",8,"float");
  if(!lua_isnumber(L,9)) SWIG_fail_arg("glm::mat4::mat4",9,"float");
  if(!lua_isnumber(L,10)) SWIG_fail_arg("glm::mat4::mat4",10,"float");
  if(!lua_isnumber(L,11)) SWIG_fail_arg("glm::mat4::mat4",11,"float");
  if(!lua_isnumber(L,12)) SWIG_fail_arg("glm::mat4::mat4",12,"float");
  if(!lua_isnumber(L,13)) SWIG_fail_arg("glm::mat4::mat4",13,"float");
  if(!lua_isnumber(L,14)) SWIG_fail_arg("glm::mat4::mat4",14,"float");
  if(!lua_isnumber(L,15)) SWIG_fail_arg("glm::mat4::mat4",15,"float");
  if(!lua_isnumber(L,16)) SWIG_fail_arg("glm::mat4::mat4",16,"float"); arg1 = (float)lua_tonumber(L, 1);
  arg2 = (float)lua_tonumber(L, 2); arg3 = (float)lua_tonumber(L, 3); arg4 = (float)lua_tonumber(L, 4);
  arg5 = (float)lua_tonumber(L, 5); arg6 = (float)lua_tonumber(L, 6); arg7 = (float)lua_tonumber(L, 7);
  arg8 = (float)lua_tonumber(L, 8); arg9 = (float)lua_tonumber(L, 9); arg10 = (float)lua_tonumber(L, 10);
  arg11 = (float)lua_tonumber(L, 11); arg12 = (float)lua_tonumber(L, 12); arg13 = (float)lua_tonumber(L, 13);
  arg14 = (float)lua_tonumber(L, 14); arg15 = (float)lua_tonumber(L, 15); arg16 = (float)lua_tonumber(L, 16);
  result = (glm::mat4 *)new glm::mat4(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15,arg16);
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_glm__mat4,1); SWIG_arg++;  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L);
  return SWIG_arg; }
static int _wrap_new_mat4__SWIG_4(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 *arg2 = 0 ;
  glm::vec4 *arg3 = 0 ; glm::vec4 *arg4 = 0 ; glm::mat4 *result = 0 ; SWIG_check_num_args("glm::mat4::mat4",4,4)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::mat4::mat4",1,"glm::vec4 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::mat4::mat4",2,"glm::vec4 const &");
  if(!lua_isuserdata(L,3)) SWIG_fail_arg("glm::mat4::mat4",3,"glm::vec4 const &");
  if(!lua_isuserdata(L,4)) SWIG_fail_arg("glm::mat4::mat4",4,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("new_mat4",1,SWIGTYPE_p_glm__vec4); }
   if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec4,0))){
    SWIG_fail_ptr("new_mat4",2,SWIGTYPE_p_glm__vec4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("new_mat4",3,SWIGTYPE_p_glm__vec4); }
   if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_glm__vec4,0))){
    SWIG_fail_ptr("new_mat4",4,SWIGTYPE_p_glm__vec4); } 
  result = (glm::mat4 *)new glm::mat4((glm::vec4 const &)*arg1,(glm::vec4 const &)*arg2,(glm::vec4 const &)*arg3,(glm::vec4 const &)*arg4);
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_glm__mat4,1); SWIG_arg++;  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L);
  return SWIG_arg; }
static int _wrap_new_mat4__SWIG_5(lua_State* L) { int SWIG_arg = 0; glm::mat3 *arg1 = 0 ; glm::mat4 *result = 0 ;
  SWIG_check_num_args("glm::mat4::mat4",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::mat4::mat4",1,"glm::mat3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat3,0))){ SWIG_fail_ptr("new_mat4",1,SWIGTYPE_p_glm__mat3); }
   result = (glm::mat4 *)new glm::mat4((glm::mat3 const &)*arg1);
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_glm__mat4,1); SWIG_arg++;  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L);
  return SWIG_arg; }
static int _wrap_new_mat4(lua_State* L) { int argc; int argv[17]={ 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17} ;
  argc = lua_gettop(L); if (argc == 0) { return _wrap_new_mat4__SWIG_0(L);}  if (argc == 1) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__mat4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_new_mat4__SWIG_1(L);}  check_2: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__mat3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_new_mat4__SWIG_5(L);}  check_3: if (argc == 1) {
    return _wrap_new_mat4__SWIG_2(L);}  if (argc == 4) { return _wrap_new_mat4__SWIG_4(L);}  if (argc == 16) {
    return _wrap_new_mat4__SWIG_3(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'new_mat4'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::mat4::mat4()\n" "    glm::mat4::mat4(glm::mat4 const &)\n"
  "    glm::mat4::mat4(float)\n"
  "    glm::mat4::mat4(float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float)\n"
  "    glm::mat4::mat4(glm::vec4 const &,glm::vec4 const &,glm::vec4 const &,glm::vec4 const &)\n"
  "    glm::mat4::mat4(glm::mat3 const &)\n"); lua_error(L);return 0; }
static int _wrap_mat4___getitem(lua_State* L) { int SWIG_arg = 0; glm::mat4 *arg1 = (glm::mat4 *) 0 ; int arg2 ;
  glm::vec4 result; SWIG_check_num_args("glm::mat4::__getitem__",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::mat4::__getitem__",1,"glm::mat4 *");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::mat4::__getitem__",2,"int");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat4,0))){
    SWIG_fail_ptr("mat4___getitem",1,SWIGTYPE_p_glm__mat4); }  arg2 = (int)lua_tonumber(L, 2); try {
    result = glm_mat4___getitem__(arg1,arg2);}  catch(std::out_of_range &_e) { SWIG_exception(SWIG_IndexError, (&_e)->what()); }
   { glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mat4___setitem(lua_State* L) { int SWIG_arg = 0; glm::mat4 *arg1 = (glm::mat4 *) 0 ; int arg2 ;
  glm::vec4 arg3 ; glm::vec4 *argp3 ; SWIG_check_num_args("glm::mat4::__setitem__",3,3)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::mat4::__setitem__",1,"glm::mat4 *");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::mat4::__setitem__",2,"int");
  if(!lua_isuserdata(L,3)) SWIG_fail_arg("glm::mat4::__setitem__",3,"glm::vec4");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat4,0))){
    SWIG_fail_ptr("mat4___setitem",1,SWIGTYPE_p_glm__mat4); }  arg2 = (int)lua_tonumber(L, 2);
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&argp3,SWIGTYPE_p_glm__vec4,0))){
    SWIG_fail_ptr("mat4___setitem",3,SWIGTYPE_p_glm__vec4); }  arg3 = *argp3; try { glm_mat4___setitem__(arg1,arg2,arg3);}
   catch(std::out_of_range &_e) { SWIG_exception(SWIG_IndexError, (&_e)->what()); }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mat4___tostring(lua_State* L) { int SWIG_arg = 0; glm::mat4 *arg1 = (glm::mat4 *) 0 ; std::string result;
  SWIG_check_num_args("glm::mat4::__tostring",1,1)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::mat4::__tostring",1,"glm::mat4 *");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat4,0))){
    SWIG_fail_ptr("mat4___tostring",1,SWIGTYPE_p_glm__mat4); }  result = glm_mat4___tostring(arg1);
  lua_pushlstring(L,(&result)->data(),(&result)->size()); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L);
  return SWIG_arg; }
static int _wrap_mat4___add__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::mat4 *arg1 = (glm::mat4 *) 0 ; float arg2 ;
  glm::mat4 result; SWIG_check_num_args("glm::mat4::operator +",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::mat4::operator +",1,"glm::mat4 *");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::mat4::operator +",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat4,0))){
    SWIG_fail_ptr("mat4___add",1,SWIGTYPE_p_glm__mat4); }  arg2 = (float)lua_tonumber(L, 2);
  result = glm_mat4_operator_Sa___SWIG_0(arg1,arg2); { glm::mat4 * resultptr = new glm::mat4((const glm::mat4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mat4___add__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::mat4 *arg1 = (glm::mat4 *) 0 ; glm::mat4 *arg2 = 0 ;
  glm::mat4 result; SWIG_check_num_args("glm::mat4::operator +",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::mat4::operator +",1,"glm::mat4 *");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::mat4::operator +",2,"glm::mat4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat4,0))){
    SWIG_fail_ptr("mat4___add",1,SWIGTYPE_p_glm__mat4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__mat4,0))){
    SWIG_fail_ptr("mat4___add",2,SWIGTYPE_p_glm__mat4); } 
  result = glm_mat4_operator_Sa___SWIG_1(arg1,(glm::mat4 const &)*arg2); {
    glm::mat4 * resultptr = new glm::mat4((const glm::mat4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mat4___add(lua_State* L) { int argc; int argv[3]={ 1,2,3} ; argc = lua_gettop(L); if (argc == 2) { int _v = 0;
    { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__mat4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_mat4___add__SWIG_1(L);}  check_1:
  if (argc == 2) { return _wrap_mat4___add__SWIG_0(L);} 
  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'mat4___add'\n" "  Possible C/C++ prototypes are:\n"
  "    glm::mat4::operator +(float)\n" "    glm::mat4::operator +(glm::mat4 const &)\n"); lua_error(L);return 0; }
static int _wrap_mat4___sub__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::mat4 *arg1 = (glm::mat4 *) 0 ; float arg2 ;
  glm::mat4 result; SWIG_check_num_args("glm::mat4::operator -",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::mat4::operator -",1,"glm::mat4 *");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::mat4::operator -",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat4,0))){
    SWIG_fail_ptr("mat4___sub",1,SWIGTYPE_p_glm__mat4); }  arg2 = (float)lua_tonumber(L, 2);
  result = glm_mat4_operator_Ss___SWIG_0(arg1,arg2); { glm::mat4 * resultptr = new glm::mat4((const glm::mat4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mat4___sub__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::mat4 *arg1 = (glm::mat4 *) 0 ; glm::mat4 *arg2 = 0 ;
  glm::mat4 result; SWIG_check_num_args("glm::mat4::operator -",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::mat4::operator -",1,"glm::mat4 *");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::mat4::operator -",2,"glm::mat4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat4,0))){
    SWIG_fail_ptr("mat4___sub",1,SWIGTYPE_p_glm__mat4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__mat4,0))){
    SWIG_fail_ptr("mat4___sub",2,SWIGTYPE_p_glm__mat4); } 
  result = glm_mat4_operator_Ss___SWIG_1(arg1,(glm::mat4 const &)*arg2); {
    glm::mat4 * resultptr = new glm::mat4((const glm::mat4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mat4___sub(lua_State* L) { int argc; int argv[3]={ 1,2,3} ; argc = lua_gettop(L); if (argc == 2) { int _v = 0;
    { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__mat4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_mat4___sub__SWIG_1(L);}  check_1:
  if (argc == 2) { return _wrap_mat4___sub__SWIG_0(L);} 
  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'mat4___sub'\n" "  Possible C/C++ prototypes are:\n"
  "    glm::mat4::operator -(float)\n" "    glm::mat4::operator -(glm::mat4 const &)\n"); lua_error(L);return 0; }
static int _wrap_mat4___mul__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::mat4 *arg1 = (glm::mat4 *) 0 ; float arg2 ;
  glm::mat4 result; SWIG_check_num_args("glm::mat4::operator *",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::mat4::operator *",1,"glm::mat4 *");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::mat4::operator *",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat4,0))){
    SWIG_fail_ptr("mat4___mul",1,SWIGTYPE_p_glm__mat4); }  arg2 = (float)lua_tonumber(L, 2);
  result = glm_mat4_operator_Sm___SWIG_0(arg1,arg2); { glm::mat4 * resultptr = new glm::mat4((const glm::mat4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mat4___mul__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::mat4 *arg1 = (glm::mat4 *) 0 ; glm::mat4 *arg2 = 0 ;
  glm::mat4 result; SWIG_check_num_args("glm::mat4::operator *",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::mat4::operator *",1,"glm::mat4 *");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::mat4::operator *",2,"glm::mat4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat4,0))){
    SWIG_fail_ptr("mat4___mul",1,SWIGTYPE_p_glm__mat4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__mat4,0))){
    SWIG_fail_ptr("mat4___mul",2,SWIGTYPE_p_glm__mat4); } 
  result = glm_mat4_operator_Sm___SWIG_1(arg1,(glm::mat4 const &)*arg2); {
    glm::mat4 * resultptr = new glm::mat4((const glm::mat4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mat4___mul__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::mat4 *arg1 = (glm::mat4 *) 0 ; glm::vec4 *arg2 = 0 ;
  glm::vec4 result; SWIG_check_num_args("glm::mat4::operator *",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::mat4::operator *",1,"glm::mat4 *");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::mat4::operator *",2,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat4,0))){
    SWIG_fail_ptr("mat4___mul",1,SWIGTYPE_p_glm__mat4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec4,0))){
    SWIG_fail_ptr("mat4___mul",2,SWIGTYPE_p_glm__vec4); } 
  result = glm_mat4_operator_Sm___SWIG_2(arg1,(glm::vec4 const &)*arg2); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mat4___mul(lua_State* L) { int argc; int argv[3]={ 1,2,3} ; argc = lua_gettop(L); if (argc == 2) { int _v = 0;
    { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__mat4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_mat4___mul__SWIG_1(L);}  check_1:
  if (argc == 2) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_mat4___mul__SWIG_2(L);}  check_2:
  if (argc == 2) { return _wrap_mat4___mul__SWIG_0(L);} 
  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'mat4___mul'\n" "  Possible C/C++ prototypes are:\n"
  "    glm::mat4::operator *(float)\n" "    glm::mat4::operator *(glm::mat4 const &)\n"
  "    glm::mat4::operator *(glm::vec4 const &)\n"); lua_error(L);return 0; }
static int _wrap_mat4___div__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::mat4 *arg1 = (glm::mat4 *) 0 ; float arg2 ;
  glm::mat4 result; SWIG_check_num_args("glm::mat4::operator /",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::mat4::operator /",1,"glm::mat4 *");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::mat4::operator /",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat4,0))){
    SWIG_fail_ptr("mat4___div",1,SWIGTYPE_p_glm__mat4); }  arg2 = (float)lua_tonumber(L, 2);
  result = glm_mat4_operator_Sd___SWIG_0(arg1,arg2); { glm::mat4 * resultptr = new glm::mat4((const glm::mat4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mat4___div__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::mat4 *arg1 = (glm::mat4 *) 0 ; glm::mat4 *arg2 = 0 ;
  glm::mat4 result; SWIG_check_num_args("glm::mat4::operator /",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::mat4::operator /",1,"glm::mat4 *");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::mat4::operator /",2,"glm::mat4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat4,0))){
    SWIG_fail_ptr("mat4___div",1,SWIGTYPE_p_glm__mat4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__mat4,0))){
    SWIG_fail_ptr("mat4___div",2,SWIGTYPE_p_glm__mat4); } 
  result = glm_mat4_operator_Sd___SWIG_1(arg1,(glm::mat4 const &)*arg2); {
    glm::mat4 * resultptr = new glm::mat4((const glm::mat4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mat4___div__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::mat4 *arg1 = (glm::mat4 *) 0 ; glm::vec4 *arg2 = 0 ;
  glm::vec4 result; SWIG_check_num_args("glm::mat4::operator /",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::mat4::operator /",1,"glm::mat4 *");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::mat4::operator /",2,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat4,0))){
    SWIG_fail_ptr("mat4___div",1,SWIGTYPE_p_glm__mat4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec4,0))){
    SWIG_fail_ptr("mat4___div",2,SWIGTYPE_p_glm__vec4); } 
  result = glm_mat4_operator_Sd___SWIG_2(arg1,(glm::vec4 const &)*arg2); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mat4___div(lua_State* L) { int argc; int argv[3]={ 1,2,3} ; argc = lua_gettop(L); if (argc == 2) { int _v = 0;
    { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__mat4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_mat4___div__SWIG_1(L);}  check_1:
  if (argc == 2) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_mat4___div__SWIG_2(L);}  check_2:
  if (argc == 2) { return _wrap_mat4___div__SWIG_0(L);} 
  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'mat4___div'\n" "  Possible C/C++ prototypes are:\n"
  "    glm::mat4::operator /(float)\n" "    glm::mat4::operator /(glm::mat4 const &)\n"
  "    glm::mat4::operator /(glm::vec4 const &)\n"); lua_error(L);return 0; }
static int _wrap_mat4___eq(lua_State* L) { int SWIG_arg = 0; glm::mat4 *arg1 = (glm::mat4 *) 0 ; glm::mat4 *arg2 = 0 ;
  bool result; SWIG_check_num_args("glm::mat4::operator ==",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::mat4::operator ==",1,"glm::mat4 *");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::mat4::operator ==",2,"glm::mat4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat4,0))){
    SWIG_fail_ptr("mat4___eq",1,SWIGTYPE_p_glm__mat4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__mat4,0))){
    SWIG_fail_ptr("mat4___eq",2,SWIGTYPE_p_glm__mat4); } 
  result = (bool)glm_mat4_operator_Se__Se_(arg1,(glm::mat4 const &)*arg2); lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static void swig_delete_mat4(void *obj) {
glm::mat4 *arg1 = (glm::mat4 *) obj;
delete arg1;
}
static int _proxy__wrap_new_mat4(lua_State *L) {
    assert(lua_istable(L,1));
    lua_pushcfunction(L,_wrap_new_mat4);
    assert(!lua_isnil(L,-1));
    lua_replace(L,1); /* replace our table with real constructor */
    lua_call(L,lua_gettop(L)-1,1);
    return 1;
}
static swig_lua_attribute swig_mat4_attributes[] = {
    {0,0,0}
};
static swig_lua_method swig_mat4_methods[]= {
    { "__getitem", _wrap_mat4___getitem},
    { "__setitem", _wrap_mat4___setitem},
    { "__tostring", _wrap_mat4___tostring},
    { "__add", _wrap_mat4___add},
    { "__sub", _wrap_mat4___sub},
    { "__mul", _wrap_mat4___mul},
    { "__div", _wrap_mat4___div},
    { "__eq", _wrap_mat4___eq},
    {0,0}
};
static swig_lua_method swig_mat4_meta[] = {
    { "__getitem", _wrap_mat4___getitem},
    { "__setitem", _wrap_mat4___setitem},
    { "__tostring", _wrap_mat4___tostring},
    { "__add", _wrap_mat4___add},
    { "__sub", _wrap_mat4___sub},
    { "__mul", _wrap_mat4___mul},
    { "__div", _wrap_mat4___div},
    { "__eq", _wrap_mat4___eq},
    {0,0}
};

static swig_lua_attribute swig_mat4_Sf_SwigStatic_attributes[] = {
    {0,0,0}
};
static swig_lua_const_info swig_mat4_Sf_SwigStatic_constants[]= {
    {0,0,0,0,0,0}
};
static swig_lua_method swig_mat4_Sf_SwigStatic_methods[]= {
    { "length", _wrap_mat4_length},
    {0,0}
};
static swig_lua_class* swig_mat4_Sf_SwigStatic_classes[]= {
    0
};

static swig_lua_namespace swig_mat4_Sf_SwigStatic = {
    "mat4",
    swig_mat4_Sf_SwigStatic_methods,
    swig_mat4_Sf_SwigStatic_attributes,
    swig_mat4_Sf_SwigStatic_constants,
    swig_mat4_Sf_SwigStatic_classes,
    0
};
static swig_lua_class *swig_mat4_bases[] = {0};
static const char *swig_mat4_base_names[] = {0};
static swig_lua_class _wrap_class_mat4 = { "mat4", "mat4", &SWIGTYPE_p_glm__mat4,_proxy__wrap_new_mat4, swig_delete_mat4, swig_mat4_methods, swig_mat4_attributes, &swig_mat4_Sf_SwigStatic, swig_mat4_meta, swig_mat4_bases, swig_mat4_base_names };

static int _wrap_add__SWIG_12(lua_State* L) { int SWIG_arg = 0; glm::mat4 *arg1 = 0 ; float arg2 ; glm::mat4 result;
  SWIG_check_num_args("glm::operator +",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator +",1,"glm::mat4 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::operator +",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat4,0))){ SWIG_fail_ptr("add",1,SWIGTYPE_p_glm__mat4); } 
  arg2 = (float)lua_tonumber(L, 2); result = glm::operator +((glm::mat4 const &)*arg1,arg2); {
    glm::mat4 * resultptr = new glm::mat4((const glm::mat4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_add__SWIG_13(lua_State* L) { int SWIG_arg = 0; float arg1 ; glm::mat4 *arg2 = 0 ; glm::mat4 result;
  SWIG_check_num_args("glm::operator +",2,2) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::operator +",1,"float");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator +",2,"glm::mat4 const &"); arg1 = (float)lua_tonumber(L, 1);
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__mat4,0))){ SWIG_fail_ptr("add",2,SWIGTYPE_p_glm__mat4); } 
  result = glm::operator +(arg1,(glm::mat4 const &)*arg2); { glm::mat4 * resultptr = new glm::mat4((const glm::mat4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_add__SWIG_14(lua_State* L) { int SWIG_arg = 0; glm::mat4 *arg1 = 0 ; glm::mat4 *arg2 = 0 ; glm::mat4 result;
  SWIG_check_num_args("glm::operator +",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator +",1,"glm::mat4 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator +",2,"glm::mat4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat4,0))){ SWIG_fail_ptr("add",1,SWIGTYPE_p_glm__mat4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__mat4,0))){ SWIG_fail_ptr("add",2,SWIGTYPE_p_glm__mat4); } 
  result = glm::operator +((glm::mat4 const &)*arg1,(glm::mat4 const &)*arg2); {
    glm::mat4 * resultptr = new glm::mat4((const glm::mat4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_sub__SWIG_12(lua_State* L) { int SWIG_arg = 0; glm::mat4 *arg1 = 0 ; float arg2 ; glm::mat4 result;
  SWIG_check_num_args("glm::operator -",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator -",1,"glm::mat4 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::operator -",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat4,0))){ SWIG_fail_ptr("sub",1,SWIGTYPE_p_glm__mat4); } 
  arg2 = (float)lua_tonumber(L, 2); result = glm::operator -((glm::mat4 const &)*arg1,arg2); {
    glm::mat4 * resultptr = new glm::mat4((const glm::mat4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_sub__SWIG_13(lua_State* L) { int SWIG_arg = 0; float arg1 ; glm::mat4 *arg2 = 0 ; glm::mat4 result;
  SWIG_check_num_args("glm::operator -",2,2) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::operator -",1,"float");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator -",2,"glm::mat4 const &"); arg1 = (float)lua_tonumber(L, 1);
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__mat4,0))){ SWIG_fail_ptr("sub",2,SWIGTYPE_p_glm__mat4); } 
  result = glm::operator -(arg1,(glm::mat4 const &)*arg2); { glm::mat4 * resultptr = new glm::mat4((const glm::mat4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_sub__SWIG_14(lua_State* L) { int SWIG_arg = 0; glm::mat4 *arg1 = 0 ; glm::mat4 *arg2 = 0 ; glm::mat4 result;
  SWIG_check_num_args("glm::operator -",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator -",1,"glm::mat4 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator -",2,"glm::mat4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat4,0))){ SWIG_fail_ptr("sub",1,SWIGTYPE_p_glm__mat4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__mat4,0))){ SWIG_fail_ptr("sub",2,SWIGTYPE_p_glm__mat4); } 
  result = glm::operator -((glm::mat4 const &)*arg1,(glm::mat4 const &)*arg2); {
    glm::mat4 * resultptr = new glm::mat4((const glm::mat4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_sub(lua_State* L) { int argc; int argv[3]={ 1,2,3} ; argc = lua_gettop(L); if (argc == 2) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_sub__SWIG_2(L);}  check_1: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; { { _v = lua_isnumber(L,argv[1]); } }  if (!_v) goto check_2;
    return _wrap_sub__SWIG_0(L);}  check_2: if (argc == 2) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_sub__SWIG_5(L);}  check_3: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_4; { { _v = lua_isnumber(L,argv[1]); } }  if (!_v) goto check_4;
    return _wrap_sub__SWIG_3(L);}  check_4: if (argc == 2) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_5; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_5; return _wrap_sub__SWIG_8(L);}  check_5: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_6; { { _v = lua_isnumber(L,argv[1]); } }  if (!_v) goto check_6;
    return _wrap_sub__SWIG_6(L);}  check_6: if (argc == 2) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__mat3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_7; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__mat3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_7; return _wrap_sub__SWIG_11(L);}  check_7: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__mat3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_8; { { _v = lua_isnumber(L,argv[1]); } }  if (!_v) goto check_8;
    return _wrap_sub__SWIG_9(L);}  check_8: if (argc == 2) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__mat4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_9; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__mat4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_9; return _wrap_sub__SWIG_14(L);}  check_9: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__mat4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_10; { { _v = lua_isnumber(L,argv[1]); } } 
    if (!_v) goto check_10; return _wrap_sub__SWIG_12(L);}  check_10: if (argc == 2) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__mat3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_11; return _wrap_sub__SWIG_10(L);}  check_11: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_12; return _wrap_sub__SWIG_7(L);}  check_12: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_13; return _wrap_sub__SWIG_1(L);}  check_13: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__mat4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_14; return _wrap_sub__SWIG_13(L);}  check_14: if (argc == 2) {
    return _wrap_sub__SWIG_4(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'sub'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::operator -(glm::vec2 const &,float)\n"
  "    glm::operator -(float,glm::vec2 const &)\n" "    glm::operator -(glm::vec2 const &,glm::vec2 const &)\n"
  "    glm::operator -(glm::vec3 const &,float)\n" "    glm::operator -(float,glm::vec3 const &)\n"
  "    glm::operator -(glm::vec3 const &,glm::vec3 const &)\n" "    glm::operator -(glm::vec4 const &,float)\n"
  "    glm::operator -(float,glm::vec4 const &)\n" "    glm::operator -(glm::vec4 const &,glm::vec4 const &)\n"
  "    glm::operator -(glm::mat3 const &,float)\n" "    glm::operator -(float,glm::mat3 const &)\n"
  "    glm::operator -(glm::mat3 const &,glm::mat3 const &)\n" "    glm::operator -(glm::mat4 const &,float)\n"
  "    glm::operator -(float,glm::mat4 const &)\n" "    glm::operator -(glm::mat4 const &,glm::mat4 const &)\n");
  lua_error(L);return 0; }
static int _wrap_mul__SWIG_14(lua_State* L) { int SWIG_arg = 0; glm::mat4 *arg1 = 0 ; float arg2 ; glm::mat4 result;
  SWIG_check_num_args("glm::operator *",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator *",1,"glm::mat4 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::operator *",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat4,0))){ SWIG_fail_ptr("mul",1,SWIGTYPE_p_glm__mat4); } 
  arg2 = (float)lua_tonumber(L, 2); result = glm::operator *((glm::mat4 const &)*arg1,arg2); {
    glm::mat4 * resultptr = new glm::mat4((const glm::mat4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mul__SWIG_15(lua_State* L) { int SWIG_arg = 0; float arg1 ; glm::mat4 *arg2 = 0 ; glm::mat4 result;
  SWIG_check_num_args("glm::operator *",2,2) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::operator *",1,"float");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator *",2,"glm::mat4 const &"); arg1 = (float)lua_tonumber(L, 1);
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__mat4,0))){ SWIG_fail_ptr("mul",2,SWIGTYPE_p_glm__mat4); } 
  result = glm::operator *(arg1,(glm::mat4 const &)*arg2); { glm::mat4 * resultptr = new glm::mat4((const glm::mat4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mul__SWIG_16(lua_State* L) { int SWIG_arg = 0; glm::mat4 *arg1 = 0 ; glm::mat4 *arg2 = 0 ; glm::mat4 result;
  SWIG_check_num_args("glm::operator *",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator *",1,"glm::mat4 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator *",2,"glm::mat4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat4,0))){ SWIG_fail_ptr("mul",1,SWIGTYPE_p_glm__mat4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__mat4,0))){ SWIG_fail_ptr("mul",2,SWIGTYPE_p_glm__mat4); } 
  result = glm::operator *((glm::mat4 const &)*arg1,(glm::mat4 const &)*arg2); {
    glm::mat4 * resultptr = new glm::mat4((const glm::mat4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mul__SWIG_17(lua_State* L) { int SWIG_arg = 0; glm::mat4 *arg1 = 0 ; glm::vec4 *arg2 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::operator *",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator *",1,"glm::mat4 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator *",2,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat4,0))){ SWIG_fail_ptr("mul",1,SWIGTYPE_p_glm__mat4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("mul",2,SWIGTYPE_p_glm__vec4); } 
  result = glm::operator *((glm::mat4 const &)*arg1,(glm::vec4 const &)*arg2); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mul__SWIG_18(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::mat4 *arg2 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::operator *",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator *",1,"glm::vec4 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator *",2,"glm::mat4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("mul",1,SWIGTYPE_p_glm__vec4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__mat4,0))){ SWIG_fail_ptr("mul",2,SWIGTYPE_p_glm__mat4); } 
  result = glm::operator *((glm::vec4 const &)*arg1,(glm::mat4 const &)*arg2); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_div__SWIG_14(lua_State* L) { int SWIG_arg = 0; glm::mat4 *arg1 = 0 ; float arg2 ; glm::mat4 result;
  SWIG_check_num_args("glm::operator /",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator /",1,"glm::mat4 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::operator /",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat4,0))){ SWIG_fail_ptr("div",1,SWIGTYPE_p_glm__mat4); } 
  arg2 = (float)lua_tonumber(L, 2); result = glm::operator /((glm::mat4 const &)*arg1,arg2); {
    glm::mat4 * resultptr = new glm::mat4((const glm::mat4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_div__SWIG_15(lua_State* L) { int SWIG_arg = 0; float arg1 ; glm::mat4 *arg2 = 0 ; glm::mat4 result;
  SWIG_check_num_args("glm::operator /",2,2) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::operator /",1,"float");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator /",2,"glm::mat4 const &"); arg1 = (float)lua_tonumber(L, 1);
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__mat4,0))){ SWIG_fail_ptr("div",2,SWIGTYPE_p_glm__mat4); } 
  result = glm::operator /(arg1,(glm::mat4 const &)*arg2); { glm::mat4 * resultptr = new glm::mat4((const glm::mat4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_div__SWIG_16(lua_State* L) { int SWIG_arg = 0; glm::mat4 *arg1 = 0 ; glm::mat4 *arg2 = 0 ; glm::mat4 result;
  SWIG_check_num_args("glm::operator /",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator /",1,"glm::mat4 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator /",2,"glm::mat4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat4,0))){ SWIG_fail_ptr("div",1,SWIGTYPE_p_glm__mat4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__mat4,0))){ SWIG_fail_ptr("div",2,SWIGTYPE_p_glm__mat4); } 
  result = glm::operator /((glm::mat4 const &)*arg1,(glm::mat4 const &)*arg2); {
    glm::mat4 * resultptr = new glm::mat4((const glm::mat4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_div__SWIG_17(lua_State* L) { int SWIG_arg = 0; glm::mat4 *arg1 = 0 ; glm::vec4 *arg2 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::operator /",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator /",1,"glm::mat4 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator /",2,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat4,0))){ SWIG_fail_ptr("div",1,SWIGTYPE_p_glm__mat4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("div",2,SWIGTYPE_p_glm__vec4); } 
  result = glm::operator /((glm::mat4 const &)*arg1,(glm::vec4 const &)*arg2); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_div__SWIG_18(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::mat4 *arg2 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::operator /",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator /",1,"glm::vec4 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator /",2,"glm::mat4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("div",1,SWIGTYPE_p_glm__vec4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__mat4,0))){ SWIG_fail_ptr("div",2,SWIGTYPE_p_glm__mat4); } 
  result = glm::operator /((glm::vec4 const &)*arg1,(glm::mat4 const &)*arg2); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_eq__SWIG_4(lua_State* L) { int SWIG_arg = 0; glm::mat4 *arg1 = 0 ; glm::mat4 *arg2 = 0 ; bool result;
  SWIG_check_num_args("glm::operator ==",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator ==",1,"glm::mat4 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator ==",2,"glm::mat4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat4,0))){ SWIG_fail_ptr("eq",1,SWIGTYPE_p_glm__mat4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__mat4,0))){ SWIG_fail_ptr("eq",2,SWIGTYPE_p_glm__mat4); } 
  result = (bool)glm::operator ==((glm::mat4 const &)*arg1,(glm::mat4 const &)*arg2);
  lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_quat_x_set(lua_State* L) { int SWIG_arg = 0; glm::quat *arg1 = (glm::quat *) 0 ; float arg2 ;
  SWIG_check_num_args("glm::quat::x",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::quat::x",1,"glm::quat *");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::quat::x",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__quat,0))){
    SWIG_fail_ptr("quat_x_set",1,SWIGTYPE_p_glm__quat); }  arg2 = (float)lua_tonumber(L, 2); if (arg1) (arg1)->x = arg2;
  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_quat_x_get(lua_State* L) { int SWIG_arg = 0; glm::quat *arg1 = (glm::quat *) 0 ; float result;
  SWIG_check_num_args("glm::quat::x",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::quat::x",1,"glm::quat *");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__quat,0))){
    SWIG_fail_ptr("quat_x_get",1,SWIGTYPE_p_glm__quat); }  result = (float) ((arg1)->x);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_quat_y_set(lua_State* L) { int SWIG_arg = 0; glm::quat *arg1 = (glm::quat *) 0 ; float arg2 ;
  SWIG_check_num_args("glm::quat::y",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::quat::y",1,"glm::quat *");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::quat::y",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__quat,0))){
    SWIG_fail_ptr("quat_y_set",1,SWIGTYPE_p_glm__quat); }  arg2 = (float)lua_tonumber(L, 2); if (arg1) (arg1)->y = arg2;
  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_quat_y_get(lua_State* L) { int SWIG_arg = 0; glm::quat *arg1 = (glm::quat *) 0 ; float result;
  SWIG_check_num_args("glm::quat::y",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::quat::y",1,"glm::quat *");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__quat,0))){
    SWIG_fail_ptr("quat_y_get",1,SWIGTYPE_p_glm__quat); }  result = (float) ((arg1)->y);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_quat_z_set(lua_State* L) { int SWIG_arg = 0; glm::quat *arg1 = (glm::quat *) 0 ; float arg2 ;
  SWIG_check_num_args("glm::quat::z",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::quat::z",1,"glm::quat *");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::quat::z",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__quat,0))){
    SWIG_fail_ptr("quat_z_set",1,SWIGTYPE_p_glm__quat); }  arg2 = (float)lua_tonumber(L, 2); if (arg1) (arg1)->z = arg2;
  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_quat_z_get(lua_State* L) { int SWIG_arg = 0; glm::quat *arg1 = (glm::quat *) 0 ; float result;
  SWIG_check_num_args("glm::quat::z",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::quat::z",1,"glm::quat *");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__quat,0))){
    SWIG_fail_ptr("quat_z_get",1,SWIGTYPE_p_glm__quat); }  result = (float) ((arg1)->z);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_quat_w_set(lua_State* L) { int SWIG_arg = 0; glm::quat *arg1 = (glm::quat *) 0 ; float arg2 ;
  SWIG_check_num_args("glm::quat::w",2,2) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::quat::w",1,"glm::quat *");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::quat::w",2,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__quat,0))){
    SWIG_fail_ptr("quat_w_set",1,SWIGTYPE_p_glm__quat); }  arg2 = (float)lua_tonumber(L, 2); if (arg1) (arg1)->w = arg2;
  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_quat_w_get(lua_State* L) { int SWIG_arg = 0; glm::quat *arg1 = (glm::quat *) 0 ; float result;
  SWIG_check_num_args("glm::quat::w",1,1) if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::quat::w",1,"glm::quat *");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__quat,0))){
    SWIG_fail_ptr("quat_w_get",1,SWIGTYPE_p_glm__quat); }  result = (float) ((arg1)->w);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_quat_length(lua_State* L) { int SWIG_arg = 0; glm::length_t result;
  SWIG_check_num_args("glm::quat::length",0,0) result = (glm::length_t)glm::quat::length();
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_new_quat__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::quat *result = 0 ;
  SWIG_check_num_args("glm::quat::quat",0,0) result = (glm::quat *)new glm::quat();
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_glm__quat,1); SWIG_arg++;  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L);
  return SWIG_arg; }
static int _wrap_new_quat__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::quat *arg1 = 0 ; glm::quat *result = 0 ;
  SWIG_check_num_args("glm::quat::quat",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::quat::quat",1,"glm::quat const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__quat,0))){ SWIG_fail_ptr("new_quat",1,SWIGTYPE_p_glm__quat); }
   result = (glm::quat *)new glm::quat((glm::quat const &)*arg1);
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_glm__quat,1); SWIG_arg++;  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L);
  return SWIG_arg; }
static int _wrap_new_quat__SWIG_2(lua_State* L) { int SWIG_arg = 0; float arg1 ; glm::vec3 *arg2 = 0 ; glm::quat *result = 0 ;
  SWIG_check_num_args("glm::quat::quat",2,2) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::quat::quat",1,"float");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::quat::quat",2,"glm::vec3 const &"); arg1 = (float)lua_tonumber(L, 1);
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("new_quat",2,SWIGTYPE_p_glm__vec3); }
   result = (glm::quat *)new glm::quat(arg1,(glm::vec3 const &)*arg2);
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_glm__quat,1); SWIG_arg++;  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L);
  return SWIG_arg; }
static int _wrap_new_quat__SWIG_3(lua_State* L) { int SWIG_arg = 0; float arg1 ; float arg2 ; float arg3 ; float arg4 ;
  glm::quat *result = 0 ; SWIG_check_num_args("glm::quat::quat",4,4)
  if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::quat::quat",1,"float");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::quat::quat",2,"float");
  if(!lua_isnumber(L,3)) SWIG_fail_arg("glm::quat::quat",3,"float");
  if(!lua_isnumber(L,4)) SWIG_fail_arg("glm::quat::quat",4,"float"); arg1 = (float)lua_tonumber(L, 1);
  arg2 = (float)lua_tonumber(L, 2); arg3 = (float)lua_tonumber(L, 3); arg4 = (float)lua_tonumber(L, 4);
  result = (glm::quat *)new glm::quat(arg1,arg2,arg3,arg4); SWIG_NewPointerObj(L,result,SWIGTYPE_p_glm__quat,1); SWIG_arg++; 
  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_new_quat__SWIG_4(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 *arg2 = 0 ;
  glm::quat *result = 0 ; SWIG_check_num_args("glm::quat::quat",2,2)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::quat::quat",1,"glm::vec3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::quat::quat",2,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("new_quat",1,SWIGTYPE_p_glm__vec3); }
   if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("new_quat",2,SWIGTYPE_p_glm__vec3); } 
  result = (glm::quat *)new glm::quat((glm::vec3 const &)*arg1,(glm::vec3 const &)*arg2);
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_glm__quat,1); SWIG_arg++;  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L);
  return SWIG_arg; }
static int _wrap_new_quat__SWIG_5(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::quat *result = 0 ;
  SWIG_check_num_args("glm::quat::quat",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::quat::quat",1,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("new_quat",1,SWIGTYPE_p_glm__vec3); }
   result = (glm::quat *)new glm::quat((glm::vec3 const &)*arg1);
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_glm__quat,1); SWIG_arg++;  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L);
  return SWIG_arg; }
static int _wrap_new_quat__SWIG_6(lua_State* L) { int SWIG_arg = 0; glm::mat3 *arg1 = 0 ; glm::quat *result = 0 ;
  SWIG_check_num_args("glm::quat::quat",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::quat::quat",1,"glm::mat3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat3,0))){ SWIG_fail_ptr("new_quat",1,SWIGTYPE_p_glm__mat3); }
   result = (glm::quat *)new glm::quat((glm::mat3 const &)*arg1);
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_glm__quat,1); SWIG_arg++;  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L);
  return SWIG_arg; }
static int _wrap_new_quat__SWIG_7(lua_State* L) { int SWIG_arg = 0; glm::mat4 *arg1 = 0 ; glm::quat *result = 0 ;
  SWIG_check_num_args("glm::quat::quat",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::quat::quat",1,"glm::mat4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat4,0))){ SWIG_fail_ptr("new_quat",1,SWIGTYPE_p_glm__mat4); }
   result = (glm::quat *)new glm::quat((glm::mat4 const &)*arg1);
  SWIG_NewPointerObj(L,result,SWIGTYPE_p_glm__quat,1); SWIG_arg++;  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L);
  return SWIG_arg; }
static int _wrap_new_quat(lua_State* L) { int argc; int argv[5]={ 1,2,3,4,5} ; argc = lua_gettop(L); if (argc == 0) {
    return _wrap_new_quat__SWIG_0(L);}  if (argc == 1) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__quat, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_new_quat__SWIG_1(L);}  check_2: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_new_quat__SWIG_5(L);}  check_3: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__mat3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_4; return _wrap_new_quat__SWIG_6(L);}  check_4: if (argc == 1) {
    return _wrap_new_quat__SWIG_7(L);}  if (argc == 2) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_6; return _wrap_new_quat__SWIG_4(L);}  check_6: if (argc == 2) {
    return _wrap_new_quat__SWIG_2(L);}  if (argc == 4) { return _wrap_new_quat__SWIG_3(L);} 
  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'new_quat'\n" "  Possible C/C++ prototypes are:\n"
  "    glm::quat::quat()\n" "    glm::quat::quat(glm::quat const &)\n" "    glm::quat::quat(float,glm::vec3 const &)\n"
  "    glm::quat::quat(float,float,float,float)\n" "    glm::quat::quat(glm::vec3 const &,glm::vec3 const &)\n"
  "    glm::quat::quat(glm::vec3 const &)\n" "    glm::quat::quat(glm::mat3 const &)\n"
  "    glm::quat::quat(glm::mat4 const &)\n"); lua_error(L);return 0; }
static int _wrap_quat___getitem(lua_State* L) { int SWIG_arg = 0; glm::quat *arg1 = (glm::quat *) 0 ; int arg2 ; float result;
  SWIG_check_num_args("glm::quat::__getitem__",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::quat::__getitem__",1,"glm::quat *");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::quat::__getitem__",2,"int");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__quat,0))){
    SWIG_fail_ptr("quat___getitem",1,SWIGTYPE_p_glm__quat); }  arg2 = (int)lua_tonumber(L, 2); try {
    result = (float)glm_quat___getitem__(arg1,arg2);}  catch(std::out_of_range &_e) {
    SWIG_exception(SWIG_IndexError, (&_e)->what()); }  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg;
  if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_quat___setitem(lua_State* L) { int SWIG_arg = 0; glm::quat *arg1 = (glm::quat *) 0 ; int arg2 ; float arg3 ;
  SWIG_check_num_args("glm::quat::__setitem__",3,3)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::quat::__setitem__",1,"glm::quat *");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::quat::__setitem__",2,"int");
  if(!lua_isnumber(L,3)) SWIG_fail_arg("glm::quat::__setitem__",3,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__quat,0))){
    SWIG_fail_ptr("quat___setitem",1,SWIGTYPE_p_glm__quat); }  arg2 = (int)lua_tonumber(L, 2); arg3 = (float)lua_tonumber(L, 3);
  try { glm_quat___setitem__(arg1,arg2,arg3);}  catch(std::out_of_range &_e) { SWIG_exception(SWIG_IndexError, (&_e)->what()); }
   return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_quat___tostring(lua_State* L) { int SWIG_arg = 0; glm::quat *arg1 = (glm::quat *) 0 ; std::string result;
  SWIG_check_num_args("glm::quat::__tostring",1,1)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::quat::__tostring",1,"glm::quat *");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__quat,0))){
    SWIG_fail_ptr("quat___tostring",1,SWIGTYPE_p_glm__quat); }  result = glm_quat___tostring(arg1);
  lua_pushlstring(L,(&result)->data(),(&result)->size()); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L);
  return SWIG_arg; }
static int _wrap_quat___add(lua_State* L) { int SWIG_arg = 0; glm::quat *arg1 = (glm::quat *) 0 ; glm::quat *arg2 = 0 ;
  glm::quat result; SWIG_check_num_args("glm::quat::operator +",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::quat::operator +",1,"glm::quat *");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::quat::operator +",2,"glm::quat const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__quat,0))){
    SWIG_fail_ptr("quat___add",1,SWIGTYPE_p_glm__quat); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__quat,0))){
    SWIG_fail_ptr("quat___add",2,SWIGTYPE_p_glm__quat); }  result = glm_quat_operator_Sa_(arg1,(glm::quat const &)*arg2); {
    glm::quat * resultptr = new glm::quat((const glm::quat &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__quat,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_quat___mul__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::quat *arg1 = (glm::quat *) 0 ; glm::quat *arg2 = 0 ;
  glm::quat result; SWIG_check_num_args("glm::quat::operator *",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::quat::operator *",1,"glm::quat *");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::quat::operator *",2,"glm::quat const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__quat,0))){
    SWIG_fail_ptr("quat___mul",1,SWIGTYPE_p_glm__quat); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__quat,0))){
    SWIG_fail_ptr("quat___mul",2,SWIGTYPE_p_glm__quat); } 
  result = glm_quat_operator_Sm___SWIG_0(arg1,(glm::quat const &)*arg2); {
    glm::quat * resultptr = new glm::quat((const glm::quat &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__quat,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_quat___mul__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::quat *arg1 = (glm::quat *) 0 ; glm::vec3 *arg2 = 0 ;
  glm::vec3 result; SWIG_check_num_args("glm::quat::operator *",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::quat::operator *",1,"glm::quat *");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::quat::operator *",2,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__quat,0))){
    SWIG_fail_ptr("quat___mul",1,SWIGTYPE_p_glm__quat); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("quat___mul",2,SWIGTYPE_p_glm__vec3); } 
  result = glm_quat_operator_Sm___SWIG_1(arg1,(glm::vec3 const &)*arg2); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_quat___mul__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::quat *arg1 = (glm::quat *) 0 ; glm::vec4 *arg2 = 0 ;
  glm::vec4 result; SWIG_check_num_args("glm::quat::operator *",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::quat::operator *",1,"glm::quat *");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::quat::operator *",2,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__quat,0))){
    SWIG_fail_ptr("quat___mul",1,SWIGTYPE_p_glm__quat); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec4,0))){
    SWIG_fail_ptr("quat___mul",2,SWIGTYPE_p_glm__vec4); } 
  result = glm_quat_operator_Sm___SWIG_2(arg1,(glm::vec4 const &)*arg2); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_quat___mul__SWIG_3(lua_State* L) { int SWIG_arg = 0; glm::quat *arg1 = (glm::quat *) 0 ; float *arg2 = 0 ;
  float temp2 ; glm::quat result; SWIG_check_num_args("glm::quat::operator *",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::quat::operator *",1,"glm::quat *");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::quat::operator *",2,"float const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__quat,0))){
    SWIG_fail_ptr("quat___mul",1,SWIGTYPE_p_glm__quat); }  temp2=(float)lua_tonumber(L,2); arg2=&temp2;
  result = glm_quat_operator_Sm___SWIG_3(arg1,(float const &)*arg2); {
    glm::quat * resultptr = new glm::quat((const glm::quat &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__quat,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_quat___mul(lua_State* L) { int argc; int argv[3]={ 1,2,3} ; argc = lua_gettop(L); if (argc == 2) { int _v = 0;
    { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__quat, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_quat___mul__SWIG_0(L);}  check_1:
  if (argc == 2) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_quat___mul__SWIG_1(L);}  check_2:
  if (argc == 2) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_quat___mul__SWIG_2(L);}  check_3:
  if (argc == 2) { return _wrap_quat___mul__SWIG_3(L);} 
  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'quat___mul'\n" "  Possible C/C++ prototypes are:\n"
  "    glm::quat::operator *(glm::quat const &)\n" "    glm::quat::operator *(glm::vec3 const &)\n"
  "    glm::quat::operator *(glm::vec4 const &)\n" "    glm::quat::operator *(float const &)\n"); lua_error(L);return 0; }
static int _wrap_quat___div(lua_State* L) { int SWIG_arg = 0; glm::quat *arg1 = (glm::quat *) 0 ; float *arg2 = 0 ;
  float temp2 ; glm::quat result; SWIG_check_num_args("glm::quat::operator /",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::quat::operator /",1,"glm::quat *");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::quat::operator /",2,"float const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__quat,0))){
    SWIG_fail_ptr("quat___div",1,SWIGTYPE_p_glm__quat); }  temp2=(float)lua_tonumber(L,2); arg2=&temp2;
  result = glm_quat_operator_Sd_(arg1,(float const &)*arg2); {
    glm::quat * resultptr = new glm::quat((const glm::quat &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__quat,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_quat___eq(lua_State* L) { int SWIG_arg = 0; glm::quat *arg1 = (glm::quat *) 0 ; glm::quat *arg2 = 0 ;
  bool result; SWIG_check_num_args("glm::quat::operator ==",2,2)
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("glm::quat::operator ==",1,"glm::quat *");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::quat::operator ==",2,"glm::quat const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__quat,0))){
    SWIG_fail_ptr("quat___eq",1,SWIGTYPE_p_glm__quat); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__quat,0))){
    SWIG_fail_ptr("quat___eq",2,SWIGTYPE_p_glm__quat); } 
  result = (bool)glm_quat_operator_Se__Se_(arg1,(glm::quat const &)*arg2); lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static void swig_delete_quat(void *obj) {
glm::quat *arg1 = (glm::quat *) obj;
delete arg1;
}
static int _proxy__wrap_new_quat(lua_State *L) {
    assert(lua_istable(L,1));
    lua_pushcfunction(L,_wrap_new_quat);
    assert(!lua_isnil(L,-1));
    lua_replace(L,1); /* replace our table with real constructor */
    lua_call(L,lua_gettop(L)-1,1);
    return 1;
}
static swig_lua_attribute swig_quat_attributes[] = {
    { "x", _wrap_quat_x_get, _wrap_quat_x_set },
    { "y", _wrap_quat_y_get, _wrap_quat_y_set },
    { "z", _wrap_quat_z_get, _wrap_quat_z_set },
    { "w", _wrap_quat_w_get, _wrap_quat_w_set },
    {0,0,0}
};
static swig_lua_method swig_quat_methods[]= {
    { "__getitem", _wrap_quat___getitem},
    { "__setitem", _wrap_quat___setitem},
    { "__tostring", _wrap_quat___tostring},
    { "__add", _wrap_quat___add},
    { "__mul", _wrap_quat___mul},
    { "__div", _wrap_quat___div},
    { "__eq", _wrap_quat___eq},
    {0,0}
};
static swig_lua_method swig_quat_meta[] = {
    { "__getitem", _wrap_quat___getitem},
    { "__setitem", _wrap_quat___setitem},
    { "__tostring", _wrap_quat___tostring},
    { "__add", _wrap_quat___add},
    { "__mul", _wrap_quat___mul},
    { "__div", _wrap_quat___div},
    { "__eq", _wrap_quat___eq},
    {0,0}
};

static swig_lua_attribute swig_quat_Sf_SwigStatic_attributes[] = {
    {0,0,0}
};
static swig_lua_const_info swig_quat_Sf_SwigStatic_constants[]= {
    {0,0,0,0,0,0}
};
static swig_lua_method swig_quat_Sf_SwigStatic_methods[]= {
    { "length", _wrap_quat_length},
    {0,0}
};
static swig_lua_class* swig_quat_Sf_SwigStatic_classes[]= {
    0
};

static swig_lua_namespace swig_quat_Sf_SwigStatic = {
    "quat",
    swig_quat_Sf_SwigStatic_methods,
    swig_quat_Sf_SwigStatic_attributes,
    swig_quat_Sf_SwigStatic_constants,
    swig_quat_Sf_SwigStatic_classes,
    0
};
static swig_lua_class *swig_quat_bases[] = {0};
static const char *swig_quat_base_names[] = {0};
static swig_lua_class _wrap_class_quat = { "quat", "quat", &SWIGTYPE_p_glm__quat,_proxy__wrap_new_quat, swig_delete_quat, swig_quat_methods, swig_quat_attributes, &swig_quat_Sf_SwigStatic, swig_quat_meta, swig_quat_bases, swig_quat_base_names };

static int _wrap_add__SWIG_15(lua_State* L) { int SWIG_arg = 0; glm::quat *arg1 = 0 ; glm::quat *arg2 = 0 ; glm::quat result;
  SWIG_check_num_args("glm::operator +",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator +",1,"glm::quat const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator +",2,"glm::quat const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__quat,0))){ SWIG_fail_ptr("add",1,SWIGTYPE_p_glm__quat); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__quat,0))){ SWIG_fail_ptr("add",2,SWIGTYPE_p_glm__quat); } 
  result = glm::operator +((glm::quat const &)*arg1,(glm::quat const &)*arg2); {
    glm::quat * resultptr = new glm::quat((const glm::quat &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__quat,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_add(lua_State* L) { int argc; int argv[3]={ 1,2,3} ; argc = lua_gettop(L); if (argc == 2) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_add__SWIG_2(L);}  check_1: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; { { _v = lua_isnumber(L,argv[1]); } }  if (!_v) goto check_2;
    return _wrap_add__SWIG_0(L);}  check_2: if (argc == 2) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_add__SWIG_5(L);}  check_3: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_4; { { _v = lua_isnumber(L,argv[1]); } }  if (!_v) goto check_4;
    return _wrap_add__SWIG_3(L);}  check_4: if (argc == 2) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_5; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_5; return _wrap_add__SWIG_8(L);}  check_5: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_6; { { _v = lua_isnumber(L,argv[1]); } }  if (!_v) goto check_6;
    return _wrap_add__SWIG_6(L);}  check_6: if (argc == 2) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__mat3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_7; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__mat3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_7; return _wrap_add__SWIG_11(L);}  check_7: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__mat3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_8; { { _v = lua_isnumber(L,argv[1]); } }  if (!_v) goto check_8;
    return _wrap_add__SWIG_9(L);}  check_8: if (argc == 2) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__mat4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_9; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__mat4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_9; return _wrap_add__SWIG_14(L);}  check_9: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__mat4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_10; { { _v = lua_isnumber(L,argv[1]); } } 
    if (!_v) goto check_10; return _wrap_add__SWIG_12(L);}  check_10: if (argc == 2) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__quat, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_11; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__quat, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_11; return _wrap_add__SWIG_15(L);}  check_11: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_12; return _wrap_add__SWIG_7(L);}  check_12: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_13; return _wrap_add__SWIG_1(L);}  check_13: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__mat4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_14; return _wrap_add__SWIG_13(L);}  check_14: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_15; return _wrap_add__SWIG_4(L);}  check_15: if (argc == 2) {
    return _wrap_add__SWIG_10(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'add'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::operator +(glm::vec2 const &,float)\n"
  "    glm::operator +(float,glm::vec2 const &)\n" "    glm::operator +(glm::vec2 const &,glm::vec2 const &)\n"
  "    glm::operator +(glm::vec3 const &,float)\n" "    glm::operator +(float,glm::vec3 const &)\n"
  "    glm::operator +(glm::vec3 const &,glm::vec3 const &)\n" "    glm::operator +(glm::vec4 const &,float)\n"
  "    glm::operator +(float,glm::vec4 const &)\n" "    glm::operator +(glm::vec4 const &,glm::vec4 const &)\n"
  "    glm::operator +(glm::mat3 const &,float)\n" "    glm::operator +(float,glm::mat3 const &)\n"
  "    glm::operator +(glm::mat3 const &,glm::mat3 const &)\n" "    glm::operator +(glm::mat4 const &,float)\n"
  "    glm::operator +(float,glm::mat4 const &)\n" "    glm::operator +(glm::mat4 const &,glm::mat4 const &)\n"
  "    glm::operator +(glm::quat const &,glm::quat const &)\n"); lua_error(L);return 0; }
static int _wrap_mul__SWIG_19(lua_State* L) { int SWIG_arg = 0; glm::quat *arg1 = 0 ; glm::quat *arg2 = 0 ; glm::quat result;
  SWIG_check_num_args("glm::operator *",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator *",1,"glm::quat const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator *",2,"glm::quat const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__quat,0))){ SWIG_fail_ptr("mul",1,SWIGTYPE_p_glm__quat); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__quat,0))){ SWIG_fail_ptr("mul",2,SWIGTYPE_p_glm__quat); } 
  result = glm::operator *((glm::quat const &)*arg1,(glm::quat const &)*arg2); {
    glm::quat * resultptr = new glm::quat((const glm::quat &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__quat,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mul__SWIG_20(lua_State* L) { int SWIG_arg = 0; glm::quat *arg1 = 0 ; glm::vec3 *arg2 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::operator *",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator *",1,"glm::quat const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator *",2,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__quat,0))){ SWIG_fail_ptr("mul",1,SWIGTYPE_p_glm__quat); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("mul",2,SWIGTYPE_p_glm__vec3); } 
  result = glm::operator *((glm::quat const &)*arg1,(glm::vec3 const &)*arg2); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mul__SWIG_21(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::quat *arg2 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::operator *",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator *",1,"glm::vec3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator *",2,"glm::quat const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("mul",1,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__quat,0))){ SWIG_fail_ptr("mul",2,SWIGTYPE_p_glm__quat); } 
  result = glm::operator *((glm::vec3 const &)*arg1,(glm::quat const &)*arg2); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mul__SWIG_22(lua_State* L) { int SWIG_arg = 0; glm::quat *arg1 = 0 ; glm::vec4 *arg2 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::operator *",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator *",1,"glm::quat const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator *",2,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__quat,0))){ SWIG_fail_ptr("mul",1,SWIGTYPE_p_glm__quat); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("mul",2,SWIGTYPE_p_glm__vec4); } 
  result = glm::operator *((glm::quat const &)*arg1,(glm::vec4 const &)*arg2); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mul__SWIG_23(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::quat *arg2 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::operator *",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator *",1,"glm::vec4 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator *",2,"glm::quat const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("mul",1,SWIGTYPE_p_glm__vec4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__quat,0))){ SWIG_fail_ptr("mul",2,SWIGTYPE_p_glm__quat); } 
  result = glm::operator *((glm::vec4 const &)*arg1,(glm::quat const &)*arg2); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mul__SWIG_24(lua_State* L) { int SWIG_arg = 0; glm::quat *arg1 = 0 ; float *arg2 = 0 ; float temp2 ;
  glm::quat result; SWIG_check_num_args("glm::operator *",2,2)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator *",1,"glm::quat const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::operator *",2,"float const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__quat,0))){ SWIG_fail_ptr("mul",1,SWIGTYPE_p_glm__quat); } 
  temp2=(float)lua_tonumber(L,2); arg2=&temp2; result = glm::operator *((glm::quat const &)*arg1,(float const &)*arg2); {
    glm::quat * resultptr = new glm::quat((const glm::quat &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__quat,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mul__SWIG_25(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; glm::quat *arg2 = 0 ; float temp1 ;
  glm::quat result; SWIG_check_num_args("glm::operator *",2,2)
  if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::operator *",1,"float const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator *",2,"glm::quat const &"); temp1=(float)lua_tonumber(L,1); arg1=&temp1;
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__quat,0))){ SWIG_fail_ptr("mul",2,SWIGTYPE_p_glm__quat); } 
  result = glm::operator *((float const &)*arg1,(glm::quat const &)*arg2); {
    glm::quat * resultptr = new glm::quat((const glm::quat &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__quat,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mul(lua_State* L) { int argc; int argv[3]={ 1,2,3} ; argc = lua_gettop(L); if (argc == 2) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_mul__SWIG_2(L);}  check_1: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; { { _v = lua_isnumber(L,argv[1]); } }  if (!_v) goto check_2;
    return _wrap_mul__SWIG_0(L);}  check_2: if (argc == 2) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_mul__SWIG_5(L);}  check_3: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_4; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__mat3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_4; return _wrap_mul__SWIG_12(L);}  check_4: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_5; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_5; return _wrap_mul__SWIG_8(L);}  check_5: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_6; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__mat4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_6; return _wrap_mul__SWIG_18(L);}  check_6: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__mat3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_7; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__mat3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_7; return _wrap_mul__SWIG_11(L);}  check_7: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__mat3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_8; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_8; return _wrap_mul__SWIG_13(L);}  check_8: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_9; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__quat, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_9; return _wrap_mul__SWIG_21(L);}  check_9: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__mat3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_10; { { _v = lua_isnumber(L,argv[1]); } } 
    if (!_v) goto check_10; return _wrap_mul__SWIG_9(L);}  check_10: if (argc == 2) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__mat4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_11; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__mat4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_11; return _wrap_mul__SWIG_16(L);}  check_11: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__mat4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_12; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_12; return _wrap_mul__SWIG_17(L);}  check_12: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__mat4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_13; { { _v = lua_isnumber(L,argv[1]); } } 
    if (!_v) goto check_13; return _wrap_mul__SWIG_14(L);}  check_13: if (argc == 2) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_14; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__quat, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_14; return _wrap_mul__SWIG_23(L);}  check_14: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__quat, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_15; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__quat, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_15; return _wrap_mul__SWIG_19(L);}  check_15: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__quat, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_16; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_16; return _wrap_mul__SWIG_20(L);}  check_16: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_17; { { _v = lua_isnumber(L,argv[1]); } } 
    if (!_v) goto check_17; return _wrap_mul__SWIG_3(L);}  check_17: if (argc == 2) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__quat, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_18; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_18; return _wrap_mul__SWIG_22(L);}  check_18: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_19; { { _v = lua_isnumber(L,argv[1]); } } 
    if (!_v) goto check_19; return _wrap_mul__SWIG_6(L);}  check_19: if (argc == 2) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__quat, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_20; { { _v = lua_isnumber(L,argv[1]); } } 
    if (!_v) goto check_20; return _wrap_mul__SWIG_24(L);}  check_20: if (argc == 2) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__mat4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_21; return _wrap_mul__SWIG_15(L);}  check_21: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_22; return _wrap_mul__SWIG_7(L);}  check_22: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_23; return _wrap_mul__SWIG_1(L);}  check_23: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_24; return _wrap_mul__SWIG_4(L);}  check_24: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__mat3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_25; return _wrap_mul__SWIG_10(L);}  check_25: if (argc == 2) {
    return _wrap_mul__SWIG_25(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'mul'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::operator *(glm::vec2 const &,float)\n"
  "    glm::operator *(float,glm::vec2 const &)\n" "    glm::operator *(glm::vec2 const &,glm::vec2 const &)\n"
  "    glm::operator *(glm::vec3 const &,float)\n" "    glm::operator *(float,glm::vec3 const &)\n"
  "    glm::operator *(glm::vec3 const &,glm::vec3 const &)\n" "    glm::operator *(glm::vec4 const &,float)\n"
  "    glm::operator *(float,glm::vec4 const &)\n" "    glm::operator *(glm::vec4 const &,glm::vec4 const &)\n"
  "    glm::operator *(glm::mat3 const &,float)\n" "    glm::operator *(float,glm::mat3 const &)\n"
  "    glm::operator *(glm::mat3 const &,glm::mat3 const &)\n" "    glm::operator *(glm::vec3 const &,glm::mat3 const &)\n"
  "    glm::operator *(glm::mat3 const &,glm::vec3 const &)\n" "    glm::operator *(glm::mat4 const &,float)\n"
  "    glm::operator *(float,glm::mat4 const &)\n" "    glm::operator *(glm::mat4 const &,glm::mat4 const &)\n"
  "    glm::operator *(glm::mat4 const &,glm::vec4 const &)\n" "    glm::operator *(glm::vec4 const &,glm::mat4 const &)\n"
  "    glm::operator *(glm::quat const &,glm::quat const &)\n" "    glm::operator *(glm::quat const &,glm::vec3 const &)\n"
  "    glm::operator *(glm::vec3 const &,glm::quat const &)\n" "    glm::operator *(glm::quat const &,glm::vec4 const &)\n"
  "    glm::operator *(glm::vec4 const &,glm::quat const &)\n" "    glm::operator *(glm::quat const &,float const &)\n"
  "    glm::operator *(float const &,glm::quat const &)\n"); lua_error(L);return 0; }
static int _wrap_div__SWIG_19(lua_State* L) { int SWIG_arg = 0; glm::quat *arg1 = 0 ; float *arg2 = 0 ; float temp2 ;
  glm::quat result; SWIG_check_num_args("glm::operator /",2,2)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator /",1,"glm::quat const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::operator /",2,"float const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__quat,0))){ SWIG_fail_ptr("div",1,SWIGTYPE_p_glm__quat); } 
  temp2=(float)lua_tonumber(L,2); arg2=&temp2; result = glm::operator /((glm::quat const &)*arg1,(float const &)*arg2); {
    glm::quat * resultptr = new glm::quat((const glm::quat &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__quat,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_div(lua_State* L) { int argc; int argv[3]={ 1,2,3} ; argc = lua_gettop(L); if (argc == 2) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_div__SWIG_2(L);}  check_1: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; { { _v = lua_isnumber(L,argv[1]); } }  if (!_v) goto check_2;
    return _wrap_div__SWIG_0(L);}  check_2: if (argc == 2) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_div__SWIG_5(L);}  check_3: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_4; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__mat3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_4; return _wrap_div__SWIG_13(L);}  check_4: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_5; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_5; return _wrap_div__SWIG_8(L);}  check_5: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_6; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__mat4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_6; return _wrap_div__SWIG_18(L);}  check_6: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__mat3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_7; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__mat3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_7; return _wrap_div__SWIG_11(L);}  check_7: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__mat3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_8; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_8; return _wrap_div__SWIG_12(L);}  check_8: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__mat3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_9; { { _v = lua_isnumber(L,argv[1]); } }  if (!_v) goto check_9;
    return _wrap_div__SWIG_9(L);}  check_9: if (argc == 2) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_10; { { _v = lua_isnumber(L,argv[1]); } } 
    if (!_v) goto check_10; return _wrap_div__SWIG_3(L);}  check_10: if (argc == 2) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__mat4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_11; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__mat4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_11; return _wrap_div__SWIG_16(L);}  check_11: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__mat4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_12; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_12; return _wrap_div__SWIG_17(L);}  check_12: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__mat4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_13; { { _v = lua_isnumber(L,argv[1]); } } 
    if (!_v) goto check_13; return _wrap_div__SWIG_14(L);}  check_13: if (argc == 2) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_14; { { _v = lua_isnumber(L,argv[1]); } } 
    if (!_v) goto check_14; return _wrap_div__SWIG_6(L);}  check_14: if (argc == 2) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__quat, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_15; { { _v = lua_isnumber(L,argv[1]); } } 
    if (!_v) goto check_15; return _wrap_div__SWIG_19(L);}  check_15: if (argc == 2) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__mat4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_16; return _wrap_div__SWIG_15(L);}  check_16: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_17; return _wrap_div__SWIG_7(L);}  check_17: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_18; return _wrap_div__SWIG_1(L);}  check_18: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_19; return _wrap_div__SWIG_4(L);}  check_19: if (argc == 2) {
    return _wrap_div__SWIG_10(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'div'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::operator /(glm::vec2 const &,float)\n"
  "    glm::operator /(float,glm::vec2 const &)\n" "    glm::operator /(glm::vec2 const &,glm::vec2 const &)\n"
  "    glm::operator /(glm::vec3 const &,float)\n" "    glm::operator /(float,glm::vec3 const &)\n"
  "    glm::operator /(glm::vec3 const &,glm::vec3 const &)\n" "    glm::operator /(glm::vec4 const &,float)\n"
  "    glm::operator /(float,glm::vec4 const &)\n" "    glm::operator /(glm::vec4 const &,glm::vec4 const &)\n"
  "    glm::operator /(glm::mat3 const &,float)\n" "    glm::operator /(float,glm::mat3 const &)\n"
  "    glm::operator /(glm::mat3 const &,glm::mat3 const &)\n" "    glm::operator /(glm::mat3 const &,glm::vec3 const &)\n"
  "    glm::operator /(glm::vec3 const &,glm::mat3 const &)\n" "    glm::operator /(glm::mat4 const &,float)\n"
  "    glm::operator /(float,glm::mat4 const &)\n" "    glm::operator /(glm::mat4 const &,glm::mat4 const &)\n"
  "    glm::operator /(glm::mat4 const &,glm::vec4 const &)\n" "    glm::operator /(glm::vec4 const &,glm::mat4 const &)\n"
  "    glm::operator /(glm::quat const &,float const &)\n"); lua_error(L);return 0; }
static int _wrap_eq__SWIG_5(lua_State* L) { int SWIG_arg = 0; glm::quat *arg1 = 0 ; glm::quat *arg2 = 0 ; bool result;
  SWIG_check_num_args("glm::operator ==",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::operator ==",1,"glm::quat const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::operator ==",2,"glm::quat const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__quat,0))){ SWIG_fail_ptr("eq",1,SWIGTYPE_p_glm__quat); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__quat,0))){ SWIG_fail_ptr("eq",2,SWIGTYPE_p_glm__quat); } 
  result = (bool)glm::operator ==((glm::quat const &)*arg1,(glm::quat const &)*arg2);
  lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_eq(lua_State* L) { int argc; int argv[3]={ 1,2,3} ; argc = lua_gettop(L); if (argc == 2) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_eq__SWIG_0(L);}  check_1: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_eq__SWIG_1(L);}  check_2: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_eq__SWIG_2(L);}  check_3: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__mat3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_4; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__mat3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_4; return _wrap_eq__SWIG_3(L);}  check_4: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__mat4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_5; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__mat4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_5; return _wrap_eq__SWIG_4(L);}  check_5: if (argc == 2) {
    return _wrap_eq__SWIG_5(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'eq'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::operator ==(glm::vec2 const &,glm::vec2 const &)\n"
  "    glm::operator ==(glm::vec3 const &,glm::vec3 const &)\n" "    glm::operator ==(glm::vec4 const &,glm::vec4 const &)\n"
  "    glm::operator ==(glm::mat3 const &,glm::mat3 const &)\n" "    glm::operator ==(glm::mat4 const &,glm::mat4 const &)\n"
  "    glm::operator ==(glm::quat const &,glm::quat const &)\n"); lua_error(L);return 0; }
static int _wrap_length__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::quat *arg1 = 0 ; float result;
  SWIG_check_num_args("glm::length",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::length",1,"glm::quat const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__quat,0))){ SWIG_fail_ptr("length",1,SWIGTYPE_p_glm__quat); } 
  result = (float)glm::length((glm::quat const &)*arg1); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg;
  if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_normalize__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::quat *arg1 = 0 ; glm::quat result;
  SWIG_check_num_args("glm::normalize",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::normalize",1,"glm::quat const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__quat,0))){
    SWIG_fail_ptr("normalize",1,SWIGTYPE_p_glm__quat); }  result = glm::normalize((glm::quat const &)*arg1); {
    glm::quat * resultptr = new glm::quat((const glm::quat &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__quat,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_dot__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::quat *arg1 = 0 ; glm::quat *arg2 = 0 ; float result;
  SWIG_check_num_args("glm::dot",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::dot",1,"glm::quat const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::dot",2,"glm::quat const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__quat,0))){ SWIG_fail_ptr("dot",1,SWIGTYPE_p_glm__quat); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__quat,0))){ SWIG_fail_ptr("dot",2,SWIGTYPE_p_glm__quat); } 
  result = (float)glm::dot((glm::quat const &)*arg1,(glm::quat const &)*arg2);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_mix__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::quat *arg1 = 0 ; glm::quat *arg2 = 0 ; float arg3 ;
  glm::quat result; SWIG_check_num_args("glm::mix",3,3)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::mix",1,"glm::quat const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::mix",2,"glm::quat const &");
  if(!lua_isnumber(L,3)) SWIG_fail_arg("glm::mix",3,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__quat,0))){ SWIG_fail_ptr("mix",1,SWIGTYPE_p_glm__quat); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__quat,0))){ SWIG_fail_ptr("mix",2,SWIGTYPE_p_glm__quat); } 
  arg3 = (float)lua_tonumber(L, 3); result = glm::mix((glm::quat const &)*arg1,(glm::quat const &)*arg2,arg3); {
    glm::quat * resultptr = new glm::quat((const glm::quat &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__quat,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_lerp__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::quat *arg1 = 0 ; glm::quat *arg2 = 0 ; float arg3 ;
  glm::quat result; SWIG_check_num_args("glm::lerp",3,3)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::lerp",1,"glm::quat const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::lerp",2,"glm::quat const &");
  if(!lua_isnumber(L,3)) SWIG_fail_arg("glm::lerp",3,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__quat,0))){ SWIG_fail_ptr("lerp",1,SWIGTYPE_p_glm__quat); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__quat,0))){ SWIG_fail_ptr("lerp",2,SWIGTYPE_p_glm__quat); } 
  arg3 = (float)lua_tonumber(L, 3); result = glm::lerp((glm::quat const &)*arg1,(glm::quat const &)*arg2,arg3); {
    glm::quat * resultptr = new glm::quat((const glm::quat &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__quat,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_slerp__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::quat *arg1 = 0 ; glm::quat *arg2 = 0 ; float arg3 ;
  glm::quat result; SWIG_check_num_args("glm::slerp",3,3)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::slerp",1,"glm::quat const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::slerp",2,"glm::quat const &");
  if(!lua_isnumber(L,3)) SWIG_fail_arg("glm::slerp",3,"float");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__quat,0))){ SWIG_fail_ptr("slerp",1,SWIGTYPE_p_glm__quat); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__quat,0))){ SWIG_fail_ptr("slerp",2,SWIGTYPE_p_glm__quat); } 
  arg3 = (float)lua_tonumber(L, 3); result = glm::slerp((glm::quat const &)*arg1,(glm::quat const &)*arg2,arg3); {
    glm::quat * resultptr = new glm::quat((const glm::quat &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__quat,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_conjugate(lua_State* L) { int SWIG_arg = 0; glm::quat *arg1 = 0 ; glm::quat result;
  SWIG_check_num_args("glm::conjugate",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::conjugate",1,"glm::quat const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__quat,0))){
    SWIG_fail_ptr("conjugate",1,SWIGTYPE_p_glm__quat); }  result = glm::conjugate((glm::quat const &)*arg1); {
    glm::quat * resultptr = new glm::quat((const glm::quat &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__quat,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_inverse__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::quat *arg1 = 0 ; glm::quat result;
  SWIG_check_num_args("glm::inverse",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::inverse",1,"glm::quat const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__quat,0))){ SWIG_fail_ptr("inverse",1,SWIGTYPE_p_glm__quat); }
   result = glm::inverse((glm::quat const &)*arg1); { glm::quat * resultptr = new glm::quat((const glm::quat &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__quat,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_rotate__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::quat *arg1 = 0 ; float *arg2 = 0 ; glm::vec3 *arg3 = 0 ;
  float temp2 ; glm::quat result; SWIG_check_num_args("glm::rotate",3,3)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::rotate",1,"glm::quat const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::rotate",2,"float const &");
  if(!lua_isuserdata(L,3)) SWIG_fail_arg("glm::rotate",3,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__quat,0))){ SWIG_fail_ptr("rotate",1,SWIGTYPE_p_glm__quat); } 
  temp2=(float)lua_tonumber(L,2); arg2=&temp2; if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("rotate",3,SWIGTYPE_p_glm__vec3); } 
  result = glm::rotate((glm::quat const &)*arg1,(float const &)*arg2,(glm::vec3 const &)*arg3); {
    glm::quat * resultptr = new glm::quat((const glm::quat &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__quat,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_eulerAngles(lua_State* L) { int SWIG_arg = 0; glm::quat *arg1 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::eulerAngles",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::eulerAngles",1,"glm::quat const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__quat,0))){
    SWIG_fail_ptr("eulerAngles",1,SWIGTYPE_p_glm__quat); }  result = glm::eulerAngles((glm::quat const &)*arg1); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_roll(lua_State* L) { int SWIG_arg = 0; glm::quat *arg1 = 0 ; float result; SWIG_check_num_args("glm::roll",1,1)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::roll",1,"glm::quat const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__quat,0))){ SWIG_fail_ptr("roll",1,SWIGTYPE_p_glm__quat); } 
  result = (float)glm::roll((glm::quat const &)*arg1); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg;
  if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_pitch(lua_State* L) { int SWIG_arg = 0; glm::quat *arg1 = 0 ; float result;
  SWIG_check_num_args("glm::pitch",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::pitch",1,"glm::quat const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__quat,0))){ SWIG_fail_ptr("pitch",1,SWIGTYPE_p_glm__quat); } 
  result = (float)glm::pitch((glm::quat const &)*arg1); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg;
  if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_yaw(lua_State* L) { int SWIG_arg = 0; glm::quat *arg1 = 0 ; float result; SWIG_check_num_args("glm::yaw",1,1)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::yaw",1,"glm::quat const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__quat,0))){ SWIG_fail_ptr("yaw",1,SWIGTYPE_p_glm__quat); } 
  result = (float)glm::yaw((glm::quat const &)*arg1); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg;
  if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_mat3_cast(lua_State* L) { int SWIG_arg = 0; glm::quat *arg1 = 0 ; glm::mat3 result;
  SWIG_check_num_args("glm::mat3_cast",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::mat3_cast",1,"glm::quat const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__quat,0))){
    SWIG_fail_ptr("mat3_cast",1,SWIGTYPE_p_glm__quat); }  result = glm::mat3_cast((glm::quat const &)*arg1); {
    glm::mat3 * resultptr = new glm::mat3((const glm::mat3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mat4_cast(lua_State* L) { int SWIG_arg = 0; glm::quat *arg1 = 0 ; glm::mat4 result;
  SWIG_check_num_args("glm::mat4_cast",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::mat4_cast",1,"glm::quat const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__quat,0))){
    SWIG_fail_ptr("mat4_cast",1,SWIGTYPE_p_glm__quat); }  result = glm::mat4_cast((glm::quat const &)*arg1); {
    glm::mat4 * resultptr = new glm::mat4((const glm::mat4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_quat_cast__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::mat3 *arg1 = 0 ; glm::quat result;
  SWIG_check_num_args("glm::quat_cast",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::quat_cast",1,"glm::mat3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat3,0))){
    SWIG_fail_ptr("quat_cast",1,SWIGTYPE_p_glm__mat3); }  result = glm::quat_cast((glm::mat3 const &)*arg1); {
    glm::quat * resultptr = new glm::quat((const glm::quat &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__quat,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_quat_cast__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::mat4 *arg1 = 0 ; glm::quat result;
  SWIG_check_num_args("glm::quat_cast",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::quat_cast",1,"glm::mat4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat4,0))){
    SWIG_fail_ptr("quat_cast",1,SWIGTYPE_p_glm__mat4); }  result = glm::quat_cast((glm::mat4 const &)*arg1); {
    glm::quat * resultptr = new glm::quat((const glm::quat &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__quat,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_quat_cast(lua_State* L) { int argc; int argv[2]={ 1,2} ; argc = lua_gettop(L); if (argc == 1) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__mat3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_quat_cast__SWIG_0(L);}  check_1:
  if (argc == 1) { return _wrap_quat_cast__SWIG_1(L);} 
  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'quat_cast'\n" "  Possible C/C++ prototypes are:\n"
  "    glm::quat_cast(glm::mat3 const &)\n" "    glm::quat_cast(glm::mat4 const &)\n"); lua_error(L);return 0; }
static int _wrap_angle__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::quat *arg1 = 0 ; float result;
  SWIG_check_num_args("glm::angle",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::angle",1,"glm::quat const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__quat,0))){ SWIG_fail_ptr("angle",1,SWIGTYPE_p_glm__quat); } 
  result = (float)glm::angle((glm::quat const &)*arg1); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg;
  if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_axis(lua_State* L) { int SWIG_arg = 0; glm::quat *arg1 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::axis",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::axis",1,"glm::quat const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__quat,0))){ SWIG_fail_ptr("axis",1,SWIGTYPE_p_glm__quat); } 
  result = glm::axis((glm::quat const &)*arg1); { glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_angleAxis(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; glm::vec3 *arg2 = 0 ; float temp1 ;
  glm::quat result; SWIG_check_num_args("glm::angleAxis",2,2)
  if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::angleAxis",1,"float const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::angleAxis",2,"glm::vec3 const &"); temp1=(float)lua_tonumber(L,1); arg1=&temp1;
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("angleAxis",2,SWIGTYPE_p_glm__vec3); } 
  result = glm::angleAxis((float const &)*arg1,(glm::vec3 const &)*arg2); {
    glm::quat * resultptr = new glm::quat((const glm::quat &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__quat,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_epsilon(lua_State* L) { int SWIG_arg = 0; float result; SWIG_check_num_args("glm::epsilon< float >",0,0)
  result = (float)glm::SWIGTEMPLATEDISAMBIGUATOR epsilon< float >(); lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_zero(lua_State* L) { int SWIG_arg = 0; float result; SWIG_check_num_args("glm::zero< float >",0,0)
  result = (float)glm::SWIGTEMPLATEDISAMBIGUATOR zero< float >(); lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_one(lua_State* L) { int SWIG_arg = 0; float result; SWIG_check_num_args("glm::one< float >",0,0)
  result = (float)glm::SWIGTEMPLATEDISAMBIGUATOR one< float >(); lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_pi(lua_State* L) { int SWIG_arg = 0; float result; SWIG_check_num_args("glm::pi< float >",0,0)
  result = (float)glm::SWIGTEMPLATEDISAMBIGUATOR pi< float >(); lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_root_pi(lua_State* L) { int SWIG_arg = 0; float result; SWIG_check_num_args("glm::root_pi< float >",0,0)
  result = (float)glm::SWIGTEMPLATEDISAMBIGUATOR root_pi< float >(); lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_half_pi(lua_State* L) { int SWIG_arg = 0; float result; SWIG_check_num_args("glm::half_pi< float >",0,0)
  result = (float)glm::SWIGTEMPLATEDISAMBIGUATOR half_pi< float >(); lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_quarter_pi(lua_State* L) { int SWIG_arg = 0; float result; SWIG_check_num_args("glm::quarter_pi< float >",0,0)
  result = (float)glm::SWIGTEMPLATEDISAMBIGUATOR quarter_pi< float >(); lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_one_over_pi(lua_State* L) { int SWIG_arg = 0; float result;
  SWIG_check_num_args("glm::one_over_pi< float >",0,0) result = (float)glm::SWIGTEMPLATEDISAMBIGUATOR one_over_pi< float >();
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_two_over_pi(lua_State* L) { int SWIG_arg = 0; float result;
  SWIG_check_num_args("glm::two_over_pi< float >",0,0) result = (float)glm::SWIGTEMPLATEDISAMBIGUATOR two_over_pi< float >();
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_two_over_root_pi(lua_State* L) { int SWIG_arg = 0; float result;
  SWIG_check_num_args("glm::two_over_root_pi< float >",0,0)
  result = (float)glm::SWIGTEMPLATEDISAMBIGUATOR two_over_root_pi< float >();
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_one_over_root_two(lua_State* L) { int SWIG_arg = 0; float result;
  SWIG_check_num_args("glm::one_over_root_two< float >",0,0)
  result = (float)glm::SWIGTEMPLATEDISAMBIGUATOR one_over_root_two< float >();
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_root_half_pi(lua_State* L) { int SWIG_arg = 0; float result;
  SWIG_check_num_args("glm::root_half_pi< float >",0,0) result = (float)glm::SWIGTEMPLATEDISAMBIGUATOR root_half_pi< float >();
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_root_two_pi(lua_State* L) { int SWIG_arg = 0; float result;
  SWIG_check_num_args("glm::root_two_pi< float >",0,0) result = (float)glm::SWIGTEMPLATEDISAMBIGUATOR root_two_pi< float >();
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_root_ln_four(lua_State* L) { int SWIG_arg = 0; float result;
  SWIG_check_num_args("glm::root_ln_four< float >",0,0) result = (float)glm::SWIGTEMPLATEDISAMBIGUATOR root_ln_four< float >();
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_e(lua_State* L) { int SWIG_arg = 0; float result; SWIG_check_num_args("glm::e< float >",0,0)
  result = (float)glm::SWIGTEMPLATEDISAMBIGUATOR e< float >(); lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_euler(lua_State* L) { int SWIG_arg = 0; float result; SWIG_check_num_args("glm::euler< float >",0,0)
  result = (float)glm::SWIGTEMPLATEDISAMBIGUATOR euler< float >(); lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_root_two(lua_State* L) { int SWIG_arg = 0; float result; SWIG_check_num_args("glm::root_two< float >",0,0)
  result = (float)glm::SWIGTEMPLATEDISAMBIGUATOR root_two< float >(); lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_root_three(lua_State* L) { int SWIG_arg = 0; float result; SWIG_check_num_args("glm::root_three< float >",0,0)
  result = (float)glm::SWIGTEMPLATEDISAMBIGUATOR root_three< float >(); lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_root_five(lua_State* L) { int SWIG_arg = 0; float result; SWIG_check_num_args("glm::root_five< float >",0,0)
  result = (float)glm::SWIGTEMPLATEDISAMBIGUATOR root_five< float >(); lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_ln_two(lua_State* L) { int SWIG_arg = 0; float result; SWIG_check_num_args("glm::ln_two< float >",0,0)
  result = (float)glm::SWIGTEMPLATEDISAMBIGUATOR ln_two< float >(); lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_ln_ten(lua_State* L) { int SWIG_arg = 0; float result; SWIG_check_num_args("glm::ln_ten< float >",0,0)
  result = (float)glm::SWIGTEMPLATEDISAMBIGUATOR ln_ten< float >(); lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_ln_ln_two(lua_State* L) { int SWIG_arg = 0; float result; SWIG_check_num_args("glm::ln_ln_two< float >",0,0)
  result = (float)glm::SWIGTEMPLATEDISAMBIGUATOR ln_ln_two< float >(); lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_third(lua_State* L) { int SWIG_arg = 0; float result; SWIG_check_num_args("glm::third< float >",0,0)
  result = (float)glm::SWIGTEMPLATEDISAMBIGUATOR third< float >(); lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_two_thirds(lua_State* L) { int SWIG_arg = 0; float result; SWIG_check_num_args("glm::two_thirds< float >",0,0)
  result = (float)glm::SWIGTEMPLATEDISAMBIGUATOR two_thirds< float >(); lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_golden_ratio(lua_State* L) { int SWIG_arg = 0; float result;
  SWIG_check_num_args("glm::golden_ratio< float >",0,0) result = (float)glm::SWIGTEMPLATEDISAMBIGUATOR golden_ratio< float >();
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_abs__SWIG_0(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float temp1 ; float result;
  SWIG_check_num_args("glm::abs",1,1) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::abs",1,"float const &");
  temp1=(float)lua_tonumber(L,1); arg1=&temp1; result = (float)glm::abs((float const &)*arg1);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_abs__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 result;
  SWIG_check_num_args("glm::abs",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::abs",1,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("abs",1,SWIGTYPE_p_glm__vec2); } 
  result = glm::abs((glm::vec2 const &)*arg1); { glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_abs__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::abs",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::abs",1,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("abs",1,SWIGTYPE_p_glm__vec3); } 
  result = glm::abs((glm::vec3 const &)*arg1); { glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_abs__SWIG_3(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::abs",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::abs",1,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("abs",1,SWIGTYPE_p_glm__vec4); } 
  result = glm::abs((glm::vec4 const &)*arg1); { glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_abs(lua_State* L) { int argc; int argv[2]={ 1,2} ; argc = lua_gettop(L); if (argc == 1) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_abs__SWIG_1(L);}  check_1: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_abs__SWIG_2(L);}  check_2: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_abs__SWIG_3(L);}  check_3: if (argc == 1) {
    return _wrap_abs__SWIG_0(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'abs'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::abs(float const &)\n" "    glm::abs(glm::vec2 const &)\n"
  "    glm::abs(glm::vec3 const &)\n" "    glm::abs(glm::vec4 const &)\n"); lua_error(L);return 0; }
static int _wrap_sign__SWIG_0(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float temp1 ; float result;
  SWIG_check_num_args("glm::sign",1,1) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::sign",1,"float const &");
  temp1=(float)lua_tonumber(L,1); arg1=&temp1; result = (float)glm::sign((float const &)*arg1);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_sign__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 result;
  SWIG_check_num_args("glm::sign",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::sign",1,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("sign",1,SWIGTYPE_p_glm__vec2); } 
  result = glm::sign((glm::vec2 const &)*arg1); { glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_sign__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::sign",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::sign",1,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("sign",1,SWIGTYPE_p_glm__vec3); } 
  result = glm::sign((glm::vec3 const &)*arg1); { glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_sign__SWIG_3(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::sign",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::sign",1,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("sign",1,SWIGTYPE_p_glm__vec4); } 
  result = glm::sign((glm::vec4 const &)*arg1); { glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_sign(lua_State* L) { int argc; int argv[2]={ 1,2} ; argc = lua_gettop(L); if (argc == 1) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_sign__SWIG_1(L);}  check_1: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_sign__SWIG_2(L);}  check_2: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_sign__SWIG_3(L);}  check_3: if (argc == 1) {
    return _wrap_sign__SWIG_0(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'sign'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::sign(float const &)\n" "    glm::sign(glm::vec2 const &)\n"
  "    glm::sign(glm::vec3 const &)\n" "    glm::sign(glm::vec4 const &)\n"); lua_error(L);return 0; }
static int _wrap_floor__SWIG_0(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float temp1 ; float result;
  SWIG_check_num_args("glm::floor",1,1) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::floor",1,"float const &");
  temp1=(float)lua_tonumber(L,1); arg1=&temp1; result = (float)glm::floor((float const &)*arg1);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_floor__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 result;
  SWIG_check_num_args("glm::floor",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::floor",1,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("floor",1,SWIGTYPE_p_glm__vec2); } 
  result = glm::floor((glm::vec2 const &)*arg1); { glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_floor__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::floor",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::floor",1,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("floor",1,SWIGTYPE_p_glm__vec3); } 
  result = glm::floor((glm::vec3 const &)*arg1); { glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_floor__SWIG_3(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::floor",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::floor",1,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("floor",1,SWIGTYPE_p_glm__vec4); } 
  result = glm::floor((glm::vec4 const &)*arg1); { glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_floor(lua_State* L) { int argc; int argv[2]={ 1,2} ; argc = lua_gettop(L); if (argc == 1) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_floor__SWIG_1(L);}  check_1: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_floor__SWIG_2(L);}  check_2: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_floor__SWIG_3(L);}  check_3: if (argc == 1) {
    return _wrap_floor__SWIG_0(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'floor'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::floor(float const &)\n" "    glm::floor(glm::vec2 const &)\n"
  "    glm::floor(glm::vec3 const &)\n" "    glm::floor(glm::vec4 const &)\n"); lua_error(L);return 0; }
static int _wrap_trunc__SWIG_0(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float temp1 ; float result;
  SWIG_check_num_args("glm::trunc",1,1) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::trunc",1,"float const &");
  temp1=(float)lua_tonumber(L,1); arg1=&temp1; result = (float)glm::trunc((float const &)*arg1);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_trunc__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 result;
  SWIG_check_num_args("glm::trunc",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::trunc",1,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("trunc",1,SWIGTYPE_p_glm__vec2); } 
  result = glm::trunc((glm::vec2 const &)*arg1); { glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_trunc__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::trunc",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::trunc",1,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("trunc",1,SWIGTYPE_p_glm__vec3); } 
  result = glm::trunc((glm::vec3 const &)*arg1); { glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_trunc__SWIG_3(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::trunc",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::trunc",1,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("trunc",1,SWIGTYPE_p_glm__vec4); } 
  result = glm::trunc((glm::vec4 const &)*arg1); { glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_trunc(lua_State* L) { int argc; int argv[2]={ 1,2} ; argc = lua_gettop(L); if (argc == 1) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_trunc__SWIG_1(L);}  check_1: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_trunc__SWIG_2(L);}  check_2: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_trunc__SWIG_3(L);}  check_3: if (argc == 1) {
    return _wrap_trunc__SWIG_0(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'trunc'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::trunc(float const &)\n" "    glm::trunc(glm::vec2 const &)\n"
  "    glm::trunc(glm::vec3 const &)\n" "    glm::trunc(glm::vec4 const &)\n"); lua_error(L);return 0; }
static int _wrap_round__SWIG_0(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float temp1 ; float result;
  SWIG_check_num_args("glm::round",1,1) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::round",1,"float const &");
  temp1=(float)lua_tonumber(L,1); arg1=&temp1; result = (float)glm::round((float const &)*arg1);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_round__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 result;
  SWIG_check_num_args("glm::round",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::round",1,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("round",1,SWIGTYPE_p_glm__vec2); } 
  result = glm::round((glm::vec2 const &)*arg1); { glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_round__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::round",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::round",1,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("round",1,SWIGTYPE_p_glm__vec3); } 
  result = glm::round((glm::vec3 const &)*arg1); { glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_round__SWIG_3(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::round",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::round",1,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("round",1,SWIGTYPE_p_glm__vec4); } 
  result = glm::round((glm::vec4 const &)*arg1); { glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_round(lua_State* L) { int argc; int argv[2]={ 1,2} ; argc = lua_gettop(L); if (argc == 1) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_round__SWIG_1(L);}  check_1: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_round__SWIG_2(L);}  check_2: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_round__SWIG_3(L);}  check_3: if (argc == 1) {
    return _wrap_round__SWIG_0(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'round'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::round(float const &)\n" "    glm::round(glm::vec2 const &)\n"
  "    glm::round(glm::vec3 const &)\n" "    glm::round(glm::vec4 const &)\n"); lua_error(L);return 0; }
static int _wrap_roundEven__SWIG_0(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float temp1 ; float result;
  SWIG_check_num_args("glm::roundEven",1,1) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::roundEven",1,"float const &");
  temp1=(float)lua_tonumber(L,1); arg1=&temp1; result = (float)glm::roundEven((float const &)*arg1);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_roundEven__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 result;
  SWIG_check_num_args("glm::roundEven",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::roundEven",1,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){
    SWIG_fail_ptr("roundEven",1,SWIGTYPE_p_glm__vec2); }  result = glm::roundEven((glm::vec2 const &)*arg1); {
    glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_roundEven__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::roundEven",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::roundEven",1,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("roundEven",1,SWIGTYPE_p_glm__vec3); }  result = glm::roundEven((glm::vec3 const &)*arg1); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_roundEven__SWIG_3(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::roundEven",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::roundEven",1,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){
    SWIG_fail_ptr("roundEven",1,SWIGTYPE_p_glm__vec4); }  result = glm::roundEven((glm::vec4 const &)*arg1); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_roundEven(lua_State* L) { int argc; int argv[2]={ 1,2} ; argc = lua_gettop(L); if (argc == 1) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_roundEven__SWIG_1(L);}  check_1:
  if (argc == 1) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_roundEven__SWIG_2(L);}  check_2:
  if (argc == 1) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_roundEven__SWIG_3(L);}  check_3:
  if (argc == 1) { return _wrap_roundEven__SWIG_0(L);} 
  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'roundEven'\n" "  Possible C/C++ prototypes are:\n"
  "    glm::roundEven(float const &)\n" "    glm::roundEven(glm::vec2 const &)\n" "    glm::roundEven(glm::vec3 const &)\n"
  "    glm::roundEven(glm::vec4 const &)\n"); lua_error(L);return 0; }
static int _wrap_ceil__SWIG_0(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float temp1 ; float result;
  SWIG_check_num_args("glm::ceil",1,1) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::ceil",1,"float const &");
  temp1=(float)lua_tonumber(L,1); arg1=&temp1; result = (float)glm::ceil((float const &)*arg1);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_ceil__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 result;
  SWIG_check_num_args("glm::ceil",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::ceil",1,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("ceil",1,SWIGTYPE_p_glm__vec2); } 
  result = glm::ceil((glm::vec2 const &)*arg1); { glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_ceil__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::ceil",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::ceil",1,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("ceil",1,SWIGTYPE_p_glm__vec3); } 
  result = glm::ceil((glm::vec3 const &)*arg1); { glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_ceil__SWIG_3(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::ceil",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::ceil",1,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("ceil",1,SWIGTYPE_p_glm__vec4); } 
  result = glm::ceil((glm::vec4 const &)*arg1); { glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_ceil(lua_State* L) { int argc; int argv[2]={ 1,2} ; argc = lua_gettop(L); if (argc == 1) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_ceil__SWIG_1(L);}  check_1: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_ceil__SWIG_2(L);}  check_2: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_ceil__SWIG_3(L);}  check_3: if (argc == 1) {
    return _wrap_ceil__SWIG_0(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'ceil'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::ceil(float const &)\n" "    glm::ceil(glm::vec2 const &)\n"
  "    glm::ceil(glm::vec3 const &)\n" "    glm::ceil(glm::vec4 const &)\n"); lua_error(L);return 0; }
static int _wrap_fract__SWIG_0(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float temp1 ; float result;
  SWIG_check_num_args("glm::fract",1,1) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::fract",1,"float const &");
  temp1=(float)lua_tonumber(L,1); arg1=&temp1; result = (float)glm::fract((float const &)*arg1);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_fract__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 result;
  SWIG_check_num_args("glm::fract",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::fract",1,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("fract",1,SWIGTYPE_p_glm__vec2); } 
  result = glm::fract((glm::vec2 const &)*arg1); { glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_fract__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::fract",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::fract",1,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("fract",1,SWIGTYPE_p_glm__vec3); } 
  result = glm::fract((glm::vec3 const &)*arg1); { glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_fract__SWIG_3(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::fract",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::fract",1,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("fract",1,SWIGTYPE_p_glm__vec4); } 
  result = glm::fract((glm::vec4 const &)*arg1); { glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_fract(lua_State* L) { int argc; int argv[2]={ 1,2} ; argc = lua_gettop(L); if (argc == 1) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_fract__SWIG_1(L);}  check_1: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_fract__SWIG_2(L);}  check_2: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_fract__SWIG_3(L);}  check_3: if (argc == 1) {
    return _wrap_fract__SWIG_0(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'fract'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::fract(float const &)\n" "    glm::fract(glm::vec2 const &)\n"
  "    glm::fract(glm::vec3 const &)\n" "    glm::fract(glm::vec4 const &)\n"); lua_error(L);return 0; }
static int _wrap_mod__SWIG_0(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float *arg2 = 0 ; float temp1 ; float temp2 ;
  float result; SWIG_check_num_args("glm::mod",2,2) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::mod",1,"float const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::mod",2,"float const &"); temp1=(float)lua_tonumber(L,1); arg1=&temp1;
  temp2=(float)lua_tonumber(L,2); arg2=&temp2; result = (float)glm::mod((float const &)*arg1,(float const &)*arg2);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_mod__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 *arg2 = 0 ; glm::vec2 result;
  SWIG_check_num_args("glm::mod",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::mod",1,"glm::vec2 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::mod",2,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("mod",1,SWIGTYPE_p_glm__vec2); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("mod",2,SWIGTYPE_p_glm__vec2); } 
  result = glm::mod((glm::vec2 const &)*arg1,(glm::vec2 const &)*arg2); {
    glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mod__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 *arg2 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::mod",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::mod",1,"glm::vec3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::mod",2,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("mod",1,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("mod",2,SWIGTYPE_p_glm__vec3); } 
  result = glm::mod((glm::vec3 const &)*arg1,(glm::vec3 const &)*arg2); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mod__SWIG_3(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 *arg2 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::mod",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::mod",1,"glm::vec4 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::mod",2,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("mod",1,SWIGTYPE_p_glm__vec4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("mod",2,SWIGTYPE_p_glm__vec4); } 
  result = glm::mod((glm::vec4 const &)*arg1,(glm::vec4 const &)*arg2); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mod__SWIG_4(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; float *arg2 = 0 ; float temp2 ;
  glm::vec2 result; SWIG_check_num_args("glm::mod",2,2)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::mod",1,"glm::vec2 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::mod",2,"float const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("mod",1,SWIGTYPE_p_glm__vec2); } 
  temp2=(float)lua_tonumber(L,2); arg2=&temp2; result = glm::mod((glm::vec2 const &)*arg1,(float const &)*arg2); {
    glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mod__SWIG_5(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; float *arg2 = 0 ; float temp2 ;
  glm::vec3 result; SWIG_check_num_args("glm::mod",2,2)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::mod",1,"glm::vec3 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::mod",2,"float const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("mod",1,SWIGTYPE_p_glm__vec3); } 
  temp2=(float)lua_tonumber(L,2); arg2=&temp2; result = glm::mod((glm::vec3 const &)*arg1,(float const &)*arg2); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mod__SWIG_6(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; float *arg2 = 0 ; float temp2 ;
  glm::vec4 result; SWIG_check_num_args("glm::mod",2,2)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::mod",1,"glm::vec4 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::mod",2,"float const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("mod",1,SWIGTYPE_p_glm__vec4); } 
  temp2=(float)lua_tonumber(L,2); arg2=&temp2; result = glm::mod((glm::vec4 const &)*arg1,(float const &)*arg2); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mod(lua_State* L) { int argc; int argv[3]={ 1,2,3} ; argc = lua_gettop(L); if (argc == 2) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_mod__SWIG_1(L);}  check_1: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_mod__SWIG_2(L);}  check_2: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_mod__SWIG_3(L);}  check_3: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_4; return _wrap_mod__SWIG_4(L);}  check_4: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_5; return _wrap_mod__SWIG_5(L);}  check_5: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_6; return _wrap_mod__SWIG_6(L);}  check_6: if (argc == 2) {
    return _wrap_mod__SWIG_0(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'mod'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::mod(float const &,float const &)\n"
  "    glm::mod(glm::vec2 const &,glm::vec2 const &)\n" "    glm::mod(glm::vec3 const &,glm::vec3 const &)\n"
  "    glm::mod(glm::vec4 const &,glm::vec4 const &)\n" "    glm::mod(glm::vec2 const &,float const &)\n"
  "    glm::mod(glm::vec3 const &,float const &)\n" "    glm::mod(glm::vec4 const &,float const &)\n"); lua_error(L);return 0; }
static int _wrap_modf__SWIG_0(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float *arg2 = 0 ; float temp1 ; float result;
  SWIG_check_num_args("glm::modf",2,2) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::modf",1,"float const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::modf",2,"float &"); temp1=(float)lua_tonumber(L,1); arg1=&temp1;
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_float,0))){ SWIG_fail_ptr("modf",2,SWIGTYPE_p_float); } 
  result = (float)glm::modf((float const &)*arg1,*arg2); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg;
  if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_modf__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 *arg2 = 0 ; glm::vec2 result;
  SWIG_check_num_args("glm::modf",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::modf",1,"glm::vec2 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::modf",2,"glm::vec2 &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("modf",1,SWIGTYPE_p_glm__vec2); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("modf",2,SWIGTYPE_p_glm__vec2); } 
  result = glm::modf((glm::vec2 const &)*arg1,*arg2); { glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_modf__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 *arg2 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::modf",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::modf",1,"glm::vec3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::modf",2,"glm::vec3 &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("modf",1,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("modf",2,SWIGTYPE_p_glm__vec3); } 
  result = glm::modf((glm::vec3 const &)*arg1,*arg2); { glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_modf__SWIG_3(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 *arg2 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::modf",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::modf",1,"glm::vec4 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::modf",2,"glm::vec4 &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("modf",1,SWIGTYPE_p_glm__vec4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("modf",2,SWIGTYPE_p_glm__vec4); } 
  result = glm::modf((glm::vec4 const &)*arg1,*arg2); { glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_modf(lua_State* L) { int argc; int argv[3]={ 1,2,3} ; argc = lua_gettop(L); if (argc == 2) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_modf__SWIG_1(L);}  check_1: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_modf__SWIG_2(L);}  check_2: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_modf__SWIG_3(L);}  check_3: if (argc == 2) {
    return _wrap_modf__SWIG_0(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'modf'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::modf(float const &,float &)\n" "    glm::modf(glm::vec2 const &,glm::vec2 &)\n"
  "    glm::modf(glm::vec3 const &,glm::vec3 &)\n" "    glm::modf(glm::vec4 const &,glm::vec4 &)\n"); lua_error(L);return 0; }
static int _wrap_min__SWIG_0(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float *arg2 = 0 ; float temp1 ; float temp2 ;
  float result; SWIG_check_num_args("glm::min",2,2) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::min",1,"float const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::min",2,"float const &"); temp1=(float)lua_tonumber(L,1); arg1=&temp1;
  temp2=(float)lua_tonumber(L,2); arg2=&temp2; result = (float)glm::min((float const &)*arg1,(float const &)*arg2);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_min__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 *arg2 = 0 ; glm::vec2 result;
  SWIG_check_num_args("glm::min",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::min",1,"glm::vec2 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::min",2,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("min",1,SWIGTYPE_p_glm__vec2); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("min",2,SWIGTYPE_p_glm__vec2); } 
  result = glm::min((glm::vec2 const &)*arg1,(glm::vec2 const &)*arg2); {
    glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_min__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 *arg2 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::min",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::min",1,"glm::vec3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::min",2,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("min",1,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("min",2,SWIGTYPE_p_glm__vec3); } 
  result = glm::min((glm::vec3 const &)*arg1,(glm::vec3 const &)*arg2); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_min__SWIG_3(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 *arg2 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::min",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::min",1,"glm::vec4 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::min",2,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("min",1,SWIGTYPE_p_glm__vec4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("min",2,SWIGTYPE_p_glm__vec4); } 
  result = glm::min((glm::vec4 const &)*arg1,(glm::vec4 const &)*arg2); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_min__SWIG_4(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; float *arg2 = 0 ; float temp2 ;
  glm::vec2 result; SWIG_check_num_args("glm::min",2,2)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::min",1,"glm::vec2 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::min",2,"float const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("min",1,SWIGTYPE_p_glm__vec2); } 
  temp2=(float)lua_tonumber(L,2); arg2=&temp2; result = glm::min((glm::vec2 const &)*arg1,(float const &)*arg2); {
    glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_min__SWIG_5(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; float *arg2 = 0 ; float temp2 ;
  glm::vec3 result; SWIG_check_num_args("glm::min",2,2)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::min",1,"glm::vec3 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::min",2,"float const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("min",1,SWIGTYPE_p_glm__vec3); } 
  temp2=(float)lua_tonumber(L,2); arg2=&temp2; result = glm::min((glm::vec3 const &)*arg1,(float const &)*arg2); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_min__SWIG_6(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; float *arg2 = 0 ; float temp2 ;
  glm::vec4 result; SWIG_check_num_args("glm::min",2,2)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::min",1,"glm::vec4 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::min",2,"float const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("min",1,SWIGTYPE_p_glm__vec4); } 
  temp2=(float)lua_tonumber(L,2); arg2=&temp2; result = glm::min((glm::vec4 const &)*arg1,(float const &)*arg2); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_min(lua_State* L) { int argc; int argv[3]={ 1,2,3} ; argc = lua_gettop(L); if (argc == 2) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_min__SWIG_1(L);}  check_1: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_min__SWIG_2(L);}  check_2: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_min__SWIG_3(L);}  check_3: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_4; return _wrap_min__SWIG_4(L);}  check_4: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_5; return _wrap_min__SWIG_5(L);}  check_5: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_6; return _wrap_min__SWIG_6(L);}  check_6: if (argc == 2) {
    return _wrap_min__SWIG_0(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'min'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::min(float const &,float const &)\n"
  "    glm::min(glm::vec2 const &,glm::vec2 const &)\n" "    glm::min(glm::vec3 const &,glm::vec3 const &)\n"
  "    glm::min(glm::vec4 const &,glm::vec4 const &)\n" "    glm::min(glm::vec2 const &,float const &)\n"
  "    glm::min(glm::vec3 const &,float const &)\n" "    glm::min(glm::vec4 const &,float const &)\n"); lua_error(L);return 0; }
static int _wrap_max__SWIG_0(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float *arg2 = 0 ; float temp1 ; float temp2 ;
  float result; SWIG_check_num_args("glm::max",2,2) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::max",1,"float const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::max",2,"float const &"); temp1=(float)lua_tonumber(L,1); arg1=&temp1;
  temp2=(float)lua_tonumber(L,2); arg2=&temp2; result = (float)glm::max((float const &)*arg1,(float const &)*arg2);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_max__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 *arg2 = 0 ; glm::vec2 result;
  SWIG_check_num_args("glm::max",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::max",1,"glm::vec2 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::max",2,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("max",1,SWIGTYPE_p_glm__vec2); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("max",2,SWIGTYPE_p_glm__vec2); } 
  result = glm::max((glm::vec2 const &)*arg1,(glm::vec2 const &)*arg2); {
    glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_max__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 *arg2 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::max",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::max",1,"glm::vec3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::max",2,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("max",1,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("max",2,SWIGTYPE_p_glm__vec3); } 
  result = glm::max((glm::vec3 const &)*arg1,(glm::vec3 const &)*arg2); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_max__SWIG_3(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 *arg2 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::max",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::max",1,"glm::vec4 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::max",2,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("max",1,SWIGTYPE_p_glm__vec4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("max",2,SWIGTYPE_p_glm__vec4); } 
  result = glm::max((glm::vec4 const &)*arg1,(glm::vec4 const &)*arg2); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_max__SWIG_4(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; float *arg2 = 0 ; float temp2 ;
  glm::vec2 result; SWIG_check_num_args("glm::max",2,2)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::max",1,"glm::vec2 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::max",2,"float const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("max",1,SWIGTYPE_p_glm__vec2); } 
  temp2=(float)lua_tonumber(L,2); arg2=&temp2; result = glm::max((glm::vec2 const &)*arg1,(float const &)*arg2); {
    glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_max__SWIG_5(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; float *arg2 = 0 ; float temp2 ;
  glm::vec3 result; SWIG_check_num_args("glm::max",2,2)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::max",1,"glm::vec3 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::max",2,"float const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("max",1,SWIGTYPE_p_glm__vec3); } 
  temp2=(float)lua_tonumber(L,2); arg2=&temp2; result = glm::max((glm::vec3 const &)*arg1,(float const &)*arg2); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_max__SWIG_6(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; float *arg2 = 0 ; float temp2 ;
  glm::vec4 result; SWIG_check_num_args("glm::max",2,2)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::max",1,"glm::vec4 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::max",2,"float const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("max",1,SWIGTYPE_p_glm__vec4); } 
  temp2=(float)lua_tonumber(L,2); arg2=&temp2; result = glm::max((glm::vec4 const &)*arg1,(float const &)*arg2); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_max(lua_State* L) { int argc; int argv[3]={ 1,2,3} ; argc = lua_gettop(L); if (argc == 2) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_max__SWIG_1(L);}  check_1: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_max__SWIG_2(L);}  check_2: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_max__SWIG_3(L);}  check_3: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_4; return _wrap_max__SWIG_4(L);}  check_4: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_5; return _wrap_max__SWIG_5(L);}  check_5: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_6; return _wrap_max__SWIG_6(L);}  check_6: if (argc == 2) {
    return _wrap_max__SWIG_0(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'max'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::max(float const &,float const &)\n"
  "    glm::max(glm::vec2 const &,glm::vec2 const &)\n" "    glm::max(glm::vec3 const &,glm::vec3 const &)\n"
  "    glm::max(glm::vec4 const &,glm::vec4 const &)\n" "    glm::max(glm::vec2 const &,float const &)\n"
  "    glm::max(glm::vec3 const &,float const &)\n" "    glm::max(glm::vec4 const &,float const &)\n"); lua_error(L);return 0; }
static int _wrap_clamp__SWIG_0(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float *arg2 = 0 ; float *arg3 = 0 ;
  float temp1 ; float temp2 ; float temp3 ; float result; SWIG_check_num_args("glm::clamp",3,3)
  if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::clamp",1,"float const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::clamp",2,"float const &");
  if(!lua_isnumber(L,3)) SWIG_fail_arg("glm::clamp",3,"float const &"); temp1=(float)lua_tonumber(L,1); arg1=&temp1;
  temp2=(float)lua_tonumber(L,2); arg2=&temp2; temp3=(float)lua_tonumber(L,3); arg3=&temp3;
  result = (float)glm::clamp((float const &)*arg1,(float const &)*arg2,(float const &)*arg3);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_clamp__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 *arg2 = 0 ;
  glm::vec2 *arg3 = 0 ; glm::vec2 result; SWIG_check_num_args("glm::clamp",3,3)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::clamp",1,"glm::vec2 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::clamp",2,"glm::vec2 const &");
  if(!lua_isuserdata(L,3)) SWIG_fail_arg("glm::clamp",3,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("clamp",1,SWIGTYPE_p_glm__vec2); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("clamp",2,SWIGTYPE_p_glm__vec2); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("clamp",3,SWIGTYPE_p_glm__vec2); } 
  result = glm::clamp((glm::vec2 const &)*arg1,(glm::vec2 const &)*arg2,(glm::vec2 const &)*arg3); {
    glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_clamp__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 *arg2 = 0 ;
  glm::vec3 *arg3 = 0 ; glm::vec3 result; SWIG_check_num_args("glm::clamp",3,3)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::clamp",1,"glm::vec3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::clamp",2,"glm::vec3 const &");
  if(!lua_isuserdata(L,3)) SWIG_fail_arg("glm::clamp",3,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("clamp",1,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("clamp",2,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("clamp",3,SWIGTYPE_p_glm__vec3); } 
  result = glm::clamp((glm::vec3 const &)*arg1,(glm::vec3 const &)*arg2,(glm::vec3 const &)*arg3); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_clamp__SWIG_3(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 *arg2 = 0 ;
  glm::vec4 *arg3 = 0 ; glm::vec4 result; SWIG_check_num_args("glm::clamp",3,3)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::clamp",1,"glm::vec4 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::clamp",2,"glm::vec4 const &");
  if(!lua_isuserdata(L,3)) SWIG_fail_arg("glm::clamp",3,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("clamp",1,SWIGTYPE_p_glm__vec4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("clamp",2,SWIGTYPE_p_glm__vec4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("clamp",3,SWIGTYPE_p_glm__vec4); } 
  result = glm::clamp((glm::vec4 const &)*arg1,(glm::vec4 const &)*arg2,(glm::vec4 const &)*arg3); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_clamp__SWIG_4(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; float *arg2 = 0 ; float *arg3 = 0 ;
  float temp2 ; float temp3 ; glm::vec2 result; SWIG_check_num_args("glm::clamp",3,3)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::clamp",1,"glm::vec2 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::clamp",2,"float const &");
  if(!lua_isnumber(L,3)) SWIG_fail_arg("glm::clamp",3,"float const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("clamp",1,SWIGTYPE_p_glm__vec2); } 
  temp2=(float)lua_tonumber(L,2); arg2=&temp2; temp3=(float)lua_tonumber(L,3); arg3=&temp3;
  result = glm::clamp((glm::vec2 const &)*arg1,(float const &)*arg2,(float const &)*arg3); {
    glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_clamp__SWIG_5(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; float *arg2 = 0 ; float *arg3 = 0 ;
  float temp2 ; float temp3 ; glm::vec3 result; SWIG_check_num_args("glm::clamp",3,3)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::clamp",1,"glm::vec3 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::clamp",2,"float const &");
  if(!lua_isnumber(L,3)) SWIG_fail_arg("glm::clamp",3,"float const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("clamp",1,SWIGTYPE_p_glm__vec3); } 
  temp2=(float)lua_tonumber(L,2); arg2=&temp2; temp3=(float)lua_tonumber(L,3); arg3=&temp3;
  result = glm::clamp((glm::vec3 const &)*arg1,(float const &)*arg2,(float const &)*arg3); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_clamp__SWIG_6(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; float *arg2 = 0 ; float *arg3 = 0 ;
  float temp2 ; float temp3 ; glm::vec4 result; SWIG_check_num_args("glm::clamp",3,3)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::clamp",1,"glm::vec4 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::clamp",2,"float const &");
  if(!lua_isnumber(L,3)) SWIG_fail_arg("glm::clamp",3,"float const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("clamp",1,SWIGTYPE_p_glm__vec4); } 
  temp2=(float)lua_tonumber(L,2); arg2=&temp2; temp3=(float)lua_tonumber(L,3); arg3=&temp3;
  result = glm::clamp((glm::vec4 const &)*arg1,(float const &)*arg2,(float const &)*arg3); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_clamp(lua_State* L) { int argc; int argv[4]={ 1,2,3,4} ; argc = lua_gettop(L); if (argc == 3) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; { { void *ptr;
        if (lua_isuserdata(L,argv[2])==0 || SWIG_ConvertPtr(L,argv[2], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_clamp__SWIG_1(L);}  check_1: if (argc == 3) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; { { void *ptr;
        if (lua_isuserdata(L,argv[2])==0 || SWIG_ConvertPtr(L,argv[2], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_clamp__SWIG_2(L);}  check_2: if (argc == 3) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; { { void *ptr;
        if (lua_isuserdata(L,argv[2])==0 || SWIG_ConvertPtr(L,argv[2], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_clamp__SWIG_3(L);}  check_3: if (argc == 3) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_4; return _wrap_clamp__SWIG_4(L);}  check_4: if (argc == 3) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_5; return _wrap_clamp__SWIG_5(L);}  check_5: if (argc == 3) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_6; return _wrap_clamp__SWIG_6(L);}  check_6: if (argc == 3) {
    return _wrap_clamp__SWIG_0(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'clamp'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::clamp(float const &,float const &,float const &)\n"
  "    glm::clamp(glm::vec2 const &,glm::vec2 const &,glm::vec2 const &)\n"
  "    glm::clamp(glm::vec3 const &,glm::vec3 const &,glm::vec3 const &)\n"
  "    glm::clamp(glm::vec4 const &,glm::vec4 const &,glm::vec4 const &)\n"
  "    glm::clamp(glm::vec2 const &,float const &,float const &)\n"
  "    glm::clamp(glm::vec3 const &,float const &,float const &)\n"
  "    glm::clamp(glm::vec4 const &,float const &,float const &)\n"); lua_error(L);return 0; }
static int _wrap_mix__SWIG_1(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float *arg2 = 0 ; float *arg3 = 0 ;
  float temp1 ; float temp2 ; float temp3 ; float result; SWIG_check_num_args("glm::mix",3,3)
  if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::mix",1,"float const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::mix",2,"float const &");
  if(!lua_isnumber(L,3)) SWIG_fail_arg("glm::mix",3,"float const &"); temp1=(float)lua_tonumber(L,1); arg1=&temp1;
  temp2=(float)lua_tonumber(L,2); arg2=&temp2; temp3=(float)lua_tonumber(L,3); arg3=&temp3;
  result = (float)glm::mix((float const &)*arg1,(float const &)*arg2,(float const &)*arg3);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_mix__SWIG_2(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float *arg2 = 0 ; bool *arg3 = 0 ;
  float temp1 ; float temp2 ; bool temp3 ; float result; SWIG_check_num_args("glm::mix",3,3)
  if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::mix",1,"float const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::mix",2,"float const &");
  if(!lua_isboolean(L,3)) SWIG_fail_arg("glm::mix",3,"bool const &"); temp1=(float)lua_tonumber(L,1); arg1=&temp1;
  temp2=(float)lua_tonumber(L,2); arg2=&temp2; temp3=(lua_toboolean(L, 3)!=0); arg3=&temp3;
  result = (float)glm::mix((float const &)*arg1,(float const &)*arg2,(bool const &)*arg3);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_mix__SWIG_3(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 *arg2 = 0 ; glm::vec2 *arg3 = 0 ;
  glm::vec2 result; SWIG_check_num_args("glm::mix",3,3)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::mix",1,"glm::vec2 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::mix",2,"glm::vec2 const &");
  if(!lua_isuserdata(L,3)) SWIG_fail_arg("glm::mix",3,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("mix",1,SWIGTYPE_p_glm__vec2); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("mix",2,SWIGTYPE_p_glm__vec2); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("mix",3,SWIGTYPE_p_glm__vec2); } 
  result = glm::mix((glm::vec2 const &)*arg1,(glm::vec2 const &)*arg2,(glm::vec2 const &)*arg3); {
    glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mix__SWIG_4(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 *arg2 = 0 ; glm::vec3 *arg3 = 0 ;
  glm::vec3 result; SWIG_check_num_args("glm::mix",3,3)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::mix",1,"glm::vec3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::mix",2,"glm::vec3 const &");
  if(!lua_isuserdata(L,3)) SWIG_fail_arg("glm::mix",3,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("mix",1,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("mix",2,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("mix",3,SWIGTYPE_p_glm__vec3); } 
  result = glm::mix((glm::vec3 const &)*arg1,(glm::vec3 const &)*arg2,(glm::vec3 const &)*arg3); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mix__SWIG_5(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 *arg2 = 0 ; glm::vec4 *arg3 = 0 ;
  glm::vec4 result; SWIG_check_num_args("glm::mix",3,3)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::mix",1,"glm::vec4 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::mix",2,"glm::vec4 const &");
  if(!lua_isuserdata(L,3)) SWIG_fail_arg("glm::mix",3,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("mix",1,SWIGTYPE_p_glm__vec4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("mix",2,SWIGTYPE_p_glm__vec4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("mix",3,SWIGTYPE_p_glm__vec4); } 
  result = glm::mix((glm::vec4 const &)*arg1,(glm::vec4 const &)*arg2,(glm::vec4 const &)*arg3); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mix__SWIG_6(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 *arg2 = 0 ; bool *arg3 = 0 ;
  bool temp3 ; glm::vec2 result; SWIG_check_num_args("glm::mix",3,3)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::mix",1,"glm::vec2 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::mix",2,"glm::vec2 const &");
  if(!lua_isboolean(L,3)) SWIG_fail_arg("glm::mix",3,"bool const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("mix",1,SWIGTYPE_p_glm__vec2); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("mix",2,SWIGTYPE_p_glm__vec2); } 
  temp3=(lua_toboolean(L, 3)!=0); arg3=&temp3;
  result = glm::mix((glm::vec2 const &)*arg1,(glm::vec2 const &)*arg2,(bool const &)*arg3); {
    glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mix__SWIG_7(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 *arg2 = 0 ; bool *arg3 = 0 ;
  bool temp3 ; glm::vec3 result; SWIG_check_num_args("glm::mix",3,3)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::mix",1,"glm::vec3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::mix",2,"glm::vec3 const &");
  if(!lua_isboolean(L,3)) SWIG_fail_arg("glm::mix",3,"bool const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("mix",1,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("mix",2,SWIGTYPE_p_glm__vec3); } 
  temp3=(lua_toboolean(L, 3)!=0); arg3=&temp3;
  result = glm::mix((glm::vec3 const &)*arg1,(glm::vec3 const &)*arg2,(bool const &)*arg3); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mix__SWIG_8(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 *arg2 = 0 ; bool *arg3 = 0 ;
  bool temp3 ; glm::vec4 result; SWIG_check_num_args("glm::mix",3,3)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::mix",1,"glm::vec4 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::mix",2,"glm::vec4 const &");
  if(!lua_isboolean(L,3)) SWIG_fail_arg("glm::mix",3,"bool const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("mix",1,SWIGTYPE_p_glm__vec4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("mix",2,SWIGTYPE_p_glm__vec4); } 
  temp3=(lua_toboolean(L, 3)!=0); arg3=&temp3;
  result = glm::mix((glm::vec4 const &)*arg1,(glm::vec4 const &)*arg2,(bool const &)*arg3); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_mix(lua_State* L) { int argc; int argv[4]={ 1,2,3,4} ; argc = lua_gettop(L); if (argc == 3) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__quat, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__quat, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; { { _v = lua_isnumber(L,argv[2]); } }  if (!_v) goto check_1;
    return _wrap_mix__SWIG_0(L);}  check_1: if (argc == 3) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; { { void *ptr;
        if (lua_isuserdata(L,argv[2])==0 || SWIG_ConvertPtr(L,argv[2], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_mix__SWIG_3(L);}  check_2: if (argc == 3) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; { { void *ptr;
        if (lua_isuserdata(L,argv[2])==0 || SWIG_ConvertPtr(L,argv[2], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_mix__SWIG_4(L);}  check_3: if (argc == 3) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_4; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_4; { { void *ptr;
        if (lua_isuserdata(L,argv[2])==0 || SWIG_ConvertPtr(L,argv[2], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_4; return _wrap_mix__SWIG_5(L);}  check_4: if (argc == 3) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_5; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_5; { { _v = lua_isboolean(L,argv[2]); } } 
    if (!_v) goto check_5; return _wrap_mix__SWIG_6(L);}  check_5: if (argc == 3) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_6; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_6; { { _v = lua_isboolean(L,argv[2]); } } 
    if (!_v) goto check_6; return _wrap_mix__SWIG_7(L);}  check_6: if (argc == 3) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_7; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_7; { { _v = lua_isboolean(L,argv[2]); } } 
    if (!_v) goto check_7; return _wrap_mix__SWIG_8(L);}  check_7: if (argc == 3) { int _v = 0; { {
        _v = lua_isboolean(L,argv[2]); } }  if (!_v) goto check_8; return _wrap_mix__SWIG_2(L);}  check_8: if (argc == 3) {
    return _wrap_mix__SWIG_1(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'mix'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::mix(glm::quat const &,glm::quat const &,float)\n"
  "    glm::mix(float const &,float const &,float const &)\n" "    glm::mix(float const &,float const &,bool const &)\n"
  "    glm::mix(glm::vec2 const &,glm::vec2 const &,glm::vec2 const &)\n"
  "    glm::mix(glm::vec3 const &,glm::vec3 const &,glm::vec3 const &)\n"
  "    glm::mix(glm::vec4 const &,glm::vec4 const &,glm::vec4 const &)\n"
  "    glm::mix(glm::vec2 const &,glm::vec2 const &,bool const &)\n"
  "    glm::mix(glm::vec3 const &,glm::vec3 const &,bool const &)\n"
  "    glm::mix(glm::vec4 const &,glm::vec4 const &,bool const &)\n"); lua_error(L);return 0; }
static int _wrap_step__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 *arg2 = 0 ; glm::vec2 result;
  SWIG_check_num_args("glm::step",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::step",1,"glm::vec2 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::step",2,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("step",1,SWIGTYPE_p_glm__vec2); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("step",2,SWIGTYPE_p_glm__vec2); } 
  result = glm::step((glm::vec2 const &)*arg1,(glm::vec2 const &)*arg2); {
    glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_step__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 *arg2 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::step",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::step",1,"glm::vec3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::step",2,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("step",1,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("step",2,SWIGTYPE_p_glm__vec3); } 
  result = glm::step((glm::vec3 const &)*arg1,(glm::vec3 const &)*arg2); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_step__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 *arg2 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::step",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::step",1,"glm::vec4 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::step",2,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("step",1,SWIGTYPE_p_glm__vec4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("step",2,SWIGTYPE_p_glm__vec4); } 
  result = glm::step((glm::vec4 const &)*arg1,(glm::vec4 const &)*arg2); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_step__SWIG_3(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; glm::vec2 *arg2 = 0 ; float temp1 ;
  glm::vec2 result; SWIG_check_num_args("glm::step",2,2) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::step",1,"float const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::step",2,"glm::vec2 const &"); temp1=(float)lua_tonumber(L,1); arg1=&temp1;
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("step",2,SWIGTYPE_p_glm__vec2); } 
  result = glm::step((float const &)*arg1,(glm::vec2 const &)*arg2); {
    glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_step__SWIG_4(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; glm::vec3 *arg2 = 0 ; float temp1 ;
  glm::vec3 result; SWIG_check_num_args("glm::step",2,2) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::step",1,"float const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::step",2,"glm::vec3 const &"); temp1=(float)lua_tonumber(L,1); arg1=&temp1;
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("step",2,SWIGTYPE_p_glm__vec3); } 
  result = glm::step((float const &)*arg1,(glm::vec3 const &)*arg2); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_step__SWIG_5(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; glm::vec4 *arg2 = 0 ; float temp1 ;
  glm::vec4 result; SWIG_check_num_args("glm::step",2,2) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::step",1,"float const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::step",2,"glm::vec4 const &"); temp1=(float)lua_tonumber(L,1); arg1=&temp1;
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("step",2,SWIGTYPE_p_glm__vec4); } 
  result = glm::step((float const &)*arg1,(glm::vec4 const &)*arg2); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_step(lua_State* L) { int argc; int argv[3]={ 1,2,3} ; argc = lua_gettop(L); if (argc == 2) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_step__SWIG_0(L);}  check_1: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_step__SWIG_1(L);}  check_2: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_step__SWIG_2(L);}  check_3: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_4; return _wrap_step__SWIG_3(L);}  check_4: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_5; return _wrap_step__SWIG_4(L);}  check_5: if (argc == 2) {
    return _wrap_step__SWIG_5(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'step'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::step(glm::vec2 const &,glm::vec2 const &)\n"
  "    glm::step(glm::vec3 const &,glm::vec3 const &)\n" "    glm::step(glm::vec4 const &,glm::vec4 const &)\n"
  "    glm::step(float const &,glm::vec2 const &)\n" "    glm::step(float const &,glm::vec3 const &)\n"
  "    glm::step(float const &,glm::vec4 const &)\n"); lua_error(L);return 0; }
static int _wrap_smoothstep__SWIG_0(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float *arg2 = 0 ; float *arg3 = 0 ;
  float temp1 ; float temp2 ; float temp3 ; float result; SWIG_check_num_args("glm::smoothstep",3,3)
  if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::smoothstep",1,"float const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::smoothstep",2,"float const &");
  if(!lua_isnumber(L,3)) SWIG_fail_arg("glm::smoothstep",3,"float const &"); temp1=(float)lua_tonumber(L,1); arg1=&temp1;
  temp2=(float)lua_tonumber(L,2); arg2=&temp2; temp3=(float)lua_tonumber(L,3); arg3=&temp3;
  result = (float)glm::smoothstep((float const &)*arg1,(float const &)*arg2,(float const &)*arg3);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_smoothstep__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 *arg2 = 0 ;
  glm::vec2 *arg3 = 0 ; glm::vec2 result; SWIG_check_num_args("glm::smoothstep",3,3)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::smoothstep",1,"glm::vec2 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::smoothstep",2,"glm::vec2 const &");
  if(!lua_isuserdata(L,3)) SWIG_fail_arg("glm::smoothstep",3,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){
    SWIG_fail_ptr("smoothstep",1,SWIGTYPE_p_glm__vec2); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec2,0))){
    SWIG_fail_ptr("smoothstep",2,SWIGTYPE_p_glm__vec2); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_glm__vec2,0))){
    SWIG_fail_ptr("smoothstep",3,SWIGTYPE_p_glm__vec2); } 
  result = glm::smoothstep((glm::vec2 const &)*arg1,(glm::vec2 const &)*arg2,(glm::vec2 const &)*arg3); {
    glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_smoothstep__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 *arg2 = 0 ;
  glm::vec3 *arg3 = 0 ; glm::vec3 result; SWIG_check_num_args("glm::smoothstep",3,3)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::smoothstep",1,"glm::vec3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::smoothstep",2,"glm::vec3 const &");
  if(!lua_isuserdata(L,3)) SWIG_fail_arg("glm::smoothstep",3,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("smoothstep",1,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("smoothstep",2,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("smoothstep",3,SWIGTYPE_p_glm__vec3); } 
  result = glm::smoothstep((glm::vec3 const &)*arg1,(glm::vec3 const &)*arg2,(glm::vec3 const &)*arg3); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_smoothstep__SWIG_3(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 *arg2 = 0 ;
  glm::vec4 *arg3 = 0 ; glm::vec4 result; SWIG_check_num_args("glm::smoothstep",3,3)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::smoothstep",1,"glm::vec4 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::smoothstep",2,"glm::vec4 const &");
  if(!lua_isuserdata(L,3)) SWIG_fail_arg("glm::smoothstep",3,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){
    SWIG_fail_ptr("smoothstep",1,SWIGTYPE_p_glm__vec4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec4,0))){
    SWIG_fail_ptr("smoothstep",2,SWIGTYPE_p_glm__vec4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_glm__vec4,0))){
    SWIG_fail_ptr("smoothstep",3,SWIGTYPE_p_glm__vec4); } 
  result = glm::smoothstep((glm::vec4 const &)*arg1,(glm::vec4 const &)*arg2,(glm::vec4 const &)*arg3); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_smoothstep__SWIG_4(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float *arg2 = 0 ; glm::vec2 *arg3 = 0 ;
  float temp1 ; float temp2 ; glm::vec2 result; SWIG_check_num_args("glm::smoothstep",3,3)
  if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::smoothstep",1,"float const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::smoothstep",2,"float const &");
  if(!lua_isuserdata(L,3)) SWIG_fail_arg("glm::smoothstep",3,"glm::vec2 const &"); temp1=(float)lua_tonumber(L,1); arg1=&temp1;
  temp2=(float)lua_tonumber(L,2); arg2=&temp2; if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_glm__vec2,0))){
    SWIG_fail_ptr("smoothstep",3,SWIGTYPE_p_glm__vec2); } 
  result = glm::smoothstep((float const &)*arg1,(float const &)*arg2,(glm::vec2 const &)*arg3); {
    glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_smoothstep__SWIG_5(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float *arg2 = 0 ; glm::vec3 *arg3 = 0 ;
  float temp1 ; float temp2 ; glm::vec3 result; SWIG_check_num_args("glm::smoothstep",3,3)
  if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::smoothstep",1,"float const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::smoothstep",2,"float const &");
  if(!lua_isuserdata(L,3)) SWIG_fail_arg("glm::smoothstep",3,"glm::vec3 const &"); temp1=(float)lua_tonumber(L,1); arg1=&temp1;
  temp2=(float)lua_tonumber(L,2); arg2=&temp2; if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("smoothstep",3,SWIGTYPE_p_glm__vec3); } 
  result = glm::smoothstep((float const &)*arg1,(float const &)*arg2,(glm::vec3 const &)*arg3); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_smoothstep__SWIG_6(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float *arg2 = 0 ; glm::vec4 *arg3 = 0 ;
  float temp1 ; float temp2 ; glm::vec4 result; SWIG_check_num_args("glm::smoothstep",3,3)
  if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::smoothstep",1,"float const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::smoothstep",2,"float const &");
  if(!lua_isuserdata(L,3)) SWIG_fail_arg("glm::smoothstep",3,"glm::vec4 const &"); temp1=(float)lua_tonumber(L,1); arg1=&temp1;
  temp2=(float)lua_tonumber(L,2); arg2=&temp2; if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_glm__vec4,0))){
    SWIG_fail_ptr("smoothstep",3,SWIGTYPE_p_glm__vec4); } 
  result = glm::smoothstep((float const &)*arg1,(float const &)*arg2,(glm::vec4 const &)*arg3); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_smoothstep(lua_State* L) { int argc; int argv[4]={ 1,2,3,4} ; argc = lua_gettop(L); if (argc == 3) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; { { void *ptr;
        if (lua_isuserdata(L,argv[2])==0 || SWIG_ConvertPtr(L,argv[2], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_smoothstep__SWIG_1(L);}  check_1:
  if (argc == 3) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; { { void *ptr;
        if (lua_isuserdata(L,argv[2])==0 || SWIG_ConvertPtr(L,argv[2], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_smoothstep__SWIG_2(L);}  check_2:
  if (argc == 3) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; { { void *ptr;
        if (lua_isuserdata(L,argv[2])==0 || SWIG_ConvertPtr(L,argv[2], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_smoothstep__SWIG_3(L);}  check_3:
  if (argc == 3) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[2])==0 || SWIG_ConvertPtr(L,argv[2], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_4; return _wrap_smoothstep__SWIG_4(L);}  check_4:
  if (argc == 3) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[2])==0 || SWIG_ConvertPtr(L,argv[2], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_5; return _wrap_smoothstep__SWIG_5(L);}  check_5:
  if (argc == 3) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[2])==0 || SWIG_ConvertPtr(L,argv[2], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_6; return _wrap_smoothstep__SWIG_6(L);}  check_6:
  if (argc == 3) { return _wrap_smoothstep__SWIG_0(L);} 
  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'smoothstep'\n" "  Possible C/C++ prototypes are:\n"
  "    glm::smoothstep(float const &,float const &,float const &)\n"
  "    glm::smoothstep(glm::vec2 const &,glm::vec2 const &,glm::vec2 const &)\n"
  "    glm::smoothstep(glm::vec3 const &,glm::vec3 const &,glm::vec3 const &)\n"
  "    glm::smoothstep(glm::vec4 const &,glm::vec4 const &,glm::vec4 const &)\n"
  "    glm::smoothstep(float const &,float const &,glm::vec2 const &)\n"
  "    glm::smoothstep(float const &,float const &,glm::vec3 const &)\n"
  "    glm::smoothstep(float const &,float const &,glm::vec4 const &)\n"); lua_error(L);return 0; }
static int _wrap_isnan(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float temp1 ; bool result;
  SWIG_check_num_args("glm::isnan",1,1) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::isnan",1,"float const &");
  temp1=(float)lua_tonumber(L,1); arg1=&temp1; result = (bool)glm::isnan((float const &)*arg1);
  lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_isinf(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float temp1 ; bool result;
  SWIG_check_num_args("glm::isinf",1,1) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::isinf",1,"float const &");
  temp1=(float)lua_tonumber(L,1); arg1=&temp1; result = (bool)glm::isinf((float const &)*arg1);
  lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_fma__SWIG_0(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float *arg2 = 0 ; float *arg3 = 0 ;
  float temp1 ; float temp2 ; float temp3 ; float result; SWIG_check_num_args("glm::fma",3,3)
  if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::fma",1,"float const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::fma",2,"float const &");
  if(!lua_isnumber(L,3)) SWIG_fail_arg("glm::fma",3,"float const &"); temp1=(float)lua_tonumber(L,1); arg1=&temp1;
  temp2=(float)lua_tonumber(L,2); arg2=&temp2; temp3=(float)lua_tonumber(L,3); arg3=&temp3;
  result = (float)glm::fma((float const &)*arg1,(float const &)*arg2,(float const &)*arg3);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_fma__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 *arg2 = 0 ; glm::vec2 *arg3 = 0 ;
  glm::vec2 result; SWIG_check_num_args("glm::fma",3,3)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::fma",1,"glm::vec2 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::fma",2,"glm::vec2 const &");
  if(!lua_isuserdata(L,3)) SWIG_fail_arg("glm::fma",3,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("fma",1,SWIGTYPE_p_glm__vec2); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("fma",2,SWIGTYPE_p_glm__vec2); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("fma",3,SWIGTYPE_p_glm__vec2); } 
  result = glm::fma((glm::vec2 const &)*arg1,(glm::vec2 const &)*arg2,(glm::vec2 const &)*arg3); {
    glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_fma__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 *arg2 = 0 ; glm::vec3 *arg3 = 0 ;
  glm::vec3 result; SWIG_check_num_args("glm::fma",3,3)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::fma",1,"glm::vec3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::fma",2,"glm::vec3 const &");
  if(!lua_isuserdata(L,3)) SWIG_fail_arg("glm::fma",3,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("fma",1,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("fma",2,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("fma",3,SWIGTYPE_p_glm__vec3); } 
  result = glm::fma((glm::vec3 const &)*arg1,(glm::vec3 const &)*arg2,(glm::vec3 const &)*arg3); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_fma__SWIG_3(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 *arg2 = 0 ; glm::vec4 *arg3 = 0 ;
  glm::vec4 result; SWIG_check_num_args("glm::fma",3,3)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::fma",1,"glm::vec4 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::fma",2,"glm::vec4 const &");
  if(!lua_isuserdata(L,3)) SWIG_fail_arg("glm::fma",3,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("fma",1,SWIGTYPE_p_glm__vec4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("fma",2,SWIGTYPE_p_glm__vec4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("fma",3,SWIGTYPE_p_glm__vec4); } 
  result = glm::fma((glm::vec4 const &)*arg1,(glm::vec4 const &)*arg2,(glm::vec4 const &)*arg3); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_fma(lua_State* L) { int argc; int argv[4]={ 1,2,3,4} ; argc = lua_gettop(L); if (argc == 3) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; { { void *ptr;
        if (lua_isuserdata(L,argv[2])==0 || SWIG_ConvertPtr(L,argv[2], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_fma__SWIG_1(L);}  check_1: if (argc == 3) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; { { void *ptr;
        if (lua_isuserdata(L,argv[2])==0 || SWIG_ConvertPtr(L,argv[2], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_fma__SWIG_2(L);}  check_2: if (argc == 3) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; { { void *ptr;
        if (lua_isuserdata(L,argv[2])==0 || SWIG_ConvertPtr(L,argv[2], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_fma__SWIG_3(L);}  check_3: if (argc == 3) {
    return _wrap_fma__SWIG_0(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'fma'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::fma(float const &,float const &,float const &)\n"
  "    glm::fma(glm::vec2 const &,glm::vec2 const &,glm::vec2 const &)\n"
  "    glm::fma(glm::vec3 const &,glm::vec3 const &,glm::vec3 const &)\n"
  "    glm::fma(glm::vec4 const &,glm::vec4 const &,glm::vec4 const &)\n"); lua_error(L);return 0; }
static int _wrap_pow__SWIG_0(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float *arg2 = 0 ; float temp1 ; float temp2 ;
  float result; SWIG_check_num_args("glm::pow",2,2) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::pow",1,"float const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::pow",2,"float const &"); temp1=(float)lua_tonumber(L,1); arg1=&temp1;
  temp2=(float)lua_tonumber(L,2); arg2=&temp2; result = (float)glm::pow((float const &)*arg1,(float const &)*arg2);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_pow__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 *arg2 = 0 ; glm::vec2 result;
  SWIG_check_num_args("glm::pow",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::pow",1,"glm::vec2 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::pow",2,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("pow",1,SWIGTYPE_p_glm__vec2); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("pow",2,SWIGTYPE_p_glm__vec2); } 
  result = glm::pow((glm::vec2 const &)*arg1,(glm::vec2 const &)*arg2); {
    glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_pow__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 *arg2 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::pow",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::pow",1,"glm::vec3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::pow",2,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("pow",1,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("pow",2,SWIGTYPE_p_glm__vec3); } 
  result = glm::pow((glm::vec3 const &)*arg1,(glm::vec3 const &)*arg2); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_pow__SWIG_3(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 *arg2 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::pow",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::pow",1,"glm::vec4 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::pow",2,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("pow",1,SWIGTYPE_p_glm__vec4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("pow",2,SWIGTYPE_p_glm__vec4); } 
  result = glm::pow((glm::vec4 const &)*arg1,(glm::vec4 const &)*arg2); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_pow(lua_State* L) { int argc; int argv[3]={ 1,2,3} ; argc = lua_gettop(L); if (argc == 2) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_pow__SWIG_1(L);}  check_1: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_pow__SWIG_2(L);}  check_2: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_pow__SWIG_3(L);}  check_3: if (argc == 2) {
    return _wrap_pow__SWIG_0(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'pow'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::pow(float const &,float const &)\n"
  "    glm::pow(glm::vec2 const &,glm::vec2 const &)\n" "    glm::pow(glm::vec3 const &,glm::vec3 const &)\n"
  "    glm::pow(glm::vec4 const &,glm::vec4 const &)\n"); lua_error(L);return 0; }
static int _wrap_exp__SWIG_0(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float temp1 ; float result;
  SWIG_check_num_args("glm::exp",1,1) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::exp",1,"float const &");
  temp1=(float)lua_tonumber(L,1); arg1=&temp1; result = (float)glm::exp((float const &)*arg1);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_exp__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 result;
  SWIG_check_num_args("glm::exp",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::exp",1,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("exp",1,SWIGTYPE_p_glm__vec2); } 
  result = glm::exp((glm::vec2 const &)*arg1); { glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_exp__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::exp",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::exp",1,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("exp",1,SWIGTYPE_p_glm__vec3); } 
  result = glm::exp((glm::vec3 const &)*arg1); { glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_exp__SWIG_3(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::exp",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::exp",1,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("exp",1,SWIGTYPE_p_glm__vec4); } 
  result = glm::exp((glm::vec4 const &)*arg1); { glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_exp(lua_State* L) { int argc; int argv[2]={ 1,2} ; argc = lua_gettop(L); if (argc == 1) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_exp__SWIG_1(L);}  check_1: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_exp__SWIG_2(L);}  check_2: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_exp__SWIG_3(L);}  check_3: if (argc == 1) {
    return _wrap_exp__SWIG_0(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'exp'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::exp(float const &)\n" "    glm::exp(glm::vec2 const &)\n"
  "    glm::exp(glm::vec3 const &)\n" "    glm::exp(glm::vec4 const &)\n"); lua_error(L);return 0; }
static int _wrap_log__SWIG_0(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float temp1 ; float result;
  SWIG_check_num_args("glm::log",1,1) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::log",1,"float const &");
  temp1=(float)lua_tonumber(L,1); arg1=&temp1; result = (float)glm::log((float const &)*arg1);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_log__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 result;
  SWIG_check_num_args("glm::log",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::log",1,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("log",1,SWIGTYPE_p_glm__vec2); } 
  result = glm::log((glm::vec2 const &)*arg1); { glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_log__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::log",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::log",1,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("log",1,SWIGTYPE_p_glm__vec3); } 
  result = glm::log((glm::vec3 const &)*arg1); { glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_log__SWIG_3(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::log",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::log",1,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("log",1,SWIGTYPE_p_glm__vec4); } 
  result = glm::log((glm::vec4 const &)*arg1); { glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_log(lua_State* L) { int argc; int argv[2]={ 1,2} ; argc = lua_gettop(L); if (argc == 1) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_log__SWIG_1(L);}  check_1: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_log__SWIG_2(L);}  check_2: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_log__SWIG_3(L);}  check_3: if (argc == 1) {
    return _wrap_log__SWIG_0(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'log'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::log(float const &)\n" "    glm::log(glm::vec2 const &)\n"
  "    glm::log(glm::vec3 const &)\n" "    glm::log(glm::vec4 const &)\n"); lua_error(L);return 0; }
static int _wrap_exp2__SWIG_0(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float temp1 ; float result;
  SWIG_check_num_args("glm::exp2",1,1) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::exp2",1,"float const &");
  temp1=(float)lua_tonumber(L,1); arg1=&temp1; result = (float)glm::exp2((float const &)*arg1);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_exp2__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 result;
  SWIG_check_num_args("glm::exp2",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::exp2",1,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("exp2",1,SWIGTYPE_p_glm__vec2); } 
  result = glm::exp2((glm::vec2 const &)*arg1); { glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_exp2__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::exp2",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::exp2",1,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("exp2",1,SWIGTYPE_p_glm__vec3); } 
  result = glm::exp2((glm::vec3 const &)*arg1); { glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_exp2__SWIG_3(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::exp2",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::exp2",1,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("exp2",1,SWIGTYPE_p_glm__vec4); } 
  result = glm::exp2((glm::vec4 const &)*arg1); { glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_exp2(lua_State* L) { int argc; int argv[2]={ 1,2} ; argc = lua_gettop(L); if (argc == 1) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_exp2__SWIG_1(L);}  check_1: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_exp2__SWIG_2(L);}  check_2: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_exp2__SWIG_3(L);}  check_3: if (argc == 1) {
    return _wrap_exp2__SWIG_0(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'exp2'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::exp2(float const &)\n" "    glm::exp2(glm::vec2 const &)\n"
  "    glm::exp2(glm::vec3 const &)\n" "    glm::exp2(glm::vec4 const &)\n"); lua_error(L);return 0; }
static int _wrap_log2__SWIG_0(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float temp1 ; float result;
  SWIG_check_num_args("glm::log2",1,1) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::log2",1,"float const &");
  temp1=(float)lua_tonumber(L,1); arg1=&temp1; result = (float)glm::log2((float const &)*arg1);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_log2__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 result;
  SWIG_check_num_args("glm::log2",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::log2",1,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("log2",1,SWIGTYPE_p_glm__vec2); } 
  result = glm::log2((glm::vec2 const &)*arg1); { glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_log2__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::log2",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::log2",1,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("log2",1,SWIGTYPE_p_glm__vec3); } 
  result = glm::log2((glm::vec3 const &)*arg1); { glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_log2__SWIG_3(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::log2",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::log2",1,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("log2",1,SWIGTYPE_p_glm__vec4); } 
  result = glm::log2((glm::vec4 const &)*arg1); { glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_log2(lua_State* L) { int argc; int argv[2]={ 1,2} ; argc = lua_gettop(L); if (argc == 1) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_log2__SWIG_1(L);}  check_1: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_log2__SWIG_2(L);}  check_2: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_log2__SWIG_3(L);}  check_3: if (argc == 1) {
    return _wrap_log2__SWIG_0(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'log2'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::log2(float const &)\n" "    glm::log2(glm::vec2 const &)\n"
  "    glm::log2(glm::vec3 const &)\n" "    glm::log2(glm::vec4 const &)\n"); lua_error(L);return 0; }
static int _wrap_sqrt__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 result;
  SWIG_check_num_args("glm::sqrt",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::sqrt",1,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("sqrt",1,SWIGTYPE_p_glm__vec2); } 
  result = glm::sqrt((glm::vec2 const &)*arg1); { glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_sqrt__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::sqrt",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::sqrt",1,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("sqrt",1,SWIGTYPE_p_glm__vec3); } 
  result = glm::sqrt((glm::vec3 const &)*arg1); { glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_sqrt__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::sqrt",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::sqrt",1,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("sqrt",1,SWIGTYPE_p_glm__vec4); } 
  result = glm::sqrt((glm::vec4 const &)*arg1); { glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_sqrt(lua_State* L) { int argc; int argv[2]={ 1,2} ; argc = lua_gettop(L); if (argc == 1) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_sqrt__SWIG_0(L);}  check_1: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_sqrt__SWIG_1(L);}  check_2: if (argc == 1) {
    return _wrap_sqrt__SWIG_2(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'sqrt'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::sqrt(glm::vec2 const &)\n" "    glm::sqrt(glm::vec3 const &)\n"
  "    glm::sqrt(glm::vec4 const &)\n"); lua_error(L);return 0; }
static int _wrap_inversesqrt__SWIG_0(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float temp1 ; float result;
  SWIG_check_num_args("glm::inversesqrt",1,1) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::inversesqrt",1,"float const &");
  temp1=(float)lua_tonumber(L,1); arg1=&temp1; result = (float)glm::inversesqrt((float const &)*arg1);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_inversesqrt__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 result;
  SWIG_check_num_args("glm::inversesqrt",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::inversesqrt",1,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){
    SWIG_fail_ptr("inversesqrt",1,SWIGTYPE_p_glm__vec2); }  result = glm::inversesqrt((glm::vec2 const &)*arg1); {
    glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_inversesqrt__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::inversesqrt",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::inversesqrt",1,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("inversesqrt",1,SWIGTYPE_p_glm__vec3); }  result = glm::inversesqrt((glm::vec3 const &)*arg1); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_inversesqrt__SWIG_3(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::inversesqrt",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::inversesqrt",1,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){
    SWIG_fail_ptr("inversesqrt",1,SWIGTYPE_p_glm__vec4); }  result = glm::inversesqrt((glm::vec4 const &)*arg1); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_inversesqrt(lua_State* L) { int argc; int argv[2]={ 1,2} ; argc = lua_gettop(L); if (argc == 1) { int _v = 0; {
      { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_inversesqrt__SWIG_1(L);}  check_1:
  if (argc == 1) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_inversesqrt__SWIG_2(L);}  check_2:
  if (argc == 1) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_inversesqrt__SWIG_3(L);}  check_3:
  if (argc == 1) { return _wrap_inversesqrt__SWIG_0(L);} 
  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'inversesqrt'\n" "  Possible C/C++ prototypes are:\n"
  "    glm::inversesqrt(float const &)\n" "    glm::inversesqrt(glm::vec2 const &)\n"
  "    glm::inversesqrt(glm::vec3 const &)\n" "    glm::inversesqrt(glm::vec4 const &)\n"); lua_error(L);return 0; }
static int _wrap_length__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; float result;
  SWIG_check_num_args("glm::length",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::length",1,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("length",1,SWIGTYPE_p_glm__vec2); } 
  result = (float)glm::length((glm::vec2 const &)*arg1); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg;
  if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_length__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; float result;
  SWIG_check_num_args("glm::length",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::length",1,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("length",1,SWIGTYPE_p_glm__vec3); } 
  result = (float)glm::length((glm::vec3 const &)*arg1); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg;
  if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_length__SWIG_3(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; float result;
  SWIG_check_num_args("glm::length",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::length",1,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("length",1,SWIGTYPE_p_glm__vec4); } 
  result = (float)glm::length((glm::vec4 const &)*arg1); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg;
  if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_length(lua_State* L) { int argc; int argv[2]={ 1,2} ; argc = lua_gettop(L); if (argc == 1) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__quat, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_length__SWIG_0(L);}  check_1: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_length__SWIG_1(L);}  check_2: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_length__SWIG_2(L);}  check_3: if (argc == 1) {
    return _wrap_length__SWIG_3(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'length'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::length(glm::quat const &)\n" "    glm::length(glm::vec2 const &)\n"
  "    glm::length(glm::vec3 const &)\n" "    glm::length(glm::vec4 const &)\n"); lua_error(L);return 0; }
static int _wrap_distance__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 *arg2 = 0 ; float result;
  SWIG_check_num_args("glm::distance",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::distance",1,"glm::vec2 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::distance",2,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("distance",1,SWIGTYPE_p_glm__vec2); }
   if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec2,0))){
    SWIG_fail_ptr("distance",2,SWIGTYPE_p_glm__vec2); } 
  result = (float)glm::distance((glm::vec2 const &)*arg1,(glm::vec2 const &)*arg2);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_distance__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 *arg2 = 0 ; float result;
  SWIG_check_num_args("glm::distance",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::distance",1,"glm::vec3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::distance",2,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("distance",1,SWIGTYPE_p_glm__vec3); }
   if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("distance",2,SWIGTYPE_p_glm__vec3); } 
  result = (float)glm::distance((glm::vec3 const &)*arg1,(glm::vec3 const &)*arg2);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_distance__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 *arg2 = 0 ; float result;
  SWIG_check_num_args("glm::distance",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::distance",1,"glm::vec4 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::distance",2,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("distance",1,SWIGTYPE_p_glm__vec4); }
   if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec4,0))){
    SWIG_fail_ptr("distance",2,SWIGTYPE_p_glm__vec4); } 
  result = (float)glm::distance((glm::vec4 const &)*arg1,(glm::vec4 const &)*arg2);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_distance(lua_State* L) { int argc; int argv[3]={ 1,2,3} ; argc = lua_gettop(L); if (argc == 2) { int _v = 0; {
      { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_distance__SWIG_0(L);}  check_1: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_distance__SWIG_1(L);}  check_2: if (argc == 2) {
    return _wrap_distance__SWIG_2(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'distance'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::distance(glm::vec2 const &,glm::vec2 const &)\n"
  "    glm::distance(glm::vec3 const &,glm::vec3 const &)\n" "    glm::distance(glm::vec4 const &,glm::vec4 const &)\n");
  lua_error(L);return 0; }
static int _wrap_dot__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 *arg2 = 0 ; float result;
  SWIG_check_num_args("glm::dot",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::dot",1,"glm::vec2 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::dot",2,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("dot",1,SWIGTYPE_p_glm__vec2); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("dot",2,SWIGTYPE_p_glm__vec2); } 
  result = (float)glm::dot((glm::vec2 const &)*arg1,(glm::vec2 const &)*arg2);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_dot__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 *arg2 = 0 ; float result;
  SWIG_check_num_args("glm::dot",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::dot",1,"glm::vec3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::dot",2,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("dot",1,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("dot",2,SWIGTYPE_p_glm__vec3); } 
  result = (float)glm::dot((glm::vec3 const &)*arg1,(glm::vec3 const &)*arg2);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_dot__SWIG_3(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 *arg2 = 0 ; float result;
  SWIG_check_num_args("glm::dot",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::dot",1,"glm::vec4 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::dot",2,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("dot",1,SWIGTYPE_p_glm__vec4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("dot",2,SWIGTYPE_p_glm__vec4); } 
  result = (float)glm::dot((glm::vec4 const &)*arg1,(glm::vec4 const &)*arg2);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_dot(lua_State* L) { int argc; int argv[3]={ 1,2,3} ; argc = lua_gettop(L); if (argc == 2) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__quat, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__quat, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_dot__SWIG_0(L);}  check_1: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_dot__SWIG_1(L);}  check_2: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_dot__SWIG_2(L);}  check_3: if (argc == 2) {
    return _wrap_dot__SWIG_3(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'dot'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::dot(glm::quat const &,glm::quat const &)\n"
  "    glm::dot(glm::vec2 const &,glm::vec2 const &)\n" "    glm::dot(glm::vec3 const &,glm::vec3 const &)\n"
  "    glm::dot(glm::vec4 const &,glm::vec4 const &)\n"); lua_error(L);return 0; }
static int _wrap_cross(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 *arg2 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::cross",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::cross",1,"glm::vec3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::cross",2,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("cross",1,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("cross",2,SWIGTYPE_p_glm__vec3); } 
  result = glm::cross((glm::vec3 const &)*arg1,(glm::vec3 const &)*arg2); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_normalize__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 result;
  SWIG_check_num_args("glm::normalize",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::normalize",1,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){
    SWIG_fail_ptr("normalize",1,SWIGTYPE_p_glm__vec2); }  result = glm::normalize((glm::vec2 const &)*arg1); {
    glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_normalize__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::normalize",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::normalize",1,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("normalize",1,SWIGTYPE_p_glm__vec3); }  result = glm::normalize((glm::vec3 const &)*arg1); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_normalize__SWIG_3(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::normalize",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::normalize",1,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){
    SWIG_fail_ptr("normalize",1,SWIGTYPE_p_glm__vec4); }  result = glm::normalize((glm::vec4 const &)*arg1); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_normalize(lua_State* L) { int argc; int argv[2]={ 1,2} ; argc = lua_gettop(L); if (argc == 1) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__quat, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_normalize__SWIG_0(L);}  check_1:
  if (argc == 1) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_normalize__SWIG_1(L);}  check_2:
  if (argc == 1) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_normalize__SWIG_2(L);}  check_3:
  if (argc == 1) { return _wrap_normalize__SWIG_3(L);} 
  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'normalize'\n" "  Possible C/C++ prototypes are:\n"
  "    glm::normalize(glm::quat const &)\n" "    glm::normalize(glm::vec2 const &)\n" "    glm::normalize(glm::vec3 const &)\n"
  "    glm::normalize(glm::vec4 const &)\n"); lua_error(L);return 0; }
static int _wrap_faceforward__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 *arg2 = 0 ;
  glm::vec2 *arg3 = 0 ; glm::vec2 result; SWIG_check_num_args("glm::faceforward",3,3)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::faceforward",1,"glm::vec2 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::faceforward",2,"glm::vec2 const &");
  if(!lua_isuserdata(L,3)) SWIG_fail_arg("glm::faceforward",3,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){
    SWIG_fail_ptr("faceforward",1,SWIGTYPE_p_glm__vec2); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec2,0))){
    SWIG_fail_ptr("faceforward",2,SWIGTYPE_p_glm__vec2); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_glm__vec2,0))){
    SWIG_fail_ptr("faceforward",3,SWIGTYPE_p_glm__vec2); } 
  result = glm::faceforward((glm::vec2 const &)*arg1,(glm::vec2 const &)*arg2,(glm::vec2 const &)*arg3); {
    glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_faceforward__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 *arg2 = 0 ;
  glm::vec3 *arg3 = 0 ; glm::vec3 result; SWIG_check_num_args("glm::faceforward",3,3)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::faceforward",1,"glm::vec3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::faceforward",2,"glm::vec3 const &");
  if(!lua_isuserdata(L,3)) SWIG_fail_arg("glm::faceforward",3,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("faceforward",1,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("faceforward",2,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("faceforward",3,SWIGTYPE_p_glm__vec3); } 
  result = glm::faceforward((glm::vec3 const &)*arg1,(glm::vec3 const &)*arg2,(glm::vec3 const &)*arg3); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_faceforward__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 *arg2 = 0 ;
  glm::vec4 *arg3 = 0 ; glm::vec4 result; SWIG_check_num_args("glm::faceforward",3,3)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::faceforward",1,"glm::vec4 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::faceforward",2,"glm::vec4 const &");
  if(!lua_isuserdata(L,3)) SWIG_fail_arg("glm::faceforward",3,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){
    SWIG_fail_ptr("faceforward",1,SWIGTYPE_p_glm__vec4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec4,0))){
    SWIG_fail_ptr("faceforward",2,SWIGTYPE_p_glm__vec4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_glm__vec4,0))){
    SWIG_fail_ptr("faceforward",3,SWIGTYPE_p_glm__vec4); } 
  result = glm::faceforward((glm::vec4 const &)*arg1,(glm::vec4 const &)*arg2,(glm::vec4 const &)*arg3); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_faceforward(lua_State* L) { int argc; int argv[4]={ 1,2,3,4} ; argc = lua_gettop(L); if (argc == 3) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; { { void *ptr;
        if (lua_isuserdata(L,argv[2])==0 || SWIG_ConvertPtr(L,argv[2], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_faceforward__SWIG_0(L);}  check_1:
  if (argc == 3) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; { { void *ptr;
        if (lua_isuserdata(L,argv[2])==0 || SWIG_ConvertPtr(L,argv[2], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_faceforward__SWIG_1(L);}  check_2:
  if (argc == 3) { return _wrap_faceforward__SWIG_2(L);} 
  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'faceforward'\n" "  Possible C/C++ prototypes are:\n"
  "    glm::faceforward(glm::vec2 const &,glm::vec2 const &,glm::vec2 const &)\n"
  "    glm::faceforward(glm::vec3 const &,glm::vec3 const &,glm::vec3 const &)\n"
  "    glm::faceforward(glm::vec4 const &,glm::vec4 const &,glm::vec4 const &)\n"); lua_error(L);return 0; }
static int _wrap_reflect__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 *arg2 = 0 ; glm::vec2 result;
  SWIG_check_num_args("glm::reflect",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::reflect",1,"glm::vec2 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::reflect",2,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("reflect",1,SWIGTYPE_p_glm__vec2); }
   if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("reflect",2,SWIGTYPE_p_glm__vec2); }
   result = glm::reflect((glm::vec2 const &)*arg1,(glm::vec2 const &)*arg2); {
    glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_reflect__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 *arg2 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::reflect",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::reflect",1,"glm::vec3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::reflect",2,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("reflect",1,SWIGTYPE_p_glm__vec3); }
   if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("reflect",2,SWIGTYPE_p_glm__vec3); }
   result = glm::reflect((glm::vec3 const &)*arg1,(glm::vec3 const &)*arg2); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_reflect__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 *arg2 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::reflect",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::reflect",1,"glm::vec4 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::reflect",2,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("reflect",1,SWIGTYPE_p_glm__vec4); }
   if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("reflect",2,SWIGTYPE_p_glm__vec4); }
   result = glm::reflect((glm::vec4 const &)*arg1,(glm::vec4 const &)*arg2); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_reflect(lua_State* L) { int argc; int argv[3]={ 1,2,3} ; argc = lua_gettop(L); if (argc == 2) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_reflect__SWIG_0(L);}  check_1: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_reflect__SWIG_1(L);}  check_2: if (argc == 2) {
    return _wrap_reflect__SWIG_2(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'reflect'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::reflect(glm::vec2 const &,glm::vec2 const &)\n"
  "    glm::reflect(glm::vec3 const &,glm::vec3 const &)\n" "    glm::reflect(glm::vec4 const &,glm::vec4 const &)\n");
  lua_error(L);return 0; }
static int _wrap_refract__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 *arg2 = 0 ; float *arg3 = 0 ;
  float temp3 ; glm::vec2 result; SWIG_check_num_args("glm::refract",3,3)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::refract",1,"glm::vec2 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::refract",2,"glm::vec2 const &");
  if(!lua_isnumber(L,3)) SWIG_fail_arg("glm::refract",3,"float const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("refract",1,SWIGTYPE_p_glm__vec2); }
   if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("refract",2,SWIGTYPE_p_glm__vec2); }
   temp3=(float)lua_tonumber(L,3); arg3=&temp3;
  result = glm::refract((glm::vec2 const &)*arg1,(glm::vec2 const &)*arg2,(float const &)*arg3); {
    glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_refract__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 *arg2 = 0 ; float *arg3 = 0 ;
  float temp3 ; glm::vec3 result; SWIG_check_num_args("glm::refract",3,3)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::refract",1,"glm::vec3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::refract",2,"glm::vec3 const &");
  if(!lua_isnumber(L,3)) SWIG_fail_arg("glm::refract",3,"float const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("refract",1,SWIGTYPE_p_glm__vec3); }
   if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("refract",2,SWIGTYPE_p_glm__vec3); }
   temp3=(float)lua_tonumber(L,3); arg3=&temp3;
  result = glm::refract((glm::vec3 const &)*arg1,(glm::vec3 const &)*arg2,(float const &)*arg3); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_refract__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 *arg2 = 0 ; float *arg3 = 0 ;
  float temp3 ; glm::vec4 result; SWIG_check_num_args("glm::refract",3,3)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::refract",1,"glm::vec4 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::refract",2,"glm::vec4 const &");
  if(!lua_isnumber(L,3)) SWIG_fail_arg("glm::refract",3,"float const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("refract",1,SWIGTYPE_p_glm__vec4); }
   if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("refract",2,SWIGTYPE_p_glm__vec4); }
   temp3=(float)lua_tonumber(L,3); arg3=&temp3;
  result = glm::refract((glm::vec4 const &)*arg1,(glm::vec4 const &)*arg2,(float const &)*arg3); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_refract(lua_State* L) { int argc; int argv[4]={ 1,2,3,4} ; argc = lua_gettop(L); if (argc == 3) { int _v = 0; {
      { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_refract__SWIG_0(L);}  check_1: if (argc == 3) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_refract__SWIG_1(L);}  check_2: if (argc == 3) {
    return _wrap_refract__SWIG_2(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'refract'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::refract(glm::vec2 const &,glm::vec2 const &,float const &)\n"
  "    glm::refract(glm::vec3 const &,glm::vec3 const &,float const &)\n"
  "    glm::refract(glm::vec4 const &,glm::vec4 const &,float const &)\n"); lua_error(L);return 0; }
static int _wrap_matrixCompMult__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::mat3 *arg1 = 0 ; glm::mat3 *arg2 = 0 ;
  glm::mat3 result; SWIG_check_num_args("glm::matrixCompMult",2,2)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::matrixCompMult",1,"glm::mat3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::matrixCompMult",2,"glm::mat3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat3,0))){
    SWIG_fail_ptr("matrixCompMult",1,SWIGTYPE_p_glm__mat3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__mat3,0))){
    SWIG_fail_ptr("matrixCompMult",2,SWIGTYPE_p_glm__mat3); } 
  result = glm::matrixCompMult((glm::mat3 const &)*arg1,(glm::mat3 const &)*arg2); {
    glm::mat3 * resultptr = new glm::mat3((const glm::mat3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_matrixCompMult__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::mat4 *arg1 = 0 ; glm::mat4 *arg2 = 0 ;
  glm::mat4 result; SWIG_check_num_args("glm::matrixCompMult",2,2)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::matrixCompMult",1,"glm::mat4 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::matrixCompMult",2,"glm::mat4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat4,0))){
    SWIG_fail_ptr("matrixCompMult",1,SWIGTYPE_p_glm__mat4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__mat4,0))){
    SWIG_fail_ptr("matrixCompMult",2,SWIGTYPE_p_glm__mat4); } 
  result = glm::matrixCompMult((glm::mat4 const &)*arg1,(glm::mat4 const &)*arg2); {
    glm::mat4 * resultptr = new glm::mat4((const glm::mat4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_matrixCompMult(lua_State* L) { int argc; int argv[3]={ 1,2,3} ; argc = lua_gettop(L); if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__mat3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__mat3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_matrixCompMult__SWIG_0(L);}  check_1:
  if (argc == 2) { return _wrap_matrixCompMult__SWIG_1(L);} 
  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'matrixCompMult'\n" "  Possible C/C++ prototypes are:\n"
  "    glm::matrixCompMult(glm::mat3 const &,glm::mat3 const &)\n"
  "    glm::matrixCompMult(glm::mat4 const &,glm::mat4 const &)\n"); lua_error(L);return 0; }
static int _wrap_outerProduct__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 *arg2 = 0 ;
  glm::mat3 result; SWIG_check_num_args("glm::outerProduct",2,2)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::outerProduct",1,"glm::vec3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::outerProduct",2,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("outerProduct",1,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("outerProduct",2,SWIGTYPE_p_glm__vec3); } 
  result = glm::outerProduct((glm::vec3 const &)*arg1,(glm::vec3 const &)*arg2); {
    glm::mat3 * resultptr = new glm::mat3((const glm::mat3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_outerProduct__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 *arg2 = 0 ;
  glm::mat4 result; SWIG_check_num_args("glm::outerProduct",2,2)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::outerProduct",1,"glm::vec4 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::outerProduct",2,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){
    SWIG_fail_ptr("outerProduct",1,SWIGTYPE_p_glm__vec4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec4,0))){
    SWIG_fail_ptr("outerProduct",2,SWIGTYPE_p_glm__vec4); } 
  result = glm::outerProduct((glm::vec4 const &)*arg1,(glm::vec4 const &)*arg2); {
    glm::mat4 * resultptr = new glm::mat4((const glm::mat4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_outerProduct(lua_State* L) { int argc; int argv[3]={ 1,2,3} ; argc = lua_gettop(L); if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_outerProduct__SWIG_0(L);}  check_1:
  if (argc == 2) { return _wrap_outerProduct__SWIG_1(L);} 
  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'outerProduct'\n" "  Possible C/C++ prototypes are:\n"
  "    glm::outerProduct(glm::vec3 const &,glm::vec3 const &)\n"
  "    glm::outerProduct(glm::vec4 const &,glm::vec4 const &)\n"); lua_error(L);return 0; }
static int _wrap_transpose__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::mat3 *arg1 = 0 ; glm::mat3 result;
  SWIG_check_num_args("glm::transpose",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::transpose",1,"glm::mat3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat3,0))){
    SWIG_fail_ptr("transpose",1,SWIGTYPE_p_glm__mat3); }  result = glm::transpose((glm::mat3 const &)*arg1); {
    glm::mat3 * resultptr = new glm::mat3((const glm::mat3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_transpose__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::mat4 *arg1 = 0 ; glm::mat4 result;
  SWIG_check_num_args("glm::transpose",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::transpose",1,"glm::mat4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat4,0))){
    SWIG_fail_ptr("transpose",1,SWIGTYPE_p_glm__mat4); }  result = glm::transpose((glm::mat4 const &)*arg1); {
    glm::mat4 * resultptr = new glm::mat4((const glm::mat4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_transpose(lua_State* L) { int argc; int argv[2]={ 1,2} ; argc = lua_gettop(L); if (argc == 1) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__mat3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_transpose__SWIG_0(L);}  check_1:
  if (argc == 1) { return _wrap_transpose__SWIG_1(L);} 
  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'transpose'\n" "  Possible C/C++ prototypes are:\n"
  "    glm::transpose(glm::mat3 const &)\n" "    glm::transpose(glm::mat4 const &)\n"); lua_error(L);return 0; }
static int _wrap_determinant__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::mat3 *arg1 = 0 ; float result;
  SWIG_check_num_args("glm::determinant",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::determinant",1,"glm::mat3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat3,0))){
    SWIG_fail_ptr("determinant",1,SWIGTYPE_p_glm__mat3); }  result = (float)glm::determinant((glm::mat3 const &)*arg1);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_determinant__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::mat4 *arg1 = 0 ; float result;
  SWIG_check_num_args("glm::determinant",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::determinant",1,"glm::mat4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat4,0))){
    SWIG_fail_ptr("determinant",1,SWIGTYPE_p_glm__mat4); }  result = (float)glm::determinant((glm::mat4 const &)*arg1);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_determinant(lua_State* L) { int argc; int argv[2]={ 1,2} ; argc = lua_gettop(L); if (argc == 1) { int _v = 0; {
      { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__mat3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_determinant__SWIG_0(L);}  check_1:
  if (argc == 1) { return _wrap_determinant__SWIG_1(L);} 
  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'determinant'\n" "  Possible C/C++ prototypes are:\n"
  "    glm::determinant(glm::mat3 const &)\n" "    glm::determinant(glm::mat4 const &)\n"); lua_error(L);return 0; }
static int _wrap_inverse__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::mat3 *arg1 = 0 ; glm::mat3 result;
  SWIG_check_num_args("glm::inverse",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::inverse",1,"glm::mat3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat3,0))){ SWIG_fail_ptr("inverse",1,SWIGTYPE_p_glm__mat3); }
   result = glm::inverse((glm::mat3 const &)*arg1); { glm::mat3 * resultptr = new glm::mat3((const glm::mat3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_inverse__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::mat4 *arg1 = 0 ; glm::mat4 result;
  SWIG_check_num_args("glm::inverse",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::inverse",1,"glm::mat4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat4,0))){ SWIG_fail_ptr("inverse",1,SWIGTYPE_p_glm__mat4); }
   result = glm::inverse((glm::mat4 const &)*arg1); { glm::mat4 * resultptr = new glm::mat4((const glm::mat4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_inverse(lua_State* L) { int argc; int argv[2]={ 1,2} ; argc = lua_gettop(L); if (argc == 1) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__quat, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_inverse__SWIG_0(L);}  check_1: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__mat3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_inverse__SWIG_1(L);}  check_2: if (argc == 1) {
    return _wrap_inverse__SWIG_2(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'inverse'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::inverse(glm::quat const &)\n" "    glm::inverse(glm::mat3 const &)\n"
  "    glm::inverse(glm::mat4 const &)\n"); lua_error(L);return 0; }
static int _wrap_radians__SWIG_0(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float temp1 ; float result;
  SWIG_check_num_args("glm::radians",1,1) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::radians",1,"float const &");
  temp1=(float)lua_tonumber(L,1); arg1=&temp1; result = (float)glm::radians((float const &)*arg1);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_radians__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 result;
  SWIG_check_num_args("glm::radians",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::radians",1,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("radians",1,SWIGTYPE_p_glm__vec2); }
   result = glm::radians((glm::vec2 const &)*arg1); { glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_radians__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::radians",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::radians",1,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("radians",1,SWIGTYPE_p_glm__vec3); }
   result = glm::radians((glm::vec3 const &)*arg1); { glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_radians__SWIG_3(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::radians",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::radians",1,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("radians",1,SWIGTYPE_p_glm__vec4); }
   result = glm::radians((glm::vec4 const &)*arg1); { glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_radians(lua_State* L) { int argc; int argv[2]={ 1,2} ; argc = lua_gettop(L); if (argc == 1) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_radians__SWIG_1(L);}  check_1: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_radians__SWIG_2(L);}  check_2: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_radians__SWIG_3(L);}  check_3: if (argc == 1) {
    return _wrap_radians__SWIG_0(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'radians'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::radians(float const &)\n" "    glm::radians(glm::vec2 const &)\n"
  "    glm::radians(glm::vec3 const &)\n" "    glm::radians(glm::vec4 const &)\n"); lua_error(L);return 0; }
static int _wrap_degrees__SWIG_0(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float temp1 ; float result;
  SWIG_check_num_args("glm::degrees",1,1) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::degrees",1,"float const &");
  temp1=(float)lua_tonumber(L,1); arg1=&temp1; result = (float)glm::degrees((float const &)*arg1);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_degrees__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 result;
  SWIG_check_num_args("glm::degrees",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::degrees",1,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("degrees",1,SWIGTYPE_p_glm__vec2); }
   result = glm::degrees((glm::vec2 const &)*arg1); { glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_degrees__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::degrees",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::degrees",1,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("degrees",1,SWIGTYPE_p_glm__vec3); }
   result = glm::degrees((glm::vec3 const &)*arg1); { glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_degrees__SWIG_3(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::degrees",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::degrees",1,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("degrees",1,SWIGTYPE_p_glm__vec4); }
   result = glm::degrees((glm::vec4 const &)*arg1); { glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_degrees(lua_State* L) { int argc; int argv[2]={ 1,2} ; argc = lua_gettop(L); if (argc == 1) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_degrees__SWIG_1(L);}  check_1: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_degrees__SWIG_2(L);}  check_2: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_degrees__SWIG_3(L);}  check_3: if (argc == 1) {
    return _wrap_degrees__SWIG_0(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'degrees'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::degrees(float const &)\n" "    glm::degrees(glm::vec2 const &)\n"
  "    glm::degrees(glm::vec3 const &)\n" "    glm::degrees(glm::vec4 const &)\n"); lua_error(L);return 0; }
static int _wrap_sin__SWIG_0(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float temp1 ; float result;
  SWIG_check_num_args("glm::sin",1,1) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::sin",1,"float const &");
  temp1=(float)lua_tonumber(L,1); arg1=&temp1; result = (float)glm::sin((float const &)*arg1);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_sin__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 result;
  SWIG_check_num_args("glm::sin",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::sin",1,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("sin",1,SWIGTYPE_p_glm__vec2); } 
  result = glm::sin((glm::vec2 const &)*arg1); { glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_sin__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::sin",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::sin",1,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("sin",1,SWIGTYPE_p_glm__vec3); } 
  result = glm::sin((glm::vec3 const &)*arg1); { glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_sin__SWIG_3(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::sin",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::sin",1,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("sin",1,SWIGTYPE_p_glm__vec4); } 
  result = glm::sin((glm::vec4 const &)*arg1); { glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_sin(lua_State* L) { int argc; int argv[2]={ 1,2} ; argc = lua_gettop(L); if (argc == 1) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_sin__SWIG_1(L);}  check_1: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_sin__SWIG_2(L);}  check_2: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_sin__SWIG_3(L);}  check_3: if (argc == 1) {
    return _wrap_sin__SWIG_0(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'sin'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::sin(float const &)\n" "    glm::sin(glm::vec2 const &)\n"
  "    glm::sin(glm::vec3 const &)\n" "    glm::sin(glm::vec4 const &)\n"); lua_error(L);return 0; }
static int _wrap_cos__SWIG_0(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float temp1 ; float result;
  SWIG_check_num_args("glm::cos",1,1) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::cos",1,"float const &");
  temp1=(float)lua_tonumber(L,1); arg1=&temp1; result = (float)glm::cos((float const &)*arg1);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_cos__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 result;
  SWIG_check_num_args("glm::cos",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::cos",1,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("cos",1,SWIGTYPE_p_glm__vec2); } 
  result = glm::cos((glm::vec2 const &)*arg1); { glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_cos__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::cos",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::cos",1,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("cos",1,SWIGTYPE_p_glm__vec3); } 
  result = glm::cos((glm::vec3 const &)*arg1); { glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_cos__SWIG_3(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::cos",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::cos",1,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("cos",1,SWIGTYPE_p_glm__vec4); } 
  result = glm::cos((glm::vec4 const &)*arg1); { glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_cos(lua_State* L) { int argc; int argv[2]={ 1,2} ; argc = lua_gettop(L); if (argc == 1) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_cos__SWIG_1(L);}  check_1: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_cos__SWIG_2(L);}  check_2: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_cos__SWIG_3(L);}  check_3: if (argc == 1) {
    return _wrap_cos__SWIG_0(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'cos'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::cos(float const &)\n" "    glm::cos(glm::vec2 const &)\n"
  "    glm::cos(glm::vec3 const &)\n" "    glm::cos(glm::vec4 const &)\n"); lua_error(L);return 0; }
static int _wrap_tan__SWIG_0(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float temp1 ; float result;
  SWIG_check_num_args("glm::tan",1,1) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::tan",1,"float const &");
  temp1=(float)lua_tonumber(L,1); arg1=&temp1; result = (float)glm::tan((float const &)*arg1);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_tan__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 result;
  SWIG_check_num_args("glm::tan",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::tan",1,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("tan",1,SWIGTYPE_p_glm__vec2); } 
  result = glm::tan((glm::vec2 const &)*arg1); { glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_tan__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::tan",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::tan",1,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("tan",1,SWIGTYPE_p_glm__vec3); } 
  result = glm::tan((glm::vec3 const &)*arg1); { glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_tan__SWIG_3(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::tan",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::tan",1,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("tan",1,SWIGTYPE_p_glm__vec4); } 
  result = glm::tan((glm::vec4 const &)*arg1); { glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_tan(lua_State* L) { int argc; int argv[2]={ 1,2} ; argc = lua_gettop(L); if (argc == 1) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_tan__SWIG_1(L);}  check_1: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_tan__SWIG_2(L);}  check_2: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_tan__SWIG_3(L);}  check_3: if (argc == 1) {
    return _wrap_tan__SWIG_0(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'tan'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::tan(float const &)\n" "    glm::tan(glm::vec2 const &)\n"
  "    glm::tan(glm::vec3 const &)\n" "    glm::tan(glm::vec4 const &)\n"); lua_error(L);return 0; }
static int _wrap_asin__SWIG_0(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float temp1 ; float result;
  SWIG_check_num_args("glm::asin",1,1) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::asin",1,"float const &");
  temp1=(float)lua_tonumber(L,1); arg1=&temp1; result = (float)glm::asin((float const &)*arg1);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_asin__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 result;
  SWIG_check_num_args("glm::asin",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::asin",1,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("asin",1,SWIGTYPE_p_glm__vec2); } 
  result = glm::asin((glm::vec2 const &)*arg1); { glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_asin__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::asin",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::asin",1,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("asin",1,SWIGTYPE_p_glm__vec3); } 
  result = glm::asin((glm::vec3 const &)*arg1); { glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_asin__SWIG_3(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::asin",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::asin",1,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("asin",1,SWIGTYPE_p_glm__vec4); } 
  result = glm::asin((glm::vec4 const &)*arg1); { glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_asin(lua_State* L) { int argc; int argv[2]={ 1,2} ; argc = lua_gettop(L); if (argc == 1) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_asin__SWIG_1(L);}  check_1: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_asin__SWIG_2(L);}  check_2: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_asin__SWIG_3(L);}  check_3: if (argc == 1) {
    return _wrap_asin__SWIG_0(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'asin'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::asin(float const &)\n" "    glm::asin(glm::vec2 const &)\n"
  "    glm::asin(glm::vec3 const &)\n" "    glm::asin(glm::vec4 const &)\n"); lua_error(L);return 0; }
static int _wrap_acos__SWIG_0(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float temp1 ; float result;
  SWIG_check_num_args("glm::acos",1,1) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::acos",1,"float const &");
  temp1=(float)lua_tonumber(L,1); arg1=&temp1; result = (float)glm::acos((float const &)*arg1);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_acos__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 result;
  SWIG_check_num_args("glm::acos",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::acos",1,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("acos",1,SWIGTYPE_p_glm__vec2); } 
  result = glm::acos((glm::vec2 const &)*arg1); { glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_acos__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::acos",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::acos",1,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("acos",1,SWIGTYPE_p_glm__vec3); } 
  result = glm::acos((glm::vec3 const &)*arg1); { glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_acos__SWIG_3(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::acos",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::acos",1,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("acos",1,SWIGTYPE_p_glm__vec4); } 
  result = glm::acos((glm::vec4 const &)*arg1); { glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_acos(lua_State* L) { int argc; int argv[2]={ 1,2} ; argc = lua_gettop(L); if (argc == 1) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_acos__SWIG_1(L);}  check_1: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_acos__SWIG_2(L);}  check_2: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_acos__SWIG_3(L);}  check_3: if (argc == 1) {
    return _wrap_acos__SWIG_0(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'acos'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::acos(float const &)\n" "    glm::acos(glm::vec2 const &)\n"
  "    glm::acos(glm::vec3 const &)\n" "    glm::acos(glm::vec4 const &)\n"); lua_error(L);return 0; }
static int _wrap_atan__SWIG_0(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float *arg2 = 0 ; float temp1 ; float temp2 ;
  float result; SWIG_check_num_args("glm::atan",2,2) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::atan",1,"float const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::atan",2,"float const &"); temp1=(float)lua_tonumber(L,1); arg1=&temp1;
  temp2=(float)lua_tonumber(L,2); arg2=&temp2; result = (float)glm::atan((float const &)*arg1,(float const &)*arg2);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_atan__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 *arg2 = 0 ; glm::vec2 result;
  SWIG_check_num_args("glm::atan",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::atan",1,"glm::vec2 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::atan",2,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("atan",1,SWIGTYPE_p_glm__vec2); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("atan",2,SWIGTYPE_p_glm__vec2); } 
  result = glm::atan((glm::vec2 const &)*arg1,(glm::vec2 const &)*arg2); {
    glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_atan__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 *arg2 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::atan",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::atan",1,"glm::vec3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::atan",2,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("atan",1,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("atan",2,SWIGTYPE_p_glm__vec3); } 
  result = glm::atan((glm::vec3 const &)*arg1,(glm::vec3 const &)*arg2); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_atan__SWIG_3(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 *arg2 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::atan",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::atan",1,"glm::vec4 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::atan",2,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("atan",1,SWIGTYPE_p_glm__vec4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("atan",2,SWIGTYPE_p_glm__vec4); } 
  result = glm::atan((glm::vec4 const &)*arg1,(glm::vec4 const &)*arg2); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_atan__SWIG_4(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float temp1 ; float result;
  SWIG_check_num_args("glm::atan",1,1) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::atan",1,"float const &");
  temp1=(float)lua_tonumber(L,1); arg1=&temp1; result = (float)glm::atan((float const &)*arg1);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_atan__SWIG_5(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 result;
  SWIG_check_num_args("glm::atan",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::atan",1,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("atan",1,SWIGTYPE_p_glm__vec2); } 
  result = glm::atan((glm::vec2 const &)*arg1); { glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_atan__SWIG_6(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::atan",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::atan",1,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("atan",1,SWIGTYPE_p_glm__vec3); } 
  result = glm::atan((glm::vec3 const &)*arg1); { glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_atan__SWIG_7(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::atan",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::atan",1,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("atan",1,SWIGTYPE_p_glm__vec4); } 
  result = glm::atan((glm::vec4 const &)*arg1); { glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_atan(lua_State* L) { int argc; int argv[3]={ 1,2,3} ; argc = lua_gettop(L); if (argc == 1) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_atan__SWIG_5(L);}  check_1: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_atan__SWIG_6(L);}  check_2: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_atan__SWIG_7(L);}  check_3: if (argc == 1) {
    return _wrap_atan__SWIG_4(L);}  if (argc == 2) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_5; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_5; return _wrap_atan__SWIG_1(L);}  check_5: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_6; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_6; return _wrap_atan__SWIG_2(L);}  check_6: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_7; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_7; return _wrap_atan__SWIG_3(L);}  check_7: if (argc == 2) {
    return _wrap_atan__SWIG_0(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'atan'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::atan(float const &,float const &)\n"
  "    glm::atan(glm::vec2 const &,glm::vec2 const &)\n" "    glm::atan(glm::vec3 const &,glm::vec3 const &)\n"
  "    glm::atan(glm::vec4 const &,glm::vec4 const &)\n" "    glm::atan(float const &)\n" "    glm::atan(glm::vec2 const &)\n"
  "    glm::atan(glm::vec3 const &)\n" "    glm::atan(glm::vec4 const &)\n"); lua_error(L);return 0; }
static int _wrap_sinh__SWIG_0(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float temp1 ; float result;
  SWIG_check_num_args("glm::sinh",1,1) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::sinh",1,"float const &");
  temp1=(float)lua_tonumber(L,1); arg1=&temp1; result = (float)glm::sinh((float const &)*arg1);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_sinh__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 result;
  SWIG_check_num_args("glm::sinh",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::sinh",1,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("sinh",1,SWIGTYPE_p_glm__vec2); } 
  result = glm::sinh((glm::vec2 const &)*arg1); { glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_sinh__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::sinh",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::sinh",1,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("sinh",1,SWIGTYPE_p_glm__vec3); } 
  result = glm::sinh((glm::vec3 const &)*arg1); { glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_sinh__SWIG_3(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::sinh",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::sinh",1,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("sinh",1,SWIGTYPE_p_glm__vec4); } 
  result = glm::sinh((glm::vec4 const &)*arg1); { glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_sinh(lua_State* L) { int argc; int argv[2]={ 1,2} ; argc = lua_gettop(L); if (argc == 1) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_sinh__SWIG_1(L);}  check_1: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_sinh__SWIG_2(L);}  check_2: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_sinh__SWIG_3(L);}  check_3: if (argc == 1) {
    return _wrap_sinh__SWIG_0(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'sinh'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::sinh(float const &)\n" "    glm::sinh(glm::vec2 const &)\n"
  "    glm::sinh(glm::vec3 const &)\n" "    glm::sinh(glm::vec4 const &)\n"); lua_error(L);return 0; }
static int _wrap_cosh__SWIG_0(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float temp1 ; float result;
  SWIG_check_num_args("glm::cosh",1,1) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::cosh",1,"float const &");
  temp1=(float)lua_tonumber(L,1); arg1=&temp1; result = (float)glm::cosh((float const &)*arg1);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_cosh__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 result;
  SWIG_check_num_args("glm::cosh",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::cosh",1,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("cosh",1,SWIGTYPE_p_glm__vec2); } 
  result = glm::cosh((glm::vec2 const &)*arg1); { glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_cosh__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::cosh",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::cosh",1,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("cosh",1,SWIGTYPE_p_glm__vec3); } 
  result = glm::cosh((glm::vec3 const &)*arg1); { glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_cosh__SWIG_3(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::cosh",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::cosh",1,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("cosh",1,SWIGTYPE_p_glm__vec4); } 
  result = glm::cosh((glm::vec4 const &)*arg1); { glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_cosh(lua_State* L) { int argc; int argv[2]={ 1,2} ; argc = lua_gettop(L); if (argc == 1) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_cosh__SWIG_1(L);}  check_1: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_cosh__SWIG_2(L);}  check_2: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_cosh__SWIG_3(L);}  check_3: if (argc == 1) {
    return _wrap_cosh__SWIG_0(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'cosh'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::cosh(float const &)\n" "    glm::cosh(glm::vec2 const &)\n"
  "    glm::cosh(glm::vec3 const &)\n" "    glm::cosh(glm::vec4 const &)\n"); lua_error(L);return 0; }
static int _wrap_tanh__SWIG_0(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float temp1 ; float result;
  SWIG_check_num_args("glm::tanh",1,1) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::tanh",1,"float const &");
  temp1=(float)lua_tonumber(L,1); arg1=&temp1; result = (float)glm::tanh((float const &)*arg1);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_tanh__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 result;
  SWIG_check_num_args("glm::tanh",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::tanh",1,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("tanh",1,SWIGTYPE_p_glm__vec2); } 
  result = glm::tanh((glm::vec2 const &)*arg1); { glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_tanh__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::tanh",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::tanh",1,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("tanh",1,SWIGTYPE_p_glm__vec3); } 
  result = glm::tanh((glm::vec3 const &)*arg1); { glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_tanh__SWIG_3(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::tanh",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::tanh",1,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("tanh",1,SWIGTYPE_p_glm__vec4); } 
  result = glm::tanh((glm::vec4 const &)*arg1); { glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_tanh(lua_State* L) { int argc; int argv[2]={ 1,2} ; argc = lua_gettop(L); if (argc == 1) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_tanh__SWIG_1(L);}  check_1: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_tanh__SWIG_2(L);}  check_2: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_tanh__SWIG_3(L);}  check_3: if (argc == 1) {
    return _wrap_tanh__SWIG_0(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'tanh'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::tanh(float const &)\n" "    glm::tanh(glm::vec2 const &)\n"
  "    glm::tanh(glm::vec3 const &)\n" "    glm::tanh(glm::vec4 const &)\n"); lua_error(L);return 0; }
static int _wrap_asinh__SWIG_0(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float temp1 ; float result;
  SWIG_check_num_args("glm::asinh",1,1) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::asinh",1,"float const &");
  temp1=(float)lua_tonumber(L,1); arg1=&temp1; result = (float)glm::asinh((float const &)*arg1);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_asinh__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 result;
  SWIG_check_num_args("glm::asinh",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::asinh",1,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("asinh",1,SWIGTYPE_p_glm__vec2); } 
  result = glm::asinh((glm::vec2 const &)*arg1); { glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_asinh__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::asinh",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::asinh",1,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("asinh",1,SWIGTYPE_p_glm__vec3); } 
  result = glm::asinh((glm::vec3 const &)*arg1); { glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_asinh__SWIG_3(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::asinh",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::asinh",1,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("asinh",1,SWIGTYPE_p_glm__vec4); } 
  result = glm::asinh((glm::vec4 const &)*arg1); { glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_asinh(lua_State* L) { int argc; int argv[2]={ 1,2} ; argc = lua_gettop(L); if (argc == 1) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_asinh__SWIG_1(L);}  check_1: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_asinh__SWIG_2(L);}  check_2: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_asinh__SWIG_3(L);}  check_3: if (argc == 1) {
    return _wrap_asinh__SWIG_0(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'asinh'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::asinh(float const &)\n" "    glm::asinh(glm::vec2 const &)\n"
  "    glm::asinh(glm::vec3 const &)\n" "    glm::asinh(glm::vec4 const &)\n"); lua_error(L);return 0; }
static int _wrap_acosh__SWIG_0(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float temp1 ; float result;
  SWIG_check_num_args("glm::acosh",1,1) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::acosh",1,"float const &");
  temp1=(float)lua_tonumber(L,1); arg1=&temp1; result = (float)glm::acosh((float const &)*arg1);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_acosh__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 result;
  SWIG_check_num_args("glm::acosh",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::acosh",1,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("acosh",1,SWIGTYPE_p_glm__vec2); } 
  result = glm::acosh((glm::vec2 const &)*arg1); { glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_acosh__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::acosh",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::acosh",1,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("acosh",1,SWIGTYPE_p_glm__vec3); } 
  result = glm::acosh((glm::vec3 const &)*arg1); { glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_acosh__SWIG_3(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::acosh",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::acosh",1,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("acosh",1,SWIGTYPE_p_glm__vec4); } 
  result = glm::acosh((glm::vec4 const &)*arg1); { glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_acosh(lua_State* L) { int argc; int argv[2]={ 1,2} ; argc = lua_gettop(L); if (argc == 1) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_acosh__SWIG_1(L);}  check_1: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_acosh__SWIG_2(L);}  check_2: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_acosh__SWIG_3(L);}  check_3: if (argc == 1) {
    return _wrap_acosh__SWIG_0(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'acosh'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::acosh(float const &)\n" "    glm::acosh(glm::vec2 const &)\n"
  "    glm::acosh(glm::vec3 const &)\n" "    glm::acosh(glm::vec4 const &)\n"); lua_error(L);return 0; }
static int _wrap_atanh__SWIG_0(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float temp1 ; float result;
  SWIG_check_num_args("glm::atanh",1,1) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::atanh",1,"float const &");
  temp1=(float)lua_tonumber(L,1); arg1=&temp1; result = (float)glm::atanh((float const &)*arg1);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_atanh__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 result;
  SWIG_check_num_args("glm::atanh",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::atanh",1,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("atanh",1,SWIGTYPE_p_glm__vec2); } 
  result = glm::atanh((glm::vec2 const &)*arg1); { glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_atanh__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::atanh",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::atanh",1,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("atanh",1,SWIGTYPE_p_glm__vec3); } 
  result = glm::atanh((glm::vec3 const &)*arg1); { glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_atanh__SWIG_3(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::atanh",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::atanh",1,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("atanh",1,SWIGTYPE_p_glm__vec4); } 
  result = glm::atanh((glm::vec4 const &)*arg1); { glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_atanh(lua_State* L) { int argc; int argv[2]={ 1,2} ; argc = lua_gettop(L); if (argc == 1) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_atanh__SWIG_1(L);}  check_1: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_atanh__SWIG_2(L);}  check_2: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_atanh__SWIG_3(L);}  check_3: if (argc == 1) {
    return _wrap_atanh__SWIG_0(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'atanh'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::atanh(float const &)\n" "    glm::atanh(glm::vec2 const &)\n"
  "    glm::atanh(glm::vec3 const &)\n" "    glm::atanh(glm::vec4 const &)\n"); lua_error(L);return 0; }
static int _wrap_epsilonEqual__SWIG_0(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float *arg2 = 0 ; float *arg3 = 0 ;
  float temp1 ; float temp2 ; float temp3 ; bool result; SWIG_check_num_args("glm::epsilonEqual",3,3)
  if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::epsilonEqual",1,"float const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::epsilonEqual",2,"float const &");
  if(!lua_isnumber(L,3)) SWIG_fail_arg("glm::epsilonEqual",3,"float const &"); temp1=(float)lua_tonumber(L,1); arg1=&temp1;
  temp2=(float)lua_tonumber(L,2); arg2=&temp2; temp3=(float)lua_tonumber(L,3); arg3=&temp3;
  result = (bool)glm::epsilonEqual((float const &)*arg1,(float const &)*arg2,(float const &)*arg3);
  lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_epsilonEqual__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 *arg2 = 0 ;
  float *arg3 = 0 ; float temp3 ; glm::vec2 result; SWIG_check_num_args("glm::epsilonEqual",3,3)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::epsilonEqual",1,"glm::vec2 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::epsilonEqual",2,"glm::vec2 const &");
  if(!lua_isnumber(L,3)) SWIG_fail_arg("glm::epsilonEqual",3,"float const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){
    SWIG_fail_ptr("epsilonEqual",1,SWIGTYPE_p_glm__vec2); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec2,0))){
    SWIG_fail_ptr("epsilonEqual",2,SWIGTYPE_p_glm__vec2); }  temp3=(float)lua_tonumber(L,3); arg3=&temp3;
  result = glm::epsilonEqual((glm::vec2 const &)*arg1,(glm::vec2 const &)*arg2,(float const &)*arg3); {
    glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_epsilonEqual__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 *arg2 = 0 ;
  float *arg3 = 0 ; float temp3 ; glm::vec3 result; SWIG_check_num_args("glm::epsilonEqual",3,3)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::epsilonEqual",1,"glm::vec3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::epsilonEqual",2,"glm::vec3 const &");
  if(!lua_isnumber(L,3)) SWIG_fail_arg("glm::epsilonEqual",3,"float const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("epsilonEqual",1,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("epsilonEqual",2,SWIGTYPE_p_glm__vec3); }  temp3=(float)lua_tonumber(L,3); arg3=&temp3;
  result = glm::epsilonEqual((glm::vec3 const &)*arg1,(glm::vec3 const &)*arg2,(float const &)*arg3); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_epsilonEqual(lua_State* L) { int argc; int argv[4]={ 1,2,3,4} ; argc = lua_gettop(L); if (argc == 3) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_epsilonEqual__SWIG_1(L);}  check_1:
  if (argc == 3) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_epsilonEqual__SWIG_2(L);}  check_2:
  if (argc == 3) { return _wrap_epsilonEqual__SWIG_0(L);} 
  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'epsilonEqual'\n" "  Possible C/C++ prototypes are:\n"
  "    glm::epsilonEqual(float const &,float const &,float const &)\n"
  "    glm::epsilonEqual(glm::vec2 const &,glm::vec2 const &,float const &)\n"
  "    glm::epsilonEqual(glm::vec3 const &,glm::vec3 const &,float const &)\n"); lua_error(L);return 0; }
static int _wrap_epsilonNotEqual__SWIG_0(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float *arg2 = 0 ; float *arg3 = 0 ;
  float temp1 ; float temp2 ; float temp3 ; bool result; SWIG_check_num_args("glm::epsilonNotEqual",3,3)
  if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::epsilonNotEqual",1,"float const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::epsilonNotEqual",2,"float const &");
  if(!lua_isnumber(L,3)) SWIG_fail_arg("glm::epsilonNotEqual",3,"float const &"); temp1=(float)lua_tonumber(L,1); arg1=&temp1;
  temp2=(float)lua_tonumber(L,2); arg2=&temp2; temp3=(float)lua_tonumber(L,3); arg3=&temp3;
  result = (bool)glm::epsilonNotEqual((float const &)*arg1,(float const &)*arg2,(float const &)*arg3);
  lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_epsilonNotEqual__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 *arg2 = 0 ;
  float *arg3 = 0 ; float temp3 ; glm::vec2 result; SWIG_check_num_args("glm::epsilonNotEqual",3,3)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::epsilonNotEqual",1,"glm::vec2 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::epsilonNotEqual",2,"glm::vec2 const &");
  if(!lua_isnumber(L,3)) SWIG_fail_arg("glm::epsilonNotEqual",3,"float const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){
    SWIG_fail_ptr("epsilonNotEqual",1,SWIGTYPE_p_glm__vec2); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec2,0))){
    SWIG_fail_ptr("epsilonNotEqual",2,SWIGTYPE_p_glm__vec2); }  temp3=(float)lua_tonumber(L,3); arg3=&temp3;
  result = glm::epsilonNotEqual((glm::vec2 const &)*arg1,(glm::vec2 const &)*arg2,(float const &)*arg3); {
    glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_epsilonNotEqual__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 *arg2 = 0 ;
  float *arg3 = 0 ; float temp3 ; glm::vec3 result; SWIG_check_num_args("glm::epsilonNotEqual",3,3)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::epsilonNotEqual",1,"glm::vec3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::epsilonNotEqual",2,"glm::vec3 const &");
  if(!lua_isnumber(L,3)) SWIG_fail_arg("glm::epsilonNotEqual",3,"float const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("epsilonNotEqual",1,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("epsilonNotEqual",2,SWIGTYPE_p_glm__vec3); }  temp3=(float)lua_tonumber(L,3); arg3=&temp3;
  result = glm::epsilonNotEqual((glm::vec3 const &)*arg1,(glm::vec3 const &)*arg2,(float const &)*arg3); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_epsilonNotEqual(lua_State* L) { int argc; int argv[4]={ 1,2,3,4} ; argc = lua_gettop(L); if (argc == 3) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_epsilonNotEqual__SWIG_1(L);}  check_1:
  if (argc == 3) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_epsilonNotEqual__SWIG_2(L);}  check_2:
  if (argc == 3) { return _wrap_epsilonNotEqual__SWIG_0(L);} 
  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'epsilonNotEqual'\n" "  Possible C/C++ prototypes are:\n"
  "    glm::epsilonNotEqual(float const &,float const &,float const &)\n"
  "    glm::epsilonNotEqual(glm::vec2 const &,glm::vec2 const &,float const &)\n"
  "    glm::epsilonNotEqual(glm::vec3 const &,glm::vec3 const &,float const &)\n"); lua_error(L);return 0; }
static int _wrap_row__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::mat3 *arg1 = 0 ; glm::length_t *arg2 = 0 ;
  glm::length_t temp2 ; glm::vec3 result; SWIG_check_num_args("glm::row",2,2)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::row",1,"glm::mat3 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::row",2,"glm::length_t const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat3,0))){ SWIG_fail_ptr("row",1,SWIGTYPE_p_glm__mat3); } 
  temp2=(glm::length_t)lua_tonumber(L,2); arg2=&temp2; result = glm::row((glm::mat3 const &)*arg1,(int const &)*arg2); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_row__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::mat4 *arg1 = 0 ; glm::length_t *arg2 = 0 ;
  glm::length_t temp2 ; glm::vec4 result; SWIG_check_num_args("glm::row",2,2)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::row",1,"glm::mat4 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::row",2,"glm::length_t const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat4,0))){ SWIG_fail_ptr("row",1,SWIGTYPE_p_glm__mat4); } 
  temp2=(glm::length_t)lua_tonumber(L,2); arg2=&temp2; result = glm::row((glm::mat4 const &)*arg1,(int const &)*arg2); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_row__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::mat3 *arg1 = 0 ; glm::length_t *arg2 = 0 ;
  glm::vec3 *arg3 = 0 ; glm::length_t temp2 ; glm::mat3 result; SWIG_check_num_args("glm::row",3,3)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::row",1,"glm::mat3 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::row",2,"glm::length_t const &");
  if(!lua_isuserdata(L,3)) SWIG_fail_arg("glm::row",3,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat3,0))){ SWIG_fail_ptr("row",1,SWIGTYPE_p_glm__mat3); } 
  temp2=(glm::length_t)lua_tonumber(L,2); arg2=&temp2;
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("row",3,SWIGTYPE_p_glm__vec3); } 
  result = glm::row((glm::mat3 const &)*arg1,(int const &)*arg2,(glm::vec3 const &)*arg3); {
    glm::mat3 * resultptr = new glm::mat3((const glm::mat3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_row__SWIG_3(lua_State* L) { int SWIG_arg = 0; glm::mat4 *arg1 = 0 ; glm::length_t *arg2 = 0 ;
  glm::vec4 *arg3 = 0 ; glm::length_t temp2 ; glm::mat4 result; SWIG_check_num_args("glm::row",3,3)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::row",1,"glm::mat4 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::row",2,"glm::length_t const &");
  if(!lua_isuserdata(L,3)) SWIG_fail_arg("glm::row",3,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat4,0))){ SWIG_fail_ptr("row",1,SWIGTYPE_p_glm__mat4); } 
  temp2=(glm::length_t)lua_tonumber(L,2); arg2=&temp2;
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("row",3,SWIGTYPE_p_glm__vec4); } 
  result = glm::row((glm::mat4 const &)*arg1,(int const &)*arg2,(glm::vec4 const &)*arg3); {
    glm::mat4 * resultptr = new glm::mat4((const glm::mat4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_row(lua_State* L) { int argc; int argv[4]={ 1,2,3,4} ; argc = lua_gettop(L); if (argc == 2) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__mat3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_row__SWIG_0(L);}  check_1: if (argc == 2) {
    return _wrap_row__SWIG_1(L);}  if (argc == 3) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__mat3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; { { void *ptr;
        if (lua_isuserdata(L,argv[2])==0 || SWIG_ConvertPtr(L,argv[2], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_row__SWIG_2(L);}  check_3: if (argc == 3) {
    return _wrap_row__SWIG_3(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'row'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::row(glm::mat3 const &,glm::length_t const &)\n"
  "    glm::row(glm::mat4 const &,glm::length_t const &)\n"
  "    glm::row(glm::mat3 const &,glm::length_t const &,glm::vec3 const &)\n"
  "    glm::row(glm::mat4 const &,glm::length_t const &,glm::vec4 const &)\n"); lua_error(L);return 0; }
static int _wrap_column__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::mat3 *arg1 = 0 ; glm::length_t *arg2 = 0 ;
  glm::length_t temp2 ; glm::vec3 result; SWIG_check_num_args("glm::column",2,2)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::column",1,"glm::mat3 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::column",2,"glm::length_t const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat3,0))){ SWIG_fail_ptr("column",1,SWIGTYPE_p_glm__mat3); } 
  temp2=(glm::length_t)lua_tonumber(L,2); arg2=&temp2; result = glm::column((glm::mat3 const &)*arg1,(int const &)*arg2); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_column__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::mat4 *arg1 = 0 ; glm::length_t *arg2 = 0 ;
  glm::length_t temp2 ; glm::vec4 result; SWIG_check_num_args("glm::column",2,2)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::column",1,"glm::mat4 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::column",2,"glm::length_t const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat4,0))){ SWIG_fail_ptr("column",1,SWIGTYPE_p_glm__mat4); } 
  temp2=(glm::length_t)lua_tonumber(L,2); arg2=&temp2; result = glm::column((glm::mat4 const &)*arg1,(int const &)*arg2); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_column__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::mat3 *arg1 = 0 ; glm::length_t *arg2 = 0 ;
  glm::vec3 *arg3 = 0 ; glm::length_t temp2 ; glm::mat3 result; SWIG_check_num_args("glm::column",3,3)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::column",1,"glm::mat3 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::column",2,"glm::length_t const &");
  if(!lua_isuserdata(L,3)) SWIG_fail_arg("glm::column",3,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat3,0))){ SWIG_fail_ptr("column",1,SWIGTYPE_p_glm__mat3); } 
  temp2=(glm::length_t)lua_tonumber(L,2); arg2=&temp2;
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("column",3,SWIGTYPE_p_glm__vec3); } 
  result = glm::column((glm::mat3 const &)*arg1,(int const &)*arg2,(glm::vec3 const &)*arg3); {
    glm::mat3 * resultptr = new glm::mat3((const glm::mat3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_column__SWIG_3(lua_State* L) { int SWIG_arg = 0; glm::mat4 *arg1 = 0 ; glm::length_t *arg2 = 0 ;
  glm::vec4 *arg3 = 0 ; glm::length_t temp2 ; glm::mat4 result; SWIG_check_num_args("glm::column",3,3)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::column",1,"glm::mat4 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::column",2,"glm::length_t const &");
  if(!lua_isuserdata(L,3)) SWIG_fail_arg("glm::column",3,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat4,0))){ SWIG_fail_ptr("column",1,SWIGTYPE_p_glm__mat4); } 
  temp2=(glm::length_t)lua_tonumber(L,2); arg2=&temp2;
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("column",3,SWIGTYPE_p_glm__vec4); } 
  result = glm::column((glm::mat4 const &)*arg1,(int const &)*arg2,(glm::vec4 const &)*arg3); {
    glm::mat4 * resultptr = new glm::mat4((const glm::mat4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_column(lua_State* L) { int argc; int argv[4]={ 1,2,3,4} ; argc = lua_gettop(L); if (argc == 2) { int _v = 0; {
      { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__mat3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_column__SWIG_0(L);}  check_1: if (argc == 2) {
    return _wrap_column__SWIG_1(L);}  if (argc == 3) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__mat3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; { { void *ptr;
        if (lua_isuserdata(L,argv[2])==0 || SWIG_ConvertPtr(L,argv[2], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_column__SWIG_2(L);}  check_3: if (argc == 3) {
    return _wrap_column__SWIG_3(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'column'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::column(glm::mat3 const &,glm::length_t const &)\n"
  "    glm::column(glm::mat4 const &,glm::length_t const &)\n"
  "    glm::column(glm::mat3 const &,glm::length_t const &,glm::vec3 const &)\n"
  "    glm::column(glm::mat4 const &,glm::length_t const &,glm::vec4 const &)\n"); lua_error(L);return 0; }
static int _wrap_affineInverse__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::mat3 *arg1 = 0 ; glm::mat3 result;
  SWIG_check_num_args("glm::affineInverse",1,1)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::affineInverse",1,"glm::mat3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat3,0))){
    SWIG_fail_ptr("affineInverse",1,SWIGTYPE_p_glm__mat3); }  result = glm::affineInverse((glm::mat3 const &)*arg1); {
    glm::mat3 * resultptr = new glm::mat3((const glm::mat3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_affineInverse__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::mat4 *arg1 = 0 ; glm::mat4 result;
  SWIG_check_num_args("glm::affineInverse",1,1)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::affineInverse",1,"glm::mat4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat4,0))){
    SWIG_fail_ptr("affineInverse",1,SWIGTYPE_p_glm__mat4); }  result = glm::affineInverse((glm::mat4 const &)*arg1); {
    glm::mat4 * resultptr = new glm::mat4((const glm::mat4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_affineInverse(lua_State* L) { int argc; int argv[2]={ 1,2} ; argc = lua_gettop(L); if (argc == 1) { int _v = 0;
    { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__mat3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_affineInverse__SWIG_0(L);}  check_1:
  if (argc == 1) { return _wrap_affineInverse__SWIG_1(L);} 
  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'affineInverse'\n" "  Possible C/C++ prototypes are:\n"
  "    glm::affineInverse(glm::mat3 const &)\n" "    glm::affineInverse(glm::mat4 const &)\n"); lua_error(L);return 0; }
static int _wrap_inverseTranspose__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::mat3 *arg1 = 0 ; glm::mat3 result;
  SWIG_check_num_args("glm::inverseTranspose",1,1)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::inverseTranspose",1,"glm::mat3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat3,0))){
    SWIG_fail_ptr("inverseTranspose",1,SWIGTYPE_p_glm__mat3); }  result = glm::inverseTranspose((glm::mat3 const &)*arg1); {
    glm::mat3 * resultptr = new glm::mat3((const glm::mat3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_inverseTranspose__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::mat4 *arg1 = 0 ; glm::mat4 result;
  SWIG_check_num_args("glm::inverseTranspose",1,1)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::inverseTranspose",1,"glm::mat4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat4,0))){
    SWIG_fail_ptr("inverseTranspose",1,SWIGTYPE_p_glm__mat4); }  result = glm::inverseTranspose((glm::mat4 const &)*arg1); {
    glm::mat4 * resultptr = new glm::mat4((const glm::mat4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_inverseTranspose(lua_State* L) { int argc; int argv[2]={ 1,2} ; argc = lua_gettop(L); if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__mat3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_inverseTranspose__SWIG_0(L);}  check_1:
  if (argc == 1) { return _wrap_inverseTranspose__SWIG_1(L);} 
  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'inverseTranspose'\n" "  Possible C/C++ prototypes are:\n"
  "    glm::inverseTranspose(glm::mat3 const &)\n" "    glm::inverseTranspose(glm::mat4 const &)\n"); lua_error(L);return 0; }
static int _wrap_translate__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::mat4 *arg1 = 0 ; glm::vec3 *arg2 = 0 ;
  glm::mat4 result; SWIG_check_num_args("glm::translate",2,2)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::translate",1,"glm::mat4 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::translate",2,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat4,0))){
    SWIG_fail_ptr("translate",1,SWIGTYPE_p_glm__mat4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("translate",2,SWIGTYPE_p_glm__vec3); } 
  result = glm::translate((glm::mat4 const &)*arg1,(glm::vec3 const &)*arg2); {
    glm::mat4 * resultptr = new glm::mat4((const glm::mat4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_rotate__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::mat4 *arg1 = 0 ; float *arg2 = 0 ; glm::vec3 *arg3 = 0 ;
  float temp2 ; glm::mat4 result; SWIG_check_num_args("glm::rotate",3,3)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::rotate",1,"glm::mat4 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::rotate",2,"float const &");
  if(!lua_isuserdata(L,3)) SWIG_fail_arg("glm::rotate",3,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat4,0))){ SWIG_fail_ptr("rotate",1,SWIGTYPE_p_glm__mat4); } 
  temp2=(float)lua_tonumber(L,2); arg2=&temp2; if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("rotate",3,SWIGTYPE_p_glm__vec3); } 
  result = glm::rotate((glm::mat4 const &)*arg1,(float const &)*arg2,(glm::vec3 const &)*arg3); {
    glm::mat4 * resultptr = new glm::mat4((const glm::mat4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_scale__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::mat4 *arg1 = 0 ; glm::vec3 *arg2 = 0 ; glm::mat4 result;
  SWIG_check_num_args("glm::scale",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::scale",1,"glm::mat4 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::scale",2,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__mat4,0))){ SWIG_fail_ptr("scale",1,SWIGTYPE_p_glm__mat4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("scale",2,SWIGTYPE_p_glm__vec3); } 
  result = glm::scale((glm::mat4 const &)*arg1,(glm::vec3 const &)*arg2); {
    glm::mat4 * resultptr = new glm::mat4((const glm::mat4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_lookAt(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 *arg2 = 0 ; glm::vec3 *arg3 = 0 ;
  glm::mat4 result; SWIG_check_num_args("glm::lookAt",3,3)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::lookAt",1,"glm::vec3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::lookAt",2,"glm::vec3 const &");
  if(!lua_isuserdata(L,3)) SWIG_fail_arg("glm::lookAt",3,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("lookAt",1,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("lookAt",2,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("lookAt",3,SWIGTYPE_p_glm__vec3); } 
  result = glm::lookAt((glm::vec3 const &)*arg1,(glm::vec3 const &)*arg2,(glm::vec3 const &)*arg3); {
    glm::mat4 * resultptr = new glm::mat4((const glm::mat4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_ortho__SWIG_0(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float *arg2 = 0 ; float *arg3 = 0 ;
  float *arg4 = 0 ; float temp1 ; float temp2 ; float temp3 ; float temp4 ; glm::mat4 result;
  SWIG_check_num_args("glm::ortho",4,4) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::ortho",1,"float const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::ortho",2,"float const &");
  if(!lua_isnumber(L,3)) SWIG_fail_arg("glm::ortho",3,"float const &");
  if(!lua_isnumber(L,4)) SWIG_fail_arg("glm::ortho",4,"float const &"); temp1=(float)lua_tonumber(L,1); arg1=&temp1;
  temp2=(float)lua_tonumber(L,2); arg2=&temp2; temp3=(float)lua_tonumber(L,3); arg3=&temp3;
  temp4=(float)lua_tonumber(L,4); arg4=&temp4;
  result = glm::ortho((float const &)*arg1,(float const &)*arg2,(float const &)*arg3,(float const &)*arg4); {
    glm::mat4 * resultptr = new glm::mat4((const glm::mat4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_ortho__SWIG_1(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float *arg2 = 0 ; float *arg3 = 0 ;
  float *arg4 = 0 ; float *arg5 = 0 ; float *arg6 = 0 ; float temp1 ; float temp2 ; float temp3 ; float temp4 ; float temp5 ;
  float temp6 ; glm::mat4 result; SWIG_check_num_args("glm::ortho",6,6)
  if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::ortho",1,"float const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::ortho",2,"float const &");
  if(!lua_isnumber(L,3)) SWIG_fail_arg("glm::ortho",3,"float const &");
  if(!lua_isnumber(L,4)) SWIG_fail_arg("glm::ortho",4,"float const &");
  if(!lua_isnumber(L,5)) SWIG_fail_arg("glm::ortho",5,"float const &");
  if(!lua_isnumber(L,6)) SWIG_fail_arg("glm::ortho",6,"float const &"); temp1=(float)lua_tonumber(L,1); arg1=&temp1;
  temp2=(float)lua_tonumber(L,2); arg2=&temp2; temp3=(float)lua_tonumber(L,3); arg3=&temp3;
  temp4=(float)lua_tonumber(L,4); arg4=&temp4; temp5=(float)lua_tonumber(L,5); arg5=&temp5;
  temp6=(float)lua_tonumber(L,6); arg6=&temp6;
  result = glm::ortho((float const &)*arg1,(float const &)*arg2,(float const &)*arg3,(float const &)*arg4,(float const &)*arg5,(float const &)*arg6);
  { glm::mat4 * resultptr = new glm::mat4((const glm::mat4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_ortho(lua_State* L) { int argc; int argv[7]={ 1,2,3,4,5,6,7} ; argc = lua_gettop(L); if (argc == 4) {
    return _wrap_ortho__SWIG_0(L);}  if (argc == 6) { return _wrap_ortho__SWIG_1(L);} 
  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'ortho'\n" "  Possible C/C++ prototypes are:\n"
  "    glm::ortho(float const &,float const &,float const &,float const &)\n"
  "    glm::ortho(float const &,float const &,float const &,float const &,float const &,float const &)\n");
  lua_error(L);return 0; }
static int _wrap_frustum(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float *arg2 = 0 ; float *arg3 = 0 ;
  float *arg4 = 0 ; float *arg5 = 0 ; float *arg6 = 0 ; float temp1 ; float temp2 ; float temp3 ; float temp4 ; float temp5 ;
  float temp6 ; glm::mat4 result; SWIG_check_num_args("glm::frustum",6,6)
  if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::frustum",1,"float const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::frustum",2,"float const &");
  if(!lua_isnumber(L,3)) SWIG_fail_arg("glm::frustum",3,"float const &");
  if(!lua_isnumber(L,4)) SWIG_fail_arg("glm::frustum",4,"float const &");
  if(!lua_isnumber(L,5)) SWIG_fail_arg("glm::frustum",5,"float const &");
  if(!lua_isnumber(L,6)) SWIG_fail_arg("glm::frustum",6,"float const &"); temp1=(float)lua_tonumber(L,1); arg1=&temp1;
  temp2=(float)lua_tonumber(L,2); arg2=&temp2; temp3=(float)lua_tonumber(L,3); arg3=&temp3;
  temp4=(float)lua_tonumber(L,4); arg4=&temp4; temp5=(float)lua_tonumber(L,5); arg5=&temp5;
  temp6=(float)lua_tonumber(L,6); arg6=&temp6;
  result = glm::frustum((float const &)*arg1,(float const &)*arg2,(float const &)*arg3,(float const &)*arg4,(float const &)*arg5,(float const &)*arg6);
  { glm::mat4 * resultptr = new glm::mat4((const glm::mat4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_perspective(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float *arg2 = 0 ; float *arg3 = 0 ;
  float *arg4 = 0 ; float temp1 ; float temp2 ; float temp3 ; float temp4 ; glm::mat4 result;
  SWIG_check_num_args("glm::perspective",4,4) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::perspective",1,"float const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::perspective",2,"float const &");
  if(!lua_isnumber(L,3)) SWIG_fail_arg("glm::perspective",3,"float const &");
  if(!lua_isnumber(L,4)) SWIG_fail_arg("glm::perspective",4,"float const &"); temp1=(float)lua_tonumber(L,1); arg1=&temp1;
  temp2=(float)lua_tonumber(L,2); arg2=&temp2; temp3=(float)lua_tonumber(L,3); arg3=&temp3;
  temp4=(float)lua_tonumber(L,4); arg4=&temp4;
  result = glm::perspective((float const &)*arg1,(float const &)*arg2,(float const &)*arg3,(float const &)*arg4); {
    glm::mat4 * resultptr = new glm::mat4((const glm::mat4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_perspectiveFov(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float *arg2 = 0 ; float *arg3 = 0 ;
  float *arg4 = 0 ; float *arg5 = 0 ; float temp1 ; float temp2 ; float temp3 ; float temp4 ; float temp5 ; glm::mat4 result;
  SWIG_check_num_args("glm::perspectiveFov",5,5) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::perspectiveFov",1,"float const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::perspectiveFov",2,"float const &");
  if(!lua_isnumber(L,3)) SWIG_fail_arg("glm::perspectiveFov",3,"float const &");
  if(!lua_isnumber(L,4)) SWIG_fail_arg("glm::perspectiveFov",4,"float const &");
  if(!lua_isnumber(L,5)) SWIG_fail_arg("glm::perspectiveFov",5,"float const &"); temp1=(float)lua_tonumber(L,1); arg1=&temp1;
  temp2=(float)lua_tonumber(L,2); arg2=&temp2; temp3=(float)lua_tonumber(L,3); arg3=&temp3;
  temp4=(float)lua_tonumber(L,4); arg4=&temp4; temp5=(float)lua_tonumber(L,5); arg5=&temp5;
  result = glm::perspectiveFov((float const &)*arg1,(float const &)*arg2,(float const &)*arg3,(float const &)*arg4,(float const &)*arg5);
  { glm::mat4 * resultptr = new glm::mat4((const glm::mat4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_infinitePerspective(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float *arg2 = 0 ; float *arg3 = 0 ;
  float temp1 ; float temp2 ; float temp3 ; glm::mat4 result; SWIG_check_num_args("glm::infinitePerspective",3,3)
  if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::infinitePerspective",1,"float const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::infinitePerspective",2,"float const &");
  if(!lua_isnumber(L,3)) SWIG_fail_arg("glm::infinitePerspective",3,"float const &");
  temp1=(float)lua_tonumber(L,1); arg1=&temp1; temp2=(float)lua_tonumber(L,2); arg2=&temp2;
  temp3=(float)lua_tonumber(L,3); arg3=&temp3;
  result = glm::infinitePerspective((float const &)*arg1,(float const &)*arg2,(float const &)*arg3); {
    glm::mat4 * resultptr = new glm::mat4((const glm::mat4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_tweakedInfinitePerspective(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float *arg2 = 0 ;
  float *arg3 = 0 ; float temp1 ; float temp2 ; float temp3 ; glm::mat4 result;
  SWIG_check_num_args("glm::tweakedInfinitePerspective",3,3)
  if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::tweakedInfinitePerspective",1,"float const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::tweakedInfinitePerspective",2,"float const &");
  if(!lua_isnumber(L,3)) SWIG_fail_arg("glm::tweakedInfinitePerspective",3,"float const &");
  temp1=(float)lua_tonumber(L,1); arg1=&temp1; temp2=(float)lua_tonumber(L,2); arg2=&temp2;
  temp3=(float)lua_tonumber(L,3); arg3=&temp3;
  result = glm::tweakedInfinitePerspective((float const &)*arg1,(float const &)*arg2,(float const &)*arg3); {
    glm::mat4 * resultptr = new glm::mat4((const glm::mat4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_project(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::mat4 *arg2 = 0 ; glm::mat4 *arg3 = 0 ;
  glm::vec4 *arg4 = 0 ; glm::vec3 result; SWIG_check_num_args("glm::project",4,4)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::project",1,"glm::vec3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::project",2,"glm::mat4 const &");
  if(!lua_isuserdata(L,3)) SWIG_fail_arg("glm::project",3,"glm::mat4 const &");
  if(!lua_isuserdata(L,4)) SWIG_fail_arg("glm::project",4,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("project",1,SWIGTYPE_p_glm__vec3); }
   if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__mat4,0))){ SWIG_fail_ptr("project",2,SWIGTYPE_p_glm__mat4); }
   if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_glm__mat4,0))){ SWIG_fail_ptr("project",3,SWIGTYPE_p_glm__mat4); }
   if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("project",4,SWIGTYPE_p_glm__vec4); }
   result = glm::project((glm::vec3 const &)*arg1,(glm::mat4 const &)*arg2,(glm::mat4 const &)*arg3,(glm::vec4 const &)*arg4); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_unProject(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::mat4 *arg2 = 0 ; glm::mat4 *arg3 = 0 ;
  glm::vec4 *arg4 = 0 ; glm::vec3 result; SWIG_check_num_args("glm::unProject",4,4)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::unProject",1,"glm::vec3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::unProject",2,"glm::mat4 const &");
  if(!lua_isuserdata(L,3)) SWIG_fail_arg("glm::unProject",3,"glm::mat4 const &");
  if(!lua_isuserdata(L,4)) SWIG_fail_arg("glm::unProject",4,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("unProject",1,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__mat4,0))){
    SWIG_fail_ptr("unProject",2,SWIGTYPE_p_glm__mat4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_glm__mat4,0))){
    SWIG_fail_ptr("unProject",3,SWIGTYPE_p_glm__mat4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_glm__vec4,0))){
    SWIG_fail_ptr("unProject",4,SWIGTYPE_p_glm__vec4); } 
  result = glm::unProject((glm::vec3 const &)*arg1,(glm::mat4 const &)*arg2,(glm::mat4 const &)*arg3,(glm::vec4 const &)*arg4);
  { glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_pickMatrix(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 *arg2 = 0 ; glm::vec4 *arg3 = 0 ;
  glm::mat4 result; SWIG_check_num_args("glm::pickMatrix",3,3)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::pickMatrix",1,"glm::vec2 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::pickMatrix",2,"glm::vec2 const &");
  if(!lua_isuserdata(L,3)) SWIG_fail_arg("glm::pickMatrix",3,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){
    SWIG_fail_ptr("pickMatrix",1,SWIGTYPE_p_glm__vec2); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec2,0))){
    SWIG_fail_ptr("pickMatrix",2,SWIGTYPE_p_glm__vec2); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_glm__vec4,0))){
    SWIG_fail_ptr("pickMatrix",3,SWIGTYPE_p_glm__vec4); } 
  result = glm::pickMatrix((glm::vec2 const &)*arg1,(glm::vec2 const &)*arg2,(glm::vec4 const &)*arg3); {
    glm::mat4 * resultptr = new glm::mat4((const glm::mat4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_lerp__SWIG_1(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float *arg2 = 0 ; float *arg3 = 0 ;
  float temp1 ; float temp2 ; float temp3 ; float result; SWIG_check_num_args("glm::lerp",3,3)
  if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::lerp",1,"float const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::lerp",2,"float const &");
  if(!lua_isnumber(L,3)) SWIG_fail_arg("glm::lerp",3,"float const &"); temp1=(float)lua_tonumber(L,1); arg1=&temp1;
  temp2=(float)lua_tonumber(L,2); arg2=&temp2; temp3=(float)lua_tonumber(L,3); arg3=&temp3;
  result = (float)glm::lerp((float const &)*arg1,(float const &)*arg2,(float const &)*arg3);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_lerp__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 *arg2 = 0 ;
  glm::vec2 *arg3 = 0 ; glm::vec2 result; SWIG_check_num_args("glm::lerp",3,3)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::lerp",1,"glm::vec2 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::lerp",2,"glm::vec2 const &");
  if(!lua_isuserdata(L,3)) SWIG_fail_arg("glm::lerp",3,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("lerp",1,SWIGTYPE_p_glm__vec2); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("lerp",2,SWIGTYPE_p_glm__vec2); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("lerp",3,SWIGTYPE_p_glm__vec2); } 
  result = glm::lerp((glm::vec2 const &)*arg1,(glm::vec2 const &)*arg2,(glm::vec2 const &)*arg3); {
    glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_lerp__SWIG_3(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 *arg2 = 0 ;
  glm::vec3 *arg3 = 0 ; glm::vec3 result; SWIG_check_num_args("glm::lerp",3,3)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::lerp",1,"glm::vec3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::lerp",2,"glm::vec3 const &");
  if(!lua_isuserdata(L,3)) SWIG_fail_arg("glm::lerp",3,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("lerp",1,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("lerp",2,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("lerp",3,SWIGTYPE_p_glm__vec3); } 
  result = glm::lerp((glm::vec3 const &)*arg1,(glm::vec3 const &)*arg2,(glm::vec3 const &)*arg3); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_lerp__SWIG_4(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 *arg2 = 0 ;
  glm::vec4 *arg3 = 0 ; glm::vec4 result; SWIG_check_num_args("glm::lerp",3,3)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::lerp",1,"glm::vec4 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::lerp",2,"glm::vec4 const &");
  if(!lua_isuserdata(L,3)) SWIG_fail_arg("glm::lerp",3,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("lerp",1,SWIGTYPE_p_glm__vec4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("lerp",2,SWIGTYPE_p_glm__vec4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("lerp",3,SWIGTYPE_p_glm__vec4); } 
  result = glm::lerp((glm::vec4 const &)*arg1,(glm::vec4 const &)*arg2,(glm::vec4 const &)*arg3); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_lerp__SWIG_5(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 *arg2 = 0 ; float *arg3 = 0 ;
  float temp3 ; glm::vec2 result; SWIG_check_num_args("glm::lerp",3,3)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::lerp",1,"glm::vec2 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::lerp",2,"glm::vec2 const &");
  if(!lua_isnumber(L,3)) SWIG_fail_arg("glm::lerp",3,"float const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("lerp",1,SWIGTYPE_p_glm__vec2); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("lerp",2,SWIGTYPE_p_glm__vec2); } 
  temp3=(float)lua_tonumber(L,3); arg3=&temp3;
  result = glm::lerp((glm::vec2 const &)*arg1,(glm::vec2 const &)*arg2,(float const &)*arg3); {
    glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_lerp__SWIG_6(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 *arg2 = 0 ; float *arg3 = 0 ;
  float temp3 ; glm::vec3 result; SWIG_check_num_args("glm::lerp",3,3)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::lerp",1,"glm::vec3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::lerp",2,"glm::vec3 const &");
  if(!lua_isnumber(L,3)) SWIG_fail_arg("glm::lerp",3,"float const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("lerp",1,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("lerp",2,SWIGTYPE_p_glm__vec3); } 
  temp3=(float)lua_tonumber(L,3); arg3=&temp3;
  result = glm::lerp((glm::vec3 const &)*arg1,(glm::vec3 const &)*arg2,(float const &)*arg3); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_lerp__SWIG_7(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 *arg2 = 0 ; float *arg3 = 0 ;
  float temp3 ; glm::vec4 result; SWIG_check_num_args("glm::lerp",3,3)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::lerp",1,"glm::vec4 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::lerp",2,"glm::vec4 const &");
  if(!lua_isnumber(L,3)) SWIG_fail_arg("glm::lerp",3,"float const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("lerp",1,SWIGTYPE_p_glm__vec4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("lerp",2,SWIGTYPE_p_glm__vec4); } 
  temp3=(float)lua_tonumber(L,3); arg3=&temp3;
  result = glm::lerp((glm::vec4 const &)*arg1,(glm::vec4 const &)*arg2,(float const &)*arg3); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_lerp(lua_State* L) { int argc; int argv[4]={ 1,2,3,4} ; argc = lua_gettop(L); if (argc == 3) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__quat, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__quat, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; { { _v = lua_isnumber(L,argv[2]); } }  if (!_v) goto check_1;
    return _wrap_lerp__SWIG_0(L);}  check_1: if (argc == 3) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; { { void *ptr;
        if (lua_isuserdata(L,argv[2])==0 || SWIG_ConvertPtr(L,argv[2], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_lerp__SWIG_2(L);}  check_2: if (argc == 3) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; { { void *ptr;
        if (lua_isuserdata(L,argv[2])==0 || SWIG_ConvertPtr(L,argv[2], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_lerp__SWIG_3(L);}  check_3: if (argc == 3) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_4; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_4; { { void *ptr;
        if (lua_isuserdata(L,argv[2])==0 || SWIG_ConvertPtr(L,argv[2], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_4; return _wrap_lerp__SWIG_4(L);}  check_4: if (argc == 3) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_5; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_5; return _wrap_lerp__SWIG_5(L);}  check_5: if (argc == 3) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_6; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_6; return _wrap_lerp__SWIG_6(L);}  check_6: if (argc == 3) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_7; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_7; return _wrap_lerp__SWIG_7(L);}  check_7: if (argc == 3) {
    return _wrap_lerp__SWIG_1(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'lerp'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::lerp(glm::quat const &,glm::quat const &,float)\n"
  "    glm::lerp(float const &,float const &,float const &)\n"
  "    glm::lerp(glm::vec2 const &,glm::vec2 const &,glm::vec2 const &)\n"
  "    glm::lerp(glm::vec3 const &,glm::vec3 const &,glm::vec3 const &)\n"
  "    glm::lerp(glm::vec4 const &,glm::vec4 const &,glm::vec4 const &)\n"
  "    glm::lerp(glm::vec2 const &,glm::vec2 const &,float const &)\n"
  "    glm::lerp(glm::vec3 const &,glm::vec3 const &,float const &)\n"
  "    glm::lerp(glm::vec4 const &,glm::vec4 const &,float const &)\n"); lua_error(L);return 0; }
static int _wrap_saturate__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 result;
  SWIG_check_num_args("glm::saturate",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::saturate",1,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("saturate",1,SWIGTYPE_p_glm__vec2); }
   result = glm::saturate((glm::vec2 const &)*arg1); { glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_saturate__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::saturate",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::saturate",1,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("saturate",1,SWIGTYPE_p_glm__vec3); }
   result = glm::saturate((glm::vec3 const &)*arg1); { glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_saturate__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::saturate",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::saturate",1,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("saturate",1,SWIGTYPE_p_glm__vec4); }
   result = glm::saturate((glm::vec4 const &)*arg1); { glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_saturate(lua_State* L) { int argc; int argv[2]={ 1,2} ; argc = lua_gettop(L); if (argc == 1) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_saturate__SWIG_0(L);}  check_1: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_saturate__SWIG_1(L);}  check_2: if (argc == 1) {
    return _wrap_saturate__SWIG_2(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'saturate'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::saturate(glm::vec2 const &)\n" "    glm::saturate(glm::vec3 const &)\n"
  "    glm::saturate(glm::vec4 const &)\n"); lua_error(L);return 0; }
static int _wrap_atan2__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 *arg2 = 0 ; glm::vec2 result;
  SWIG_check_num_args("glm::atan2",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::atan2",1,"glm::vec2 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::atan2",2,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("atan2",1,SWIGTYPE_p_glm__vec2); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("atan2",2,SWIGTYPE_p_glm__vec2); } 
  result = glm::atan2((glm::vec2 const &)*arg1,(glm::vec2 const &)*arg2); {
    glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_atan2__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 *arg2 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::atan2",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::atan2",1,"glm::vec3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::atan2",2,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("atan2",1,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("atan2",2,SWIGTYPE_p_glm__vec3); } 
  result = glm::atan2((glm::vec3 const &)*arg1,(glm::vec3 const &)*arg2); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_atan2__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 *arg2 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::atan2",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::atan2",1,"glm::vec4 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::atan2",2,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("atan2",1,SWIGTYPE_p_glm__vec4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("atan2",2,SWIGTYPE_p_glm__vec4); } 
  result = glm::atan2((glm::vec4 const &)*arg1,(glm::vec4 const &)*arg2); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_atan2(lua_State* L) { int argc; int argv[3]={ 1,2,3} ; argc = lua_gettop(L); if (argc == 2) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_atan2__SWIG_0(L);}  check_1: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_atan2__SWIG_1(L);}  check_2: if (argc == 2) {
    return _wrap_atan2__SWIG_2(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'atan2'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::atan2(glm::vec2 const &,glm::vec2 const &)\n"
  "    glm::atan2(glm::vec3 const &,glm::vec3 const &)\n" "    glm::atan2(glm::vec4 const &,glm::vec4 const &)\n");
  lua_error(L);return 0; }
static int _wrap_isfinite__SWIG_0(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; bool result;
  SWIG_check_num_args("glm::isfinite",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::isfinite",1,"float &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_float,0))){ SWIG_fail_ptr("isfinite",1,SWIGTYPE_p_float); } 
  result = (bool)glm::isfinite(*arg1); lua_pushboolean(L,(int)(result!=0)); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_isfinite__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 result;
  SWIG_check_num_args("glm::isfinite",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::isfinite",1,"glm::vec2 &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("isfinite",1,SWIGTYPE_p_glm__vec2); }
   result = glm::isfinite(*arg1); { glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_isfinite__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::isfinite",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::isfinite",1,"glm::vec3 &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("isfinite",1,SWIGTYPE_p_glm__vec3); }
   result = glm::isfinite(*arg1); { glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_isfinite__SWIG_3(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::isfinite",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::isfinite",1,"glm::vec4 &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("isfinite",1,SWIGTYPE_p_glm__vec4); }
   result = glm::isfinite(*arg1); { glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_isfinite(lua_State* L) { int argc; int argv[2]={ 1,2} ; argc = lua_gettop(L); if (argc == 1) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_float, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_isfinite__SWIG_0(L);}  check_1: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_isfinite__SWIG_1(L);}  check_2: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_isfinite__SWIG_2(L);}  check_3: if (argc == 1) {
    return _wrap_isfinite__SWIG_3(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'isfinite'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::isfinite(float &)\n" "    glm::isfinite(glm::vec2 &)\n"
  "    glm::isfinite(glm::vec3 &)\n" "    glm::isfinite(glm::vec4 &)\n"); lua_error(L);return 0; }
static int _wrap_fastSqrt__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 result;
  SWIG_check_num_args("glm::fastSqrt",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::fastSqrt",1,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("fastSqrt",1,SWIGTYPE_p_glm__vec2); }
   result = glm::fastSqrt((glm::vec2 const &)*arg1); { glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_fastSqrt__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::fastSqrt",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::fastSqrt",1,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("fastSqrt",1,SWIGTYPE_p_glm__vec3); }
   result = glm::fastSqrt((glm::vec3 const &)*arg1); { glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_fastSqrt__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::fastSqrt",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::fastSqrt",1,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("fastSqrt",1,SWIGTYPE_p_glm__vec4); }
   result = glm::fastSqrt((glm::vec4 const &)*arg1); { glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_fastSqrt(lua_State* L) { int argc; int argv[2]={ 1,2} ; argc = lua_gettop(L); if (argc == 1) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_fastSqrt__SWIG_0(L);}  check_1: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_fastSqrt__SWIG_1(L);}  check_2: if (argc == 1) {
    return _wrap_fastSqrt__SWIG_2(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'fastSqrt'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::fastSqrt(glm::vec2 const &)\n" "    glm::fastSqrt(glm::vec3 const &)\n"
  "    glm::fastSqrt(glm::vec4 const &)\n"); lua_error(L);return 0; }
static int _wrap_fastInverseSqrt__SWIG_0(lua_State* L) { int SWIG_arg = 0; float *arg1 = 0 ; float temp1 ; float result;
  SWIG_check_num_args("glm::fastInverseSqrt",1,1)
  if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::fastInverseSqrt",1,"float const &"); temp1=(float)lua_tonumber(L,1); arg1=&temp1;
  result = (float)glm::fastInverseSqrt((float const &)*arg1); lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_fastInverseSqrt__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 result;
  SWIG_check_num_args("glm::fastInverseSqrt",1,1)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::fastInverseSqrt",1,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){
    SWIG_fail_ptr("fastInverseSqrt",1,SWIGTYPE_p_glm__vec2); }  result = glm::fastInverseSqrt((glm::vec2 const &)*arg1); {
    glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_fastInverseSqrt__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::fastInverseSqrt",1,1)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::fastInverseSqrt",1,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("fastInverseSqrt",1,SWIGTYPE_p_glm__vec3); }  result = glm::fastInverseSqrt((glm::vec3 const &)*arg1); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_fastInverseSqrt__SWIG_3(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::fastInverseSqrt",1,1)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::fastInverseSqrt",1,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){
    SWIG_fail_ptr("fastInverseSqrt",1,SWIGTYPE_p_glm__vec4); }  result = glm::fastInverseSqrt((glm::vec4 const &)*arg1); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_fastInverseSqrt(lua_State* L) { int argc; int argv[2]={ 1,2} ; argc = lua_gettop(L); if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_fastInverseSqrt__SWIG_1(L);}  check_1:
  if (argc == 1) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_fastInverseSqrt__SWIG_2(L);}  check_2:
  if (argc == 1) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_fastInverseSqrt__SWIG_3(L);}  check_3:
  if (argc == 1) { return _wrap_fastInverseSqrt__SWIG_0(L);} 
  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'fastInverseSqrt'\n" "  Possible C/C++ prototypes are:\n"
  "    glm::fastInverseSqrt(float const &)\n" "    glm::fastInverseSqrt(glm::vec2 const &)\n"
  "    glm::fastInverseSqrt(glm::vec3 const &)\n" "    glm::fastInverseSqrt(glm::vec4 const &)\n"); lua_error(L);return 0; }
static int _wrap_fastLength__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; float result;
  SWIG_check_num_args("glm::fastLength",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::fastLength",1,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){
    SWIG_fail_ptr("fastLength",1,SWIGTYPE_p_glm__vec2); }  result = (float)glm::fastLength((glm::vec2 const &)*arg1);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_fastLength__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; float result;
  SWIG_check_num_args("glm::fastLength",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::fastLength",1,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("fastLength",1,SWIGTYPE_p_glm__vec3); }  result = (float)glm::fastLength((glm::vec3 const &)*arg1);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_fastLength__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; float result;
  SWIG_check_num_args("glm::fastLength",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::fastLength",1,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){
    SWIG_fail_ptr("fastLength",1,SWIGTYPE_p_glm__vec4); }  result = (float)glm::fastLength((glm::vec4 const &)*arg1);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_fastLength(lua_State* L) { int argc; int argv[2]={ 1,2} ; argc = lua_gettop(L); if (argc == 1) { int _v = 0; {
      { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_fastLength__SWIG_0(L);}  check_1:
  if (argc == 1) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_fastLength__SWIG_1(L);}  check_2:
  if (argc == 1) { return _wrap_fastLength__SWIG_2(L);} 
  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'fastLength'\n" "  Possible C/C++ prototypes are:\n"
  "    glm::fastLength(glm::vec2 const &)\n" "    glm::fastLength(glm::vec3 const &)\n"
  "    glm::fastLength(glm::vec4 const &)\n"); lua_error(L);return 0; }
static int _wrap_fastDistance__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 *arg2 = 0 ;
  float result; SWIG_check_num_args("glm::fastDistance",2,2)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::fastDistance",1,"glm::vec2 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::fastDistance",2,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){
    SWIG_fail_ptr("fastDistance",1,SWIGTYPE_p_glm__vec2); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec2,0))){
    SWIG_fail_ptr("fastDistance",2,SWIGTYPE_p_glm__vec2); } 
  result = (float)glm::fastDistance((glm::vec2 const &)*arg1,(glm::vec2 const &)*arg2);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_fastDistance__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 *arg2 = 0 ;
  float result; SWIG_check_num_args("glm::fastDistance",2,2)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::fastDistance",1,"glm::vec3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::fastDistance",2,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("fastDistance",1,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("fastDistance",2,SWIGTYPE_p_glm__vec3); } 
  result = (float)glm::fastDistance((glm::vec3 const &)*arg1,(glm::vec3 const &)*arg2);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_fastDistance__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 *arg2 = 0 ;
  float result; SWIG_check_num_args("glm::fastDistance",2,2)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::fastDistance",1,"glm::vec4 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::fastDistance",2,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){
    SWIG_fail_ptr("fastDistance",1,SWIGTYPE_p_glm__vec4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec4,0))){
    SWIG_fail_ptr("fastDistance",2,SWIGTYPE_p_glm__vec4); } 
  result = (float)glm::fastDistance((glm::vec4 const &)*arg1,(glm::vec4 const &)*arg2);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_fastDistance(lua_State* L) { int argc; int argv[3]={ 1,2,3} ; argc = lua_gettop(L); if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_fastDistance__SWIG_0(L);}  check_1:
  if (argc == 2) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_fastDistance__SWIG_1(L);}  check_2:
  if (argc == 2) { return _wrap_fastDistance__SWIG_2(L);} 
  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'fastDistance'\n" "  Possible C/C++ prototypes are:\n"
  "    glm::fastDistance(glm::vec2 const &,glm::vec2 const &)\n" "    glm::fastDistance(glm::vec3 const &,glm::vec3 const &)\n"
  "    glm::fastDistance(glm::vec4 const &,glm::vec4 const &)\n"); lua_error(L);return 0; }
static int _wrap_fastNormalize__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 result;
  SWIG_check_num_args("glm::fastNormalize",1,1)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::fastNormalize",1,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){
    SWIG_fail_ptr("fastNormalize",1,SWIGTYPE_p_glm__vec2); }  result = glm::fastNormalize((glm::vec2 const &)*arg1); {
    glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_fastNormalize__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::fastNormalize",1,1)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::fastNormalize",1,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("fastNormalize",1,SWIGTYPE_p_glm__vec3); }  result = glm::fastNormalize((glm::vec3 const &)*arg1); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_fastNormalize__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 result;
  SWIG_check_num_args("glm::fastNormalize",1,1)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::fastNormalize",1,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){
    SWIG_fail_ptr("fastNormalize",1,SWIGTYPE_p_glm__vec4); }  result = glm::fastNormalize((glm::vec4 const &)*arg1); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_fastNormalize(lua_State* L) { int argc; int argv[2]={ 1,2} ; argc = lua_gettop(L); if (argc == 1) { int _v = 0;
    { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_fastNormalize__SWIG_0(L);}  check_1:
  if (argc == 1) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_fastNormalize__SWIG_1(L);}  check_2:
  if (argc == 1) { return _wrap_fastNormalize__SWIG_2(L);} 
  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'fastNormalize'\n" "  Possible C/C++ prototypes are:\n"
  "    glm::fastNormalize(glm::vec2 const &)\n" "    glm::fastNormalize(glm::vec3 const &)\n"
  "    glm::fastNormalize(glm::vec4 const &)\n"); lua_error(L);return 0; }
static int _wrap_length2__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; float result;
  SWIG_check_num_args("glm::length2",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::length2",1,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("length2",1,SWIGTYPE_p_glm__vec2); }
   result = (float)glm::length2((glm::vec2 const &)*arg1); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg;
  if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_length2__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; float result;
  SWIG_check_num_args("glm::length2",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::length2",1,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("length2",1,SWIGTYPE_p_glm__vec3); }
   result = (float)glm::length2((glm::vec3 const &)*arg1); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg;
  if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_length2__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; float result;
  SWIG_check_num_args("glm::length2",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::length2",1,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("length2",1,SWIGTYPE_p_glm__vec4); }
   result = (float)glm::length2((glm::vec4 const &)*arg1); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg;
  if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_length2(lua_State* L) { int argc; int argv[2]={ 1,2} ; argc = lua_gettop(L); if (argc == 1) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_length2__SWIG_0(L);}  check_1: if (argc == 1) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_length2__SWIG_1(L);}  check_2: if (argc == 1) {
    return _wrap_length2__SWIG_2(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'length2'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::length2(glm::vec2 const &)\n" "    glm::length2(glm::vec3 const &)\n"
  "    glm::length2(glm::vec4 const &)\n"); lua_error(L);return 0; }
static int _wrap_distance2__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 *arg2 = 0 ; float result;
  SWIG_check_num_args("glm::distance2",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::distance2",1,"glm::vec2 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::distance2",2,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){
    SWIG_fail_ptr("distance2",1,SWIGTYPE_p_glm__vec2); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec2,0))){
    SWIG_fail_ptr("distance2",2,SWIGTYPE_p_glm__vec2); } 
  result = (float)glm::distance2((glm::vec2 const &)*arg1,(glm::vec2 const &)*arg2);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_distance2__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 *arg2 = 0 ; float result;
  SWIG_check_num_args("glm::distance2",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::distance2",1,"glm::vec3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::distance2",2,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("distance2",1,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("distance2",2,SWIGTYPE_p_glm__vec3); } 
  result = (float)glm::distance2((glm::vec3 const &)*arg1,(glm::vec3 const &)*arg2);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_distance2__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 *arg2 = 0 ; float result;
  SWIG_check_num_args("glm::distance2",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::distance2",1,"glm::vec4 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::distance2",2,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){
    SWIG_fail_ptr("distance2",1,SWIGTYPE_p_glm__vec4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec4,0))){
    SWIG_fail_ptr("distance2",2,SWIGTYPE_p_glm__vec4); } 
  result = (float)glm::distance2((glm::vec4 const &)*arg1,(glm::vec4 const &)*arg2);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_distance2(lua_State* L) { int argc; int argv[3]={ 1,2,3} ; argc = lua_gettop(L); if (argc == 2) { int _v = 0; {
      { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_distance2__SWIG_0(L);}  check_1:
  if (argc == 2) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_distance2__SWIG_1(L);}  check_2:
  if (argc == 2) { return _wrap_distance2__SWIG_2(L);} 
  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'distance2'\n" "  Possible C/C++ prototypes are:\n"
  "    glm::distance2(glm::vec2 const &,glm::vec2 const &)\n" "    glm::distance2(glm::vec3 const &,glm::vec3 const &)\n"
  "    glm::distance2(glm::vec4 const &,glm::vec4 const &)\n"); lua_error(L);return 0; }
static int _wrap_l1Norm__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 *arg2 = 0 ; float result;
  SWIG_check_num_args("glm::l1Norm",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::l1Norm",1,"glm::vec3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::l1Norm",2,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("l1Norm",1,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("l1Norm",2,SWIGTYPE_p_glm__vec3); } 
  result = (float)glm::l1Norm((glm::vec3 const &)*arg1,(glm::vec3 const &)*arg2);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_l1Norm__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; float result;
  SWIG_check_num_args("glm::l1Norm",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::l1Norm",1,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("l1Norm",1,SWIGTYPE_p_glm__vec3); } 
  result = (float)glm::l1Norm((glm::vec3 const &)*arg1); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg;
  if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_l1Norm(lua_State* L) { int argc; int argv[3]={ 1,2,3} ; argc = lua_gettop(L); if (argc == 1) {
    return _wrap_l1Norm__SWIG_1(L);}  if (argc == 2) { return _wrap_l1Norm__SWIG_0(L);} 
  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'l1Norm'\n" "  Possible C/C++ prototypes are:\n"
  "    glm::l1Norm(glm::vec3 const &,glm::vec3 const &)\n" "    glm::l1Norm(glm::vec3 const &)\n"); lua_error(L);return 0; }
static int _wrap_l2Norm__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 *arg2 = 0 ; float result;
  SWIG_check_num_args("glm::l2Norm",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::l2Norm",1,"glm::vec3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::l2Norm",2,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("l2Norm",1,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("l2Norm",2,SWIGTYPE_p_glm__vec3); } 
  result = (float)glm::l2Norm((glm::vec3 const &)*arg1,(glm::vec3 const &)*arg2);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_l2Norm__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; float result;
  SWIG_check_num_args("glm::l2Norm",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::l2Norm",1,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("l2Norm",1,SWIGTYPE_p_glm__vec3); } 
  result = (float)glm::l2Norm((glm::vec3 const &)*arg1); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg;
  if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_l2Norm(lua_State* L) { int argc; int argv[3]={ 1,2,3} ; argc = lua_gettop(L); if (argc == 1) {
    return _wrap_l2Norm__SWIG_1(L);}  if (argc == 2) { return _wrap_l2Norm__SWIG_0(L);} 
  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'l2Norm'\n" "  Possible C/C++ prototypes are:\n"
  "    glm::l2Norm(glm::vec3 const &,glm::vec3 const &)\n" "    glm::l2Norm(glm::vec3 const &)\n"); lua_error(L);return 0; }
static int _wrap_lxNorm__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 *arg2 = 0 ;
  unsigned int arg3 ; float result; SWIG_check_num_args("glm::lxNorm",3,3)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::lxNorm",1,"glm::vec3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::lxNorm",2,"glm::vec3 const &");
  if(!lua_isnumber(L,3)) SWIG_fail_arg("glm::lxNorm",3,"unsigned int");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("lxNorm",1,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("lxNorm",2,SWIGTYPE_p_glm__vec3); } 
  SWIG_contract_assert((lua_tonumber(L,3)>=0),"number must not be negative") arg3 = (unsigned int)lua_tonumber(L, 3);
  result = (float)glm::lxNorm((glm::vec3 const &)*arg1,(glm::vec3 const &)*arg2,arg3);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_lxNorm__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; unsigned int arg2 ; float result;
  SWIG_check_num_args("glm::lxNorm",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::lxNorm",1,"glm::vec3 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::lxNorm",2,"unsigned int");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("lxNorm",1,SWIGTYPE_p_glm__vec3); } 
  SWIG_contract_assert((lua_tonumber(L,2)>=0),"number must not be negative") arg2 = (unsigned int)lua_tonumber(L, 2);
  result = (float)glm::lxNorm((glm::vec3 const &)*arg1,arg2); lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
  return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_lxNorm(lua_State* L) { int argc; int argv[4]={ 1,2,3,4} ; argc = lua_gettop(L); if (argc == 2) {
    return _wrap_lxNorm__SWIG_1(L);}  if (argc == 3) { return _wrap_lxNorm__SWIG_0(L);} 
  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'lxNorm'\n" "  Possible C/C++ prototypes are:\n"
  "    glm::lxNorm(glm::vec3 const &,glm::vec3 const &,unsigned int)\n" "    glm::lxNorm(glm::vec3 const &,unsigned int)\n");
  lua_error(L);return 0; }
static int _wrap_perp__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 *arg2 = 0 ; glm::vec2 result;
  SWIG_check_num_args("glm::perp",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::perp",1,"glm::vec2 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::perp",2,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("perp",1,SWIGTYPE_p_glm__vec2); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("perp",2,SWIGTYPE_p_glm__vec2); } 
  result = glm::perp((glm::vec2 const &)*arg1,(glm::vec2 const &)*arg2); {
    glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_perp__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 *arg2 = 0 ; glm::vec3 result;
  SWIG_check_num_args("glm::perp",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::perp",1,"glm::vec3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::perp",2,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("perp",1,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("perp",2,SWIGTYPE_p_glm__vec3); } 
  result = glm::perp((glm::vec3 const &)*arg1,(glm::vec3 const &)*arg2); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_perp(lua_State* L) { int argc; int argv[3]={ 1,2,3} ; argc = lua_gettop(L); if (argc == 2) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_perp__SWIG_0(L);}  check_1: if (argc == 2) {
    return _wrap_perp__SWIG_1(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'perp'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::perp(glm::vec2 const &,glm::vec2 const &)\n"
  "    glm::perp(glm::vec3 const &,glm::vec3 const &)\n"); lua_error(L);return 0; }
static int _wrap_slerp__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 *arg2 = 0 ; float *arg3 = 0 ;
  float temp3 ; glm::vec3 result; SWIG_check_num_args("glm::slerp",3,3)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::slerp",1,"glm::vec3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::slerp",2,"glm::vec3 const &");
  if(!lua_isnumber(L,3)) SWIG_fail_arg("glm::slerp",3,"float const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("slerp",1,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("slerp",2,SWIGTYPE_p_glm__vec3); } 
  temp3=(float)lua_tonumber(L,3); arg3=&temp3;
  result = glm::slerp((glm::vec3 const &)*arg1,(glm::vec3 const &)*arg2,(float const &)*arg3); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_slerp(lua_State* L) { int argc; int argv[4]={ 1,2,3,4} ; argc = lua_gettop(L); if (argc == 3) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__quat, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__quat, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_slerp__SWIG_0(L);}  check_1: if (argc == 3) {
    return _wrap_slerp__SWIG_1(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'slerp'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::slerp(glm::quat const &,glm::quat const &,float)\n"
  "    glm::slerp(glm::vec3 const &,glm::vec3 const &,float const &)\n"); lua_error(L);return 0; }
static int _wrap_rotate__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; float *arg2 = 0 ; float temp2 ;
  glm::vec2 result; SWIG_check_num_args("glm::rotate",2,2)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::rotate",1,"glm::vec2 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::rotate",2,"float const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("rotate",1,SWIGTYPE_p_glm__vec2); } 
  temp2=(float)lua_tonumber(L,2); arg2=&temp2; result = glm::rotate((glm::vec2 const &)*arg1,(float const &)*arg2); {
    glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_rotate__SWIG_3(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; float *arg2 = 0 ; glm::vec3 *arg3 = 0 ;
  float temp2 ; glm::vec3 result; SWIG_check_num_args("glm::rotate",3,3)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::rotate",1,"glm::vec3 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::rotate",2,"float const &");
  if(!lua_isuserdata(L,3)) SWIG_fail_arg("glm::rotate",3,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("rotate",1,SWIGTYPE_p_glm__vec3); } 
  temp2=(float)lua_tonumber(L,2); arg2=&temp2; if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("rotate",3,SWIGTYPE_p_glm__vec3); } 
  result = glm::rotate((glm::vec3 const &)*arg1,(float const &)*arg2,(glm::vec3 const &)*arg3); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_rotate__SWIG_4(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; float *arg2 = 0 ; glm::vec3 *arg3 = 0 ;
  float temp2 ; glm::vec4 result; SWIG_check_num_args("glm::rotate",3,3)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::rotate",1,"glm::vec4 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::rotate",2,"float const &");
  if(!lua_isuserdata(L,3)) SWIG_fail_arg("glm::rotate",3,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("rotate",1,SWIGTYPE_p_glm__vec4); } 
  temp2=(float)lua_tonumber(L,2); arg2=&temp2; if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("rotate",3,SWIGTYPE_p_glm__vec3); } 
  result = glm::rotate((glm::vec4 const &)*arg1,(float const &)*arg2,(glm::vec3 const &)*arg3); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_rotateX__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; float *arg2 = 0 ; float temp2 ;
  glm::vec3 result; SWIG_check_num_args("glm::rotateX",2,2)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::rotateX",1,"glm::vec3 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::rotateX",2,"float const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("rotateX",1,SWIGTYPE_p_glm__vec3); }
   temp2=(float)lua_tonumber(L,2); arg2=&temp2; result = glm::rotateX((glm::vec3 const &)*arg1,(float const &)*arg2); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_rotateX__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; float *arg2 = 0 ; float temp2 ;
  glm::vec4 result; SWIG_check_num_args("glm::rotateX",2,2)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::rotateX",1,"glm::vec4 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::rotateX",2,"float const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("rotateX",1,SWIGTYPE_p_glm__vec4); }
   temp2=(float)lua_tonumber(L,2); arg2=&temp2; result = glm::rotateX((glm::vec4 const &)*arg1,(float const &)*arg2); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_rotateX(lua_State* L) { int argc; int argv[3]={ 1,2,3} ; argc = lua_gettop(L); if (argc == 2) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_rotateX__SWIG_0(L);}  check_1: if (argc == 2) {
    return _wrap_rotateX__SWIG_1(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'rotateX'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::rotateX(glm::vec3 const &,float const &)\n"
  "    glm::rotateX(glm::vec4 const &,float const &)\n"); lua_error(L);return 0; }
static int _wrap_rotateY__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; float *arg2 = 0 ; float temp2 ;
  glm::vec3 result; SWIG_check_num_args("glm::rotateY",2,2)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::rotateY",1,"glm::vec3 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::rotateY",2,"float const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("rotateY",1,SWIGTYPE_p_glm__vec3); }
   temp2=(float)lua_tonumber(L,2); arg2=&temp2; result = glm::rotateY((glm::vec3 const &)*arg1,(float const &)*arg2); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_rotateY__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; float *arg2 = 0 ; float temp2 ;
  glm::vec4 result; SWIG_check_num_args("glm::rotateY",2,2)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::rotateY",1,"glm::vec4 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::rotateY",2,"float const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("rotateY",1,SWIGTYPE_p_glm__vec4); }
   temp2=(float)lua_tonumber(L,2); arg2=&temp2; result = glm::rotateY((glm::vec4 const &)*arg1,(float const &)*arg2); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_rotateY(lua_State* L) { int argc; int argv[3]={ 1,2,3} ; argc = lua_gettop(L); if (argc == 2) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_rotateY__SWIG_0(L);}  check_1: if (argc == 2) {
    return _wrap_rotateY__SWIG_1(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'rotateY'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::rotateY(glm::vec3 const &,float const &)\n"
  "    glm::rotateY(glm::vec4 const &,float const &)\n"); lua_error(L);return 0; }
static int _wrap_rotateZ__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; float *arg2 = 0 ; float temp2 ;
  glm::vec3 result; SWIG_check_num_args("glm::rotateZ",2,2)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::rotateZ",1,"glm::vec3 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::rotateZ",2,"float const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("rotateZ",1,SWIGTYPE_p_glm__vec3); }
   temp2=(float)lua_tonumber(L,2); arg2=&temp2; result = glm::rotateZ((glm::vec3 const &)*arg1,(float const &)*arg2); {
    glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_rotateZ__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; float *arg2 = 0 ; float temp2 ;
  glm::vec4 result; SWIG_check_num_args("glm::rotateZ",2,2)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::rotateZ",1,"glm::vec4 const &");
  if(!lua_isnumber(L,2)) SWIG_fail_arg("glm::rotateZ",2,"float const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("rotateZ",1,SWIGTYPE_p_glm__vec4); }
   temp2=(float)lua_tonumber(L,2); arg2=&temp2; result = glm::rotateZ((glm::vec4 const &)*arg1,(float const &)*arg2); {
    glm::vec4 * resultptr = new glm::vec4((const glm::vec4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_rotateZ(lua_State* L) { int argc; int argv[3]={ 1,2,3} ; argc = lua_gettop(L); if (argc == 2) { int _v = 0; { {
        void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_rotateZ__SWIG_0(L);}  check_1: if (argc == 2) {
    return _wrap_rotateZ__SWIG_1(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'rotateZ'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::rotateZ(glm::vec3 const &,float const &)\n"
  "    glm::rotateZ(glm::vec4 const &,float const &)\n"); lua_error(L);return 0; }
static int _wrap_orientation(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 *arg2 = 0 ; glm::mat4 result;
  SWIG_check_num_args("glm::orientation",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::orientation",1,"glm::vec3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::orientation",2,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("orientation",1,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("orientation",2,SWIGTYPE_p_glm__vec3); } 
  result = glm::orientation((glm::vec3 const &)*arg1,(glm::vec3 const &)*arg2); {
    glm::mat4 * resultptr = new glm::mat4((const glm::mat4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_catmullRom__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 *arg2 = 0 ;
  glm::vec2 *arg3 = 0 ; glm::vec2 *arg4 = 0 ; float *arg5 = 0 ; float temp5 ; glm::vec2 result;
  SWIG_check_num_args("glm::catmullRom",5,5) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::catmullRom",1,"glm::vec2 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::catmullRom",2,"glm::vec2 const &");
  if(!lua_isuserdata(L,3)) SWIG_fail_arg("glm::catmullRom",3,"glm::vec2 const &");
  if(!lua_isuserdata(L,4)) SWIG_fail_arg("glm::catmullRom",4,"glm::vec2 const &");
  if(!lua_isnumber(L,5)) SWIG_fail_arg("glm::catmullRom",5,"float const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){
    SWIG_fail_ptr("catmullRom",1,SWIGTYPE_p_glm__vec2); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec2,0))){
    SWIG_fail_ptr("catmullRom",2,SWIGTYPE_p_glm__vec2); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_glm__vec2,0))){
    SWIG_fail_ptr("catmullRom",3,SWIGTYPE_p_glm__vec2); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_glm__vec2,0))){
    SWIG_fail_ptr("catmullRom",4,SWIGTYPE_p_glm__vec2); }  temp5=(float)lua_tonumber(L,5); arg5=&temp5;
  result = glm::catmullRom((glm::vec2 const &)*arg1,(glm::vec2 const &)*arg2,(glm::vec2 const &)*arg3,(glm::vec2 const &)*arg4,(float const &)*arg5);
  { glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_catmullRom__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 *arg2 = 0 ;
  glm::vec3 *arg3 = 0 ; glm::vec3 *arg4 = 0 ; float *arg5 = 0 ; float temp5 ; glm::vec3 result;
  SWIG_check_num_args("glm::catmullRom",5,5) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::catmullRom",1,"glm::vec3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::catmullRom",2,"glm::vec3 const &");
  if(!lua_isuserdata(L,3)) SWIG_fail_arg("glm::catmullRom",3,"glm::vec3 const &");
  if(!lua_isuserdata(L,4)) SWIG_fail_arg("glm::catmullRom",4,"glm::vec3 const &");
  if(!lua_isnumber(L,5)) SWIG_fail_arg("glm::catmullRom",5,"float const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("catmullRom",1,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("catmullRom",2,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("catmullRom",3,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("catmullRom",4,SWIGTYPE_p_glm__vec3); }  temp5=(float)lua_tonumber(L,5); arg5=&temp5;
  result = glm::catmullRom((glm::vec3 const &)*arg1,(glm::vec3 const &)*arg2,(glm::vec3 const &)*arg3,(glm::vec3 const &)*arg4,(float const &)*arg5);
  { glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_catmullRom(lua_State* L) { int argc; int argv[6]={ 1,2,3,4,5,6} ; argc = lua_gettop(L); if (argc == 5) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; { { void *ptr;
        if (lua_isuserdata(L,argv[2])==0 || SWIG_ConvertPtr(L,argv[2], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; { { void *ptr;
        if (lua_isuserdata(L,argv[3])==0 || SWIG_ConvertPtr(L,argv[3], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_catmullRom__SWIG_0(L);}  check_1:
  if (argc == 5) { return _wrap_catmullRom__SWIG_1(L);} 
  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'catmullRom'\n" "  Possible C/C++ prototypes are:\n"
  "    glm::catmullRom(glm::vec2 const &,glm::vec2 const &,glm::vec2 const &,glm::vec2 const &,float const &)\n"
  "    glm::catmullRom(glm::vec3 const &,glm::vec3 const &,glm::vec3 const &,glm::vec3 const &,float const &)\n");
  lua_error(L);return 0; }
static int _wrap_hermite__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 *arg2 = 0 ;
  glm::vec2 *arg3 = 0 ; glm::vec2 *arg4 = 0 ; float *arg5 = 0 ; float temp5 ; glm::vec2 result;
  SWIG_check_num_args("glm::hermite",5,5) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::hermite",1,"glm::vec2 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::hermite",2,"glm::vec2 const &");
  if(!lua_isuserdata(L,3)) SWIG_fail_arg("glm::hermite",3,"glm::vec2 const &");
  if(!lua_isuserdata(L,4)) SWIG_fail_arg("glm::hermite",4,"glm::vec2 const &");
  if(!lua_isnumber(L,5)) SWIG_fail_arg("glm::hermite",5,"float const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("hermite",1,SWIGTYPE_p_glm__vec2); }
   if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("hermite",2,SWIGTYPE_p_glm__vec2); }
   if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("hermite",3,SWIGTYPE_p_glm__vec2); }
   if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("hermite",4,SWIGTYPE_p_glm__vec2); }
   temp5=(float)lua_tonumber(L,5); arg5=&temp5;
  result = glm::hermite((glm::vec2 const &)*arg1,(glm::vec2 const &)*arg2,(glm::vec2 const &)*arg3,(glm::vec2 const &)*arg4,(float const &)*arg5);
  { glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_hermite__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 *arg2 = 0 ;
  glm::vec3 *arg3 = 0 ; glm::vec3 *arg4 = 0 ; float *arg5 = 0 ; float temp5 ; glm::vec3 result;
  SWIG_check_num_args("glm::hermite",5,5) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::hermite",1,"glm::vec3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::hermite",2,"glm::vec3 const &");
  if(!lua_isuserdata(L,3)) SWIG_fail_arg("glm::hermite",3,"glm::vec3 const &");
  if(!lua_isuserdata(L,4)) SWIG_fail_arg("glm::hermite",4,"glm::vec3 const &");
  if(!lua_isnumber(L,5)) SWIG_fail_arg("glm::hermite",5,"float const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("hermite",1,SWIGTYPE_p_glm__vec3); }
   if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("hermite",2,SWIGTYPE_p_glm__vec3); }
   if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("hermite",3,SWIGTYPE_p_glm__vec3); }
   if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("hermite",4,SWIGTYPE_p_glm__vec3); }
   temp5=(float)lua_tonumber(L,5); arg5=&temp5;
  result = glm::hermite((glm::vec3 const &)*arg1,(glm::vec3 const &)*arg2,(glm::vec3 const &)*arg3,(glm::vec3 const &)*arg4,(float const &)*arg5);
  { glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_hermite(lua_State* L) { int argc; int argv[6]={ 1,2,3,4,5,6} ; argc = lua_gettop(L); if (argc == 5) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; { { void *ptr;
        if (lua_isuserdata(L,argv[2])==0 || SWIG_ConvertPtr(L,argv[2], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; { { void *ptr;
        if (lua_isuserdata(L,argv[3])==0 || SWIG_ConvertPtr(L,argv[3], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_hermite__SWIG_0(L);}  check_1: if (argc == 5) {
    return _wrap_hermite__SWIG_1(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'hermite'\n"
  "  Possible C/C++ prototypes are:\n"
  "    glm::hermite(glm::vec2 const &,glm::vec2 const &,glm::vec2 const &,glm::vec2 const &,float const &)\n"
  "    glm::hermite(glm::vec3 const &,glm::vec3 const &,glm::vec3 const &,glm::vec3 const &,float const &)\n");
  lua_error(L);return 0; }
static int _wrap_cubic__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 *arg2 = 0 ;
  glm::vec2 *arg3 = 0 ; glm::vec2 *arg4 = 0 ; float *arg5 = 0 ; float temp5 ; glm::vec2 result;
  SWIG_check_num_args("glm::cubic",5,5) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::cubic",1,"glm::vec2 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::cubic",2,"glm::vec2 const &");
  if(!lua_isuserdata(L,3)) SWIG_fail_arg("glm::cubic",3,"glm::vec2 const &");
  if(!lua_isuserdata(L,4)) SWIG_fail_arg("glm::cubic",4,"glm::vec2 const &");
  if(!lua_isnumber(L,5)) SWIG_fail_arg("glm::cubic",5,"float const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("cubic",1,SWIGTYPE_p_glm__vec2); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("cubic",2,SWIGTYPE_p_glm__vec2); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("cubic",3,SWIGTYPE_p_glm__vec2); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("cubic",4,SWIGTYPE_p_glm__vec2); } 
  temp5=(float)lua_tonumber(L,5); arg5=&temp5;
  result = glm::cubic((glm::vec2 const &)*arg1,(glm::vec2 const &)*arg2,(glm::vec2 const &)*arg3,(glm::vec2 const &)*arg4,(float const &)*arg5);
  { glm::vec2 * resultptr = new glm::vec2((const glm::vec2 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec2,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_cubic__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 *arg2 = 0 ;
  glm::vec3 *arg3 = 0 ; glm::vec3 *arg4 = 0 ; float *arg5 = 0 ; float temp5 ; glm::vec3 result;
  SWIG_check_num_args("glm::cubic",5,5) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::cubic",1,"glm::vec3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::cubic",2,"glm::vec3 const &");
  if(!lua_isuserdata(L,3)) SWIG_fail_arg("glm::cubic",3,"glm::vec3 const &");
  if(!lua_isuserdata(L,4)) SWIG_fail_arg("glm::cubic",4,"glm::vec3 const &");
  if(!lua_isnumber(L,5)) SWIG_fail_arg("glm::cubic",5,"float const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("cubic",1,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("cubic",2,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("cubic",3,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("cubic",4,SWIGTYPE_p_glm__vec3); } 
  temp5=(float)lua_tonumber(L,5); arg5=&temp5;
  result = glm::cubic((glm::vec3 const &)*arg1,(glm::vec3 const &)*arg2,(glm::vec3 const &)*arg3,(glm::vec3 const &)*arg4,(float const &)*arg5);
  { glm::vec3 * resultptr = new glm::vec3((const glm::vec3 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__vec3,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_cubic(lua_State* L) { int argc; int argv[6]={ 1,2,3,4,5,6} ; argc = lua_gettop(L); if (argc == 5) { int _v = 0;
    { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; { { void *ptr;
        if (lua_isuserdata(L,argv[2])==0 || SWIG_ConvertPtr(L,argv[2], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; { { void *ptr;
        if (lua_isuserdata(L,argv[3])==0 || SWIG_ConvertPtr(L,argv[3], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; return _wrap_cubic__SWIG_0(L);}  check_1: if (argc == 5) {
    return _wrap_cubic__SWIG_1(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'cubic'\n"
  "  Possible C/C++ prototypes are:\n"
  "    glm::cubic(glm::vec2 const &,glm::vec2 const &,glm::vec2 const &,glm::vec2 const &,float const &)\n"
  "    glm::cubic(glm::vec3 const &,glm::vec3 const &,glm::vec3 const &,glm::vec3 const &,float const &)\n");
  lua_error(L);return 0; }
static int _wrap_translate__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::mat4 result;
  SWIG_check_num_args("glm::translate",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::translate",1,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("translate",1,SWIGTYPE_p_glm__vec3); }  result = glm::translate((glm::vec3 const &)*arg1); {
    glm::mat4 * resultptr = new glm::mat4((const glm::mat4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_translate(lua_State* L) { int argc; int argv[3]={ 1,2,3} ; argc = lua_gettop(L); if (argc == 1) {
    return _wrap_translate__SWIG_1(L);}  if (argc == 2) { return _wrap_translate__SWIG_0(L);} 
  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'translate'\n" "  Possible C/C++ prototypes are:\n"
  "    glm::translate(glm::mat4 const &,glm::vec3 const &)\n" "    glm::translate(glm::vec3 const &)\n");
  lua_error(L);return 0; }
static int _wrap_rotate__SWIG_5(lua_State* L) { int SWIG_arg = 0; float arg1 ; glm::vec3 *arg2 = 0 ; glm::mat4 result;
  SWIG_check_num_args("glm::rotate",2,2) if(!lua_isnumber(L,1)) SWIG_fail_arg("glm::rotate",1,"float");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::rotate",2,"glm::vec3 const &"); arg1 = (float)lua_tonumber(L, 1);
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("rotate",2,SWIGTYPE_p_glm__vec3); } 
  result = glm::rotate(arg1,(glm::vec3 const &)*arg2); { glm::mat4 * resultptr = new glm::mat4((const glm::mat4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_rotate(lua_State* L) { int argc; int argv[4]={ 1,2,3,4} ; argc = lua_gettop(L); if (argc == 2) { int _v = 0; {
      { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_1; { { _v = lua_isnumber(L,argv[1]); } }  if (!_v) goto check_1;
    return _wrap_rotate__SWIG_2(L);}  check_1: if (argc == 2) { return _wrap_rotate__SWIG_5(L);}  if (argc == 3) { int _v = 0; {
      { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__quat, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_rotate__SWIG_0(L);}  check_3: if (argc == 3) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_4; return _wrap_rotate__SWIG_3(L);}  check_4: if (argc == 3) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec4, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_5; return _wrap_rotate__SWIG_4(L);}  check_5: if (argc == 3) {
    return _wrap_rotate__SWIG_1(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'rotate'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::rotate(glm::quat const &,float const &,glm::vec3 const &)\n"
  "    glm::rotate(glm::mat4 const &,float const &,glm::vec3 const &)\n" "    glm::rotate(glm::vec2 const &,float const &)\n"
  "    glm::rotate(glm::vec3 const &,float const &,glm::vec3 const &)\n"
  "    glm::rotate(glm::vec4 const &,float const &,glm::vec3 const &)\n" "    glm::rotate(float,glm::vec3 const &)\n");
  lua_error(L);return 0; }
static int _wrap_scale__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::mat4 result;
  SWIG_check_num_args("glm::scale",1,1) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::scale",1,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("scale",1,SWIGTYPE_p_glm__vec3); } 
  result = glm::scale((glm::vec3 const &)*arg1); { glm::mat4 * resultptr = new glm::mat4((const glm::mat4 &) result);
    SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_glm__mat4,1); SWIG_arg++; }  return SWIG_arg; if(0) SWIG_fail; fail:
  lua_error(L); return SWIG_arg; }
static int _wrap_scale(lua_State* L) { int argc; int argv[3]={ 1,2,3} ; argc = lua_gettop(L); if (argc == 1) {
    return _wrap_scale__SWIG_1(L);}  if (argc == 2) { return _wrap_scale__SWIG_0(L);} 
  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'scale'\n" "  Possible C/C++ prototypes are:\n"
  "    glm::scale(glm::mat4 const &,glm::vec3 const &)\n" "    glm::scale(glm::vec3 const &)\n"); lua_error(L);return 0; }
static int _wrap_angle__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 *arg2 = 0 ; float result;
  SWIG_check_num_args("glm::angle",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::angle",1,"glm::vec2 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::angle",2,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("angle",1,SWIGTYPE_p_glm__vec2); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec2,0))){ SWIG_fail_ptr("angle",2,SWIGTYPE_p_glm__vec2); } 
  result = (float)glm::angle((glm::vec2 const &)*arg1,(glm::vec2 const &)*arg2);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_angle__SWIG_2(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 *arg2 = 0 ; float result;
  SWIG_check_num_args("glm::angle",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::angle",1,"glm::vec3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::angle",2,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("angle",1,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){ SWIG_fail_ptr("angle",2,SWIGTYPE_p_glm__vec3); } 
  result = (float)glm::angle((glm::vec3 const &)*arg1,(glm::vec3 const &)*arg2);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_angle__SWIG_3(lua_State* L) { int SWIG_arg = 0; glm::vec4 *arg1 = 0 ; glm::vec4 *arg2 = 0 ; float result;
  SWIG_check_num_args("glm::angle",2,2) if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::angle",1,"glm::vec4 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::angle",2,"glm::vec4 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("angle",1,SWIGTYPE_p_glm__vec4); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec4,0))){ SWIG_fail_ptr("angle",2,SWIGTYPE_p_glm__vec4); } 
  result = (float)glm::angle((glm::vec4 const &)*arg1,(glm::vec4 const &)*arg2);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_angle(lua_State* L) { int argc; int argv[3]={ 1,2,3} ; argc = lua_gettop(L); if (argc == 1) {
    return _wrap_angle__SWIG_0(L);}  if (argc == 2) { int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec2, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_2; return _wrap_angle__SWIG_1(L);}  check_2: if (argc == 2) {
    int _v = 0; { { void *ptr;
        if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; { { void *ptr;
        if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_glm__vec3, SWIG_POINTER_NO_NULL)) {
          _v = 0; }  else { _v = 1; }  } }  if (!_v) goto check_3; return _wrap_angle__SWIG_2(L);}  check_3: if (argc == 2) {
    return _wrap_angle__SWIG_3(L);}  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'angle'\n"
  "  Possible C/C++ prototypes are:\n" "    glm::angle(glm::quat const &)\n"
  "    glm::angle(glm::vec2 const &,glm::vec2 const &)\n" "    glm::angle(glm::vec3 const &,glm::vec3 const &)\n"
  "    glm::angle(glm::vec4 const &,glm::vec4 const &)\n"); lua_error(L);return 0; }
static int _wrap_orientedAngle__SWIG_0(lua_State* L) { int SWIG_arg = 0; glm::vec2 *arg1 = 0 ; glm::vec2 *arg2 = 0 ;
  float result; SWIG_check_num_args("glm::orientedAngle",2,2)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::orientedAngle",1,"glm::vec2 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::orientedAngle",2,"glm::vec2 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec2,0))){
    SWIG_fail_ptr("orientedAngle",1,SWIGTYPE_p_glm__vec2); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec2,0))){
    SWIG_fail_ptr("orientedAngle",2,SWIGTYPE_p_glm__vec2); } 
  result = (float)glm::orientedAngle((glm::vec2 const &)*arg1,(glm::vec2 const &)*arg2);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_orientedAngle__SWIG_1(lua_State* L) { int SWIG_arg = 0; glm::vec3 *arg1 = 0 ; glm::vec3 *arg2 = 0 ;
  glm::vec3 *arg3 = 0 ; float result; SWIG_check_num_args("glm::orientedAngle",3,3)
  if(!lua_isuserdata(L,1)) SWIG_fail_arg("glm::orientedAngle",1,"glm::vec3 const &");
  if(!lua_isuserdata(L,2)) SWIG_fail_arg("glm::orientedAngle",2,"glm::vec3 const &");
  if(!lua_isuserdata(L,3)) SWIG_fail_arg("glm::orientedAngle",3,"glm::vec3 const &");
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("orientedAngle",1,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("orientedAngle",2,SWIGTYPE_p_glm__vec3); } 
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_glm__vec3,0))){
    SWIG_fail_ptr("orientedAngle",3,SWIGTYPE_p_glm__vec3); } 
  result = (float)glm::orientedAngle((glm::vec3 const &)*arg1,(glm::vec3 const &)*arg2,(glm::vec3 const &)*arg3);
  lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; }
static int _wrap_orientedAngle(lua_State* L) { int argc; int argv[4]={ 1,2,3,4} ; argc = lua_gettop(L); if (argc == 2) {
    return _wrap_orientedAngle__SWIG_0(L);}  if (argc == 3) { return _wrap_orientedAngle__SWIG_1(L);} 
  SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'orientedAngle'\n" "  Possible C/C++ prototypes are:\n"
  "    glm::orientedAngle(glm::vec2 const &,glm::vec2 const &)\n"
  "    glm::orientedAngle(glm::vec3 const &,glm::vec3 const &,glm::vec3 const &)\n"); lua_error(L);return 0; }
static swig_lua_attribute swig_SwigModule_attributes[] = {
    {0,0,0}
};
static swig_lua_const_info swig_SwigModule_constants[]= {
    {0,0,0,0,0,0}
};
static swig_lua_method swig_SwigModule_methods[]= {
    { "vec2_length", _wrap_vec2_length},
    { "vec3_length", _wrap_vec3_length},
    { "vec4_length", _wrap_vec4_length},
    { "mat3_length", _wrap_mat3_length},
    { "mat4_length", _wrap_mat4_length},
    { "sub", _wrap_sub},
    { "quat_length", _wrap_quat_length},
    { "add", _wrap_add},
    { "mul", _wrap_mul},
    { "div", _wrap_div},
    { "eq", _wrap_eq},
    { "conjugate", _wrap_conjugate},
    { "eulerAngles", _wrap_eulerAngles},
    { "roll", _wrap_roll},
    { "pitch", _wrap_pitch},
    { "yaw", _wrap_yaw},
    { "mat3_cast", _wrap_mat3_cast},
    { "mat4_cast", _wrap_mat4_cast},
    { "quat_cast", _wrap_quat_cast},
    { "axis", _wrap_axis},
    { "angleAxis", _wrap_angleAxis},
    { "epsilon", _wrap_epsilon},
    { "zero", _wrap_zero},
    { "one", _wrap_one},
    { "pi", _wrap_pi},
    { "root_pi", _wrap_root_pi},
    { "half_pi", _wrap_half_pi},
    { "quarter_pi", _wrap_quarter_pi},
    { "one_over_pi", _wrap_one_over_pi},
    { "two_over_pi", _wrap_two_over_pi},
    { "two_over_root_pi", _wrap_two_over_root_pi},
    { "one_over_root_two", _wrap_one_over_root_two},
    { "root_half_pi", _wrap_root_half_pi},
    { "root_two_pi", _wrap_root_two_pi},
    { "root_ln_four", _wrap_root_ln_four},
    { "e", _wrap_e},
    { "euler", _wrap_euler},
    { "root_two", _wrap_root_two},
    { "root_three", _wrap_root_three},
    { "root_five", _wrap_root_five},
    { "ln_two", _wrap_ln_two},
    { "ln_ten", _wrap_ln_ten},
    { "ln_ln_two", _wrap_ln_ln_two},
    { "third", _wrap_third},
    { "two_thirds", _wrap_two_thirds},
    { "golden_ratio", _wrap_golden_ratio},
    { "abs", _wrap_abs},
    { "sign", _wrap_sign},
    { "floor", _wrap_floor},
    { "trunc", _wrap_trunc},
    { "round", _wrap_round},
    { "roundEven", _wrap_roundEven},
    { "ceil", _wrap_ceil},
    { "fract", _wrap_fract},
    { "mod", _wrap_mod},
    { "modf", _wrap_modf},
    { "min", _wrap_min},
    { "max", _wrap_max},
    { "clamp", _wrap_clamp},
    { "mix", _wrap_mix},
    { "step", _wrap_step},
    { "smoothstep", _wrap_smoothstep},
    { "isnan", _wrap_isnan},
    { "isinf", _wrap_isinf},
    { "fma", _wrap_fma},
    { "pow", _wrap_pow},
    { "exp", _wrap_exp},
    { "log", _wrap_log},
    { "exp2", _wrap_exp2},
    { "log2", _wrap_log2},
    { "sqrt", _wrap_sqrt},
    { "inversesqrt", _wrap_inversesqrt},
    { "length", _wrap_length},
    { "distance", _wrap_distance},
    { "dot", _wrap_dot},
    { "cross", _wrap_cross},
    { "normalize", _wrap_normalize},
    { "faceforward", _wrap_faceforward},
    { "reflect", _wrap_reflect},
    { "refract", _wrap_refract},
    { "matrixCompMult", _wrap_matrixCompMult},
    { "outerProduct", _wrap_outerProduct},
    { "transpose", _wrap_transpose},
    { "determinant", _wrap_determinant},
    { "inverse", _wrap_inverse},
    { "radians", _wrap_radians},
    { "degrees", _wrap_degrees},
    { "sin", _wrap_sin},
    { "cos", _wrap_cos},
    { "tan", _wrap_tan},
    { "asin", _wrap_asin},
    { "acos", _wrap_acos},
    { "atan", _wrap_atan},
    { "sinh", _wrap_sinh},
    { "cosh", _wrap_cosh},
    { "tanh", _wrap_tanh},
    { "asinh", _wrap_asinh},
    { "acosh", _wrap_acosh},
    { "atanh", _wrap_atanh},
    { "epsilonEqual", _wrap_epsilonEqual},
    { "epsilonNotEqual", _wrap_epsilonNotEqual},
    { "row", _wrap_row},
    { "column", _wrap_column},
    { "affineInverse", _wrap_affineInverse},
    { "inverseTranspose", _wrap_inverseTranspose},
    { "lookAt", _wrap_lookAt},
    { "ortho", _wrap_ortho},
    { "frustum", _wrap_frustum},
    { "perspective", _wrap_perspective},
    { "perspectiveFov", _wrap_perspectiveFov},
    { "infinitePerspective", _wrap_infinitePerspective},
    { "tweakedInfinitePerspective", _wrap_tweakedInfinitePerspective},
    { "project", _wrap_project},
    { "unProject", _wrap_unProject},
    { "pickMatrix", _wrap_pickMatrix},
    { "lerp", _wrap_lerp},
    { "saturate", _wrap_saturate},
    { "atan2", _wrap_atan2},
    { "isfinite", _wrap_isfinite},
    { "fastSqrt", _wrap_fastSqrt},
    { "fastInverseSqrt", _wrap_fastInverseSqrt},
    { "fastLength", _wrap_fastLength},
    { "fastDistance", _wrap_fastDistance},
    { "fastNormalize", _wrap_fastNormalize},
    { "length2", _wrap_length2},
    { "distance2", _wrap_distance2},
    { "l1Norm", _wrap_l1Norm},
    { "l2Norm", _wrap_l2Norm},
    { "lxNorm", _wrap_lxNorm},
    { "perp", _wrap_perp},
    { "slerp", _wrap_slerp},
    { "rotateX", _wrap_rotateX},
    { "rotateY", _wrap_rotateY},
    { "rotateZ", _wrap_rotateZ},
    { "orientation", _wrap_orientation},
    { "catmullRom", _wrap_catmullRom},
    { "hermite", _wrap_hermite},
    { "cubic", _wrap_cubic},
    { "translate", _wrap_translate},
    { "rotate", _wrap_rotate},
    { "scale", _wrap_scale},
    { "angle", _wrap_angle},
    { "orientedAngle", _wrap_orientedAngle},
    {0,0}
};
static swig_lua_class* swig_SwigModule_classes[]= {
&_wrap_class_string,
&_wrap_class_vec2,
&_wrap_class_vec3,
&_wrap_class_vec4,
&_wrap_class_mat3,
&_wrap_class_mat4,
&_wrap_class_quat,
    0
};
static swig_lua_namespace* swig_SwigModule_namespaces[] = {
    0
};

static swig_lua_namespace swig_SwigModule = {
    "glm",
    swig_SwigModule_methods,
    swig_SwigModule_attributes,
    swig_SwigModule_constants,
    swig_SwigModule_classes,
    swig_SwigModule_namespaces
};
#ifdef __cplusplus
}
#endif

/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */

static swig_type_info _swigt__p_float = {"_p_float", "float *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_glm__mat3 = {"_p_glm__mat3", "glm::mat3 *", 0, 0, (void*)&_wrap_class_mat3, 0};
static swig_type_info _swigt__p_glm__mat4 = {"_p_glm__mat4", "glm::mat4 *", 0, 0, (void*)&_wrap_class_mat4, 0};
static swig_type_info _swigt__p_glm__quat = {"_p_glm__quat", "glm::quat *", 0, 0, (void*)&_wrap_class_quat, 0};
static swig_type_info _swigt__p_glm__vec2 = {"_p_glm__vec2", "glm::vec2 *", 0, 0, (void*)&_wrap_class_vec2, 0};
static swig_type_info _swigt__p_glm__vec3 = {"_p_glm__vec3", "glm::vec3 *", 0, 0, (void*)&_wrap_class_vec3, 0};
static swig_type_info _swigt__p_glm__vec4 = {"_p_glm__vec4", "glm::vec4 *", 0, 0, (void*)&_wrap_class_vec4, 0};
static swig_type_info _swigt__p_int = {"_p_int", "int *|glm::length_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__string = {"_p_std__string", "std::string *", 0, 0, (void*)&_wrap_class_string, 0};

static swig_type_info *swig_type_initial[] = {
  &_swigt__p_float,
  &_swigt__p_glm__mat3,
  &_swigt__p_glm__mat4,
  &_swigt__p_glm__quat,
  &_swigt__p_glm__vec2,
  &_swigt__p_glm__vec3,
  &_swigt__p_glm__vec4,
  &_swigt__p_int,
  &_swigt__p_std__string,
};

static swig_cast_info _swigc__p_float[] = {  {&_swigt__p_float, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_glm__mat3[] = {  {&_swigt__p_glm__mat3, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_glm__mat4[] = {  {&_swigt__p_glm__mat4, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_glm__quat[] = {  {&_swigt__p_glm__quat, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_glm__vec2[] = {  {&_swigt__p_glm__vec2, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_glm__vec3[] = {  {&_swigt__p_glm__vec3, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_glm__vec4[] = {  {&_swigt__p_glm__vec4, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_int[] = {  {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__string[] = {  {&_swigt__p_std__string, 0, 0, 0},{0, 0, 0, 0}};

static swig_cast_info *swig_cast_initial[] = {
  _swigc__p_float,
  _swigc__p_glm__mat3,
  _swigc__p_glm__mat4,
  _swigc__p_glm__quat,
  _swigc__p_glm__vec2,
  _swigc__p_glm__vec3,
  _swigc__p_glm__vec4,
  _swigc__p_int,
  _swigc__p_std__string,
};


/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */

/* -----------------------------------------------------------------------------
 * Type initialization:
 * This problem is tough by the requirement that no dynamic
 * memory is used. Also, since swig_type_info structures store pointers to
 * swig_cast_info structures and swig_cast_info structures store pointers back
 * to swig_type_info structures, we need some lookup code at initialization.
 * The idea is that swig generates all the structures that are needed.
 * The runtime then collects these partially filled structures.
 * The SWIG_InitializeModule function takes these initial arrays out of
 * swig_module, and does all the lookup, filling in the swig_module.types
 * array with the correct data and linking the correct swig_cast_info
 * structures together.
 *
 * The generated swig_type_info structures are assigned statically to an initial
 * array. We just loop through that array, and handle each type individually.
 * First we lookup if this type has been already loaded, and if so, use the
 * loaded structure instead of the generated one. Then we have to fill in the
 * cast linked list. The cast data is initially stored in something like a
 * two-dimensional array. Each row corresponds to a type (there are the same
 * number of rows as there are in the swig_type_initial array). Each entry in
 * a column is one of the swig_cast_info structures for that type.
 * The cast_initial array is actually an array of arrays, because each row has
 * a variable number of columns. So to actually build the cast linked list,
 * we find the array of casts associated with the type, and loop through it
 * adding the casts to the list. The one last trick we need to do is making
 * sure the type pointer in the swig_cast_info struct is correct.
 *
 * First off, we lookup the cast->type name to see if it is already loaded.
 * There are three cases to handle:
 *  1) If the cast->type has already been loaded AND the type we are adding
 *     casting info to has not been loaded (it is in this module), THEN we
 *     replace the cast->type pointer with the type pointer that has already
 *     been loaded.
 *  2) If BOTH types (the one we are adding casting info to, and the
 *     cast->type) are loaded, THEN the cast info has already been loaded by
 *     the previous module so we just ignore it.
 *  3) Finally, if cast->type has not already been loaded, then we add that
 *     swig_cast_info to the linked list (because the cast->type) pointer will
 *     be correct.
 * ----------------------------------------------------------------------------- */

#ifdef __cplusplus
extern "C" {
#if 0
} /* c-mode */
#endif
#endif

#if 0
#define SWIGRUNTIME_DEBUG
#endif


SWIGRUNTIME void
SWIG_InitializeModule(void *clientdata) {
  size_t i;
  swig_module_info *module_head, *iter;
  int init;

  /* check to see if the circular list has been setup, if not, set it up */
  if (swig_module.next==0) {
    /* Initialize the swig_module */
    swig_module.type_initial = swig_type_initial;
    swig_module.cast_initial = swig_cast_initial;
    swig_module.next = &swig_module;
    init = 1;
  } else {
    init = 0;
  }

  /* Try and load any already created modules */
  module_head = SWIG_GetModule(clientdata);
  if (!module_head) {
    /* This is the first module loaded for this interpreter */
    /* so set the swig module into the interpreter */
    SWIG_SetModule(clientdata, &swig_module);
  } else {
    /* the interpreter has loaded a SWIG module, but has it loaded this one? */
    iter=module_head;
    do {
      if (iter==&swig_module) {
        /* Our module is already in the list, so there's nothing more to do. */
        return;
      }
      iter=iter->next;
    } while (iter!= module_head);

    /* otherwise we must add our module into the list */
    swig_module.next = module_head->next;
    module_head->next = &swig_module;
  }

  /* When multiple interpreters are used, a module could have already been initialized in
     a different interpreter, but not yet have a pointer in this interpreter.
     In this case, we do not want to continue adding types... everything should be
     set up already */
  if (init == 0) return;

  /* Now work on filling in swig_module.types */
#ifdef SWIGRUNTIME_DEBUG
  printf("SWIG_InitializeModule: size %lu\n", (unsigned long)swig_module.size);
#endif
  for (i = 0; i < swig_module.size; ++i) {
    swig_type_info *type = 0;
    swig_type_info *ret;
    swig_cast_info *cast;

#ifdef SWIGRUNTIME_DEBUG
    printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
#endif

    /* if there is another module already loaded */
    if (swig_module.next != &swig_module) {
      type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
    }
    if (type) {
      /* Overwrite clientdata field */
#ifdef SWIGRUNTIME_DEBUG
      printf("SWIG_InitializeModule: found type %s\n", type->name);
#endif
      if (swig_module.type_initial[i]->clientdata) {
	type->clientdata = swig_module.type_initial[i]->clientdata;
#ifdef SWIGRUNTIME_DEBUG
      printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
#endif
      }
    } else {
      type = swig_module.type_initial[i];
    }

    /* Insert casting types */
    cast = swig_module.cast_initial[i];
    while (cast->type) {

      /* Don't need to add information already in the list */
      ret = 0;
#ifdef SWIGRUNTIME_DEBUG
      printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
#endif
      if (swig_module.next != &swig_module) {
        ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
#ifdef SWIGRUNTIME_DEBUG
	if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
#endif
      }
      if (ret) {
	if (type == swig_module.type_initial[i]) {
#ifdef SWIGRUNTIME_DEBUG
	  printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
#endif
	  cast->type = ret;
	  ret = 0;
	} else {
	  /* Check for casting already in the list */
	  swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
#ifdef SWIGRUNTIME_DEBUG
	  if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
#endif
	  if (!ocast) ret = 0;
	}
      }

      if (!ret) {
#ifdef SWIGRUNTIME_DEBUG
	printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
#endif
        if (type->cast) {
          type->cast->prev = cast;
          cast->next = type->cast;
        }
        type->cast = cast;
      }
      cast++;
    }
    /* Set entry in modules->types array equal to the type */
    swig_module.types[i] = type;
  }
  swig_module.types[i] = 0;

#ifdef SWIGRUNTIME_DEBUG
  printf("**** SWIG_InitializeModule: Cast List ******\n");
  for (i = 0; i < swig_module.size; ++i) {
    int j = 0;
    swig_cast_info *cast = swig_module.cast_initial[i];
    printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
    while (cast->type) {
      printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
      cast++;
      ++j;
    }
  printf("---- Total casts: %d\n",j);
  }
  printf("**** SWIG_InitializeModule: Cast List ******\n");
#endif
}

/* This function will propagate the clientdata field of type to
* any new swig_type_info structures that have been added into the list
* of equivalent types.  It is like calling
* SWIG_TypeClientData(type, clientdata) a second time.
*/
SWIGRUNTIME void
SWIG_PropagateClientData(void) {
  size_t i;
  swig_cast_info *equiv;
  static int init_run = 0;

  if (init_run) return;
  init_run = 1;

  for (i = 0; i < swig_module.size; i++) {
    if (swig_module.types[i]->clientdata) {
      equiv = swig_module.types[i]->cast;
      while (equiv) {
        if (!equiv->converter) {
          if (equiv->type && !equiv->type->clientdata)
            SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
        }
        equiv = equiv->next;
      }
    }
  }
}

#ifdef __cplusplus
#if 0
{ /* c-mode */
#endif
}
#endif



/* Forward declaration of where the user's %init{} gets inserted */
void SWIG_init_user(lua_State* L );
    
#ifdef __cplusplus
extern "C" {
#endif
/* this is the initialization function
  added at the very end of the code
  the function is always called SWIG_init, but an earlier #define will rename it
*/
#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC))
LUALIB_API int SWIG_init(lua_State* L)
#else
SWIGEXPORT int SWIG_init(lua_State* L) /* default Lua action */
#endif
{
#if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC) /* valid for both Lua and eLua */
  int i;
  int globalRegister = 0;
  /* start with global table */
  lua_pushglobaltable (L);
  /* SWIG's internal initialisation */
  SWIG_InitializeModule((void*)L);
  SWIG_PropagateClientData();
#endif

#if ((SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUA) && (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)) || defined(SWIG_LUA_ELUA_EMULATE)
  /* add a global fn */
  SWIG_Lua_add_function(L,"swig_type",SWIG_Lua_type);
  SWIG_Lua_add_function(L,"swig_equals",SWIG_Lua_class_equal);
#endif

#if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)
  /* set up base class pointers (the hierarchy) */
  for (i = 0; swig_types[i]; i++){
    if (swig_types[i]->clientdata){
      SWIG_Lua_init_base_class(L,(swig_lua_class*)(swig_types[i]->clientdata));
    }
  }
#ifdef SWIG_LUA_MODULE_GLOBAL
  globalRegister = 1;
#endif


#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA)
  SWIG_Lua_namespace_register(L,&swig_SwigModule, globalRegister);
#endif

#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)
  for (i = 0; swig_types[i]; i++){
    if (swig_types[i]->clientdata){
      SWIG_Lua_elua_class_register_instance(L,(swig_lua_class*)(swig_types[i]->clientdata));
    }
  }
#endif

#if defined(SWIG_LUA_ELUA_EMULATE)
  lua_newtable(L);
  SWIG_Lua_elua_emulate_register(L,swig_SwigModule.ns_methods);
  SWIG_Lua_elua_emulate_register_clear(L);
  if(globalRegister) {
    lua_pushstring(L,swig_SwigModule.name);
    lua_pushvalue(L,-2);
    lua_rawset(L,-4);
  }
#endif

#endif

#if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)
  /* invoke user-specific initialization */
  SWIG_init_user(L);
  /* end module */
  /* Note: We do not clean up the stack here (Lua will do this for us). At this
     point, we have the globals table and out module table on the stack. Returning
     one value makes the module table the result of the require command. */
  return 1;
#else
  return 0;
#endif
}

#ifdef __cplusplus
}
#endif


const char* SWIG_LUACODE=
  "";

void SWIG_init_user(lua_State* L)
{
  /* exec Lua code if applicable */
  SWIG_Lua_dostring(L,SWIG_LUACODE);
}

