Points&Forces (core)
Software tools facilitating the task of surveying architecture
a_mat_libTCL8_wrap.cxx
Go to the documentation of this file.
1 /* ----------------------------------------------------------------------------
2  * This file was automatically generated by SWIG (http://www.swig.org).
3  * Version 4.0.2
4  *
5  * This file is not intended to be easily readable and contains a number of
6  * coding conventions designed to improve portability and efficiency. Do not make
7  * changes to this file unless you know what you are doing--modify the SWIG
8  * interface file instead.
9  * ----------------------------------------------------------------------------- */
10 
11 
12 #ifndef SWIGTCL
13 #define SWIGTCL
14 #endif
15 
16 
17 #ifdef __cplusplus
18 /* SwigValueWrapper is described in swig.swg */
19 template<typename T> class SwigValueWrapper {
20  struct SwigMovePointer {
21  T *ptr;
22  SwigMovePointer(T *p) : ptr(p) { }
23  ~SwigMovePointer() { delete ptr; }
24  SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
25  } pointer;
26  SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27  SwigValueWrapper(const SwigValueWrapper<T>& rhs);
28 public:
29  SwigValueWrapper() : pointer(0) { }
30  SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; }
31  operator T&() const { return *pointer.ptr; }
32  T *operator&() { return pointer.ptr; }
33 };
34 
35 template <typename T> T SwigValueInit() {
36  return T();
37 }
38 #endif
39 
40 /* -----------------------------------------------------------------------------
41  * This section contains generic SWIG labels for method/variable
42  * declarations/attributes, and other compiler dependent labels.
43  * ----------------------------------------------------------------------------- */
44 
45 /* template workaround for compilers that cannot correctly implement the C++ standard */
46 #ifndef SWIGTEMPLATEDISAMBIGUATOR
47 # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
48 # define SWIGTEMPLATEDISAMBIGUATOR template
49 # elif defined(__HP_aCC)
50 /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
51 /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
52 # define SWIGTEMPLATEDISAMBIGUATOR template
53 # else
54 # define SWIGTEMPLATEDISAMBIGUATOR
55 # endif
56 #endif
57 
58 /* inline attribute */
59 #ifndef SWIGINLINE
60 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
61 # define SWIGINLINE inline
62 # else
63 # define SWIGINLINE
64 # endif
65 #endif
66 
67 /* attribute recognised by some compilers to avoid 'unused' warnings */
68 #ifndef SWIGUNUSED
69 # if defined(__GNUC__)
70 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
71 # define SWIGUNUSED __attribute__ ((__unused__))
72 # else
73 # define SWIGUNUSED
74 # endif
75 # elif defined(__ICC)
76 # define SWIGUNUSED __attribute__ ((__unused__))
77 # else
78 # define SWIGUNUSED
79 # endif
80 #endif
81 
82 #ifndef SWIG_MSC_UNSUPPRESS_4505
83 # if defined(_MSC_VER)
84 # pragma warning(disable : 4505) /* unreferenced local function has been removed */
85 # endif
86 #endif
87 
88 #ifndef SWIGUNUSEDPARM
89 # ifdef __cplusplus
90 # define SWIGUNUSEDPARM(p)
91 # else
92 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
93 # endif
94 #endif
95 
96 /* internal SWIG method */
97 #ifndef SWIGINTERN
98 # define SWIGINTERN static SWIGUNUSED
99 #endif
100 
101 /* internal inline SWIG method */
102 #ifndef SWIGINTERNINLINE
103 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
104 #endif
105 
106 /* exporting methods */
107 #if defined(__GNUC__)
108 # if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
109 # ifndef GCC_HASCLASSVISIBILITY
110 # define GCC_HASCLASSVISIBILITY
111 # endif
112 # endif
113 #endif
114 
115 #ifndef SWIGEXPORT
116 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
117 # if defined(STATIC_LINKED)
118 # define SWIGEXPORT
119 # else
120 # define SWIGEXPORT __declspec(dllexport)
121 # endif
122 # else
123 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
124 # define SWIGEXPORT __attribute__ ((visibility("default")))
125 # else
126 # define SWIGEXPORT
127 # endif
128 # endif
129 #endif
130 
131 /* calling conventions for Windows */
132 #ifndef SWIGSTDCALL
133 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
134 # define SWIGSTDCALL __stdcall
135 # else
136 # define SWIGSTDCALL
137 # endif
138 #endif
139 
140 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
141 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
142 # define _CRT_SECURE_NO_DEPRECATE
143 #endif
144 
145 /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
146 #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
147 # define _SCL_SECURE_NO_DEPRECATE
148 #endif
149 
150 /* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
151 #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
152 # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
153 #endif
154 
155 /* Intel's compiler complains if a variable which was never initialised is
156  * cast to void, which is a common idiom which we use to indicate that we
157  * are aware a variable isn't used. So we just silence that warning.
158  * See: https://github.com/swig/swig/issues/192 for more discussion.
159  */
160 #ifdef __INTEL_COMPILER
161 # pragma warning disable 592
162 #endif
163 
164 
165 #include <stdio.h>
166 #include <tcl.h>
167 #include <errno.h>
168 #include <stdlib.h>
169 #include <stdarg.h>
170 #include <ctype.h>
171 
172 /* -----------------------------------------------------------------------------
173  * swigrun.swg
174  *
175  * This file contains generic C API SWIG runtime support for pointer
176  * type checking.
177  * ----------------------------------------------------------------------------- */
178 
179 /* This should only be incremented when either the layout of swig_type_info changes,
180  or for whatever reason, the runtime changes incompatibly */
181 #define SWIG_RUNTIME_VERSION "4"
182 
183 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
184 #ifdef SWIG_TYPE_TABLE
185 # define SWIG_QUOTE_STRING(x) #x
186 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
187 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
188 #else
189 # define SWIG_TYPE_TABLE_NAME
190 #endif
191 
192 /*
193  You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
194  creating a static or dynamic library from the SWIG runtime code.
195  In 99.9% of the cases, SWIG just needs to declare them as 'static'.
196 
197  But only do this if strictly necessary, ie, if you have problems
198  with your compiler or suchlike.
199 */
200 
201 #ifndef SWIGRUNTIME
202 # define SWIGRUNTIME SWIGINTERN
203 #endif
204 
205 #ifndef SWIGRUNTIMEINLINE
206 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
207 #endif
208 
209 /* Generic buffer size */
210 #ifndef SWIG_BUFFER_SIZE
211 # define SWIG_BUFFER_SIZE 1024
212 #endif
213 
214 /* Flags for pointer conversions */
215 #define SWIG_POINTER_DISOWN 0x1
216 #define SWIG_CAST_NEW_MEMORY 0x2
217 #define SWIG_POINTER_NO_NULL 0x4
218 
219 /* Flags for new pointer objects */
220 #define SWIG_POINTER_OWN 0x1
221 
222 
223 /*
224  Flags/methods for returning states.
225 
226  The SWIG conversion methods, as ConvertPtr, return an integer
227  that tells if the conversion was successful or not. And if not,
228  an error code can be returned (see swigerrors.swg for the codes).
229 
230  Use the following macros/flags to set or process the returning
231  states.
232 
233  In old versions of SWIG, code such as the following was usually written:
234 
235  if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
236  // success code
237  } else {
238  //fail code
239  }
240 
241  Now you can be more explicit:
242 
243  int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
244  if (SWIG_IsOK(res)) {
245  // success code
246  } else {
247  // fail code
248  }
249 
250  which is the same really, but now you can also do
251 
252  Type *ptr;
253  int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
254  if (SWIG_IsOK(res)) {
255  // success code
256  if (SWIG_IsNewObj(res) {
257  ...
258  delete *ptr;
259  } else {
260  ...
261  }
262  } else {
263  // fail code
264  }
265 
266  I.e., now SWIG_ConvertPtr can return new objects and you can
267  identify the case and take care of the deallocation. Of course that
268  also requires SWIG_ConvertPtr to return new result values, such as
269 
270  int SWIG_ConvertPtr(obj, ptr,...) {
271  if (<obj is ok>) {
272  if (<need new object>) {
273  *ptr = <ptr to new allocated object>;
274  return SWIG_NEWOBJ;
275  } else {
276  *ptr = <ptr to old object>;
277  return SWIG_OLDOBJ;
278  }
279  } else {
280  return SWIG_BADOBJ;
281  }
282  }
283 
284  Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
285  more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
286  SWIG errors code.
287 
288  Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
289  allows to return the 'cast rank', for example, if you have this
290 
291  int food(double)
292  int fooi(int);
293 
294  and you call
295 
296  food(1) // cast rank '1' (1 -> 1.0)
297  fooi(1) // cast rank '0'
298 
299  just use the SWIG_AddCast()/SWIG_CheckState()
300 */
301 
302 #define SWIG_OK (0)
303 #define SWIG_ERROR (-1)
304 #define SWIG_IsOK(r) (r >= 0)
305 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
306 
307 /* The CastRankLimit says how many bits are used for the cast rank */
308 #define SWIG_CASTRANKLIMIT (1 << 8)
309 /* The NewMask denotes the object was created (using new/malloc) */
310 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
311 /* The TmpMask is for in/out typemaps that use temporal objects */
312 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
313 /* Simple returning values */
314 #define SWIG_BADOBJ (SWIG_ERROR)
315 #define SWIG_OLDOBJ (SWIG_OK)
316 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
317 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
318 /* Check, add and del mask methods */
319 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
320 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
321 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
322 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
323 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
324 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
325 
326 /* Cast-Rank Mode */
327 #if defined(SWIG_CASTRANK_MODE)
328 # ifndef SWIG_TypeRank
329 # define SWIG_TypeRank unsigned long
330 # endif
331 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
332 # define SWIG_MAXCASTRANK (2)
333 # endif
334 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
335 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
336 SWIGINTERNINLINE int SWIG_AddCast(int r) {
337  return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
338 }
340  return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
341 }
342 #else /* no cast-rank mode */
343 # define SWIG_AddCast(r) (r)
344 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
345 #endif
346 
347 
348 #include <string.h>
349 
350 #ifdef __cplusplus
351 extern "C" {
352 #endif
353 
354 typedef void *(*swig_converter_func)(void *, int *);
355 typedef struct swig_type_info *(*swig_dycast_func)(void **);
356 
357 /* Structure to store information on one type */
358 typedef struct swig_type_info {
359  const char *name; /* mangled name of this type */
360  const char *str; /* human readable name of this type */
361  swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
362  struct swig_cast_info *cast; /* linked list of types that can cast into this type */
363  void *clientdata; /* language specific type data */
364  int owndata; /* flag if the structure owns the clientdata */
366 
367 /* Structure to store a type and conversion function used for casting */
368 typedef struct swig_cast_info {
369  swig_type_info *type; /* pointer to type that is equivalent to this type */
370  swig_converter_func converter; /* function to cast the void pointers */
371  struct swig_cast_info *next; /* pointer to next cast in linked list */
372  struct swig_cast_info *prev; /* pointer to the previous cast */
374 
375 /* Structure used to store module information
376  * Each module generates one structure like this, and the runtime collects
377  * all of these structures and stores them in a circularly linked list.*/
378 typedef struct swig_module_info {
379  swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
380  size_t size; /* Number of types in this module */
381  struct swig_module_info *next; /* Pointer to next element in circularly linked list */
382  swig_type_info **type_initial; /* Array of initially generated type structures */
383  swig_cast_info **cast_initial; /* Array of initially generated casting structures */
384  void *clientdata; /* Language specific module data */
386 
387 /*
388  Compare two type names skipping the space characters, therefore
389  "char*" == "char *" and "Class<int>" == "Class<int >", etc.
390 
391  Return 0 when the two name types are equivalent, as in
392  strncmp, but skipping ' '.
393 */
394 SWIGRUNTIME int
395 SWIG_TypeNameComp(const char *f1, const char *l1,
396  const char *f2, const char *l2) {
397  for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
398  while ((*f1 == ' ') && (f1 != l1)) ++f1;
399  while ((*f2 == ' ') && (f2 != l2)) ++f2;
400  if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
401  }
402  return (int)((l1 - f1) - (l2 - f2));
403 }
404 
405 /*
406  Check type equivalence in a name list like <name1>|<name2>|...
407  Return 0 if equal, -1 if nb < tb, 1 if nb > tb
408 */
409 SWIGRUNTIME int
410 SWIG_TypeCmp(const char *nb, const char *tb) {
411  int equiv = 1;
412  const char* te = tb + strlen(tb);
413  const char* ne = nb;
414  while (equiv != 0 && *ne) {
415  for (nb = ne; *ne; ++ne) {
416  if (*ne == '|') break;
417  }
418  equiv = SWIG_TypeNameComp(nb, ne, tb, te);
419  if (*ne) ++ne;
420  }
421  return equiv;
422 }
423 
424 /*
425  Check type equivalence in a name list like <name1>|<name2>|...
426  Return 0 if not equal, 1 if equal
427 */
428 SWIGRUNTIME int
429 SWIG_TypeEquiv(const char *nb, const char *tb) {
430  return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0;
431 }
432 
433 /*
434  Check the typename
435 */
437 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
438  if (ty) {
439  swig_cast_info *iter = ty->cast;
440  while (iter) {
441  if (strcmp(iter->type->name, c) == 0) {
442  if (iter == ty->cast)
443  return iter;
444  /* Move iter to the top of the linked list */
445  iter->prev->next = iter->next;
446  if (iter->next)
447  iter->next->prev = iter->prev;
448  iter->next = ty->cast;
449  iter->prev = 0;
450  if (ty->cast) ty->cast->prev = iter;
451  ty->cast = iter;
452  return iter;
453  }
454  iter = iter->next;
455  }
456  }
457  return 0;
458 }
459 
460 /*
461  Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
462 */
465  if (ty) {
466  swig_cast_info *iter = ty->cast;
467  while (iter) {
468  if (iter->type == from) {
469  if (iter == ty->cast)
470  return iter;
471  /* Move iter to the top of the linked list */
472  iter->prev->next = iter->next;
473  if (iter->next)
474  iter->next->prev = iter->prev;
475  iter->next = ty->cast;
476  iter->prev = 0;
477  if (ty->cast) ty->cast->prev = iter;
478  ty->cast = iter;
479  return iter;
480  }
481  iter = iter->next;
482  }
483  }
484  return 0;
485 }
486 
487 /*
488  Cast a pointer up an inheritance hierarchy
489 */
490 SWIGRUNTIMEINLINE void *
491 SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
492  return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
493 }
494 
495 /*
496  Dynamic pointer casting. Down an inheritance hierarchy
497 */
500  swig_type_info *lastty = ty;
501  if (!ty || !ty->dcast) return ty;
502  while (ty && (ty->dcast)) {
503  ty = (*ty->dcast)(ptr);
504  if (ty) lastty = ty;
505  }
506  return lastty;
507 }
508 
509 /*
510  Return the name associated with this type
511 */
512 SWIGRUNTIMEINLINE const char *
514  return ty->name;
515 }
516 
517 /*
518  Return the pretty name associated with this type,
519  that is an unmangled type name in a form presentable to the user.
520 */
521 SWIGRUNTIME const char *
523  /* The "str" field contains the equivalent pretty names of the
524  type, separated by vertical-bar characters. We choose
525  to print the last name, as it is often (?) the most
526  specific. */
527  if (!type) return NULL;
528  if (type->str != NULL) {
529  const char *last_name = type->str;
530  const char *s;
531  for (s = type->str; *s; s++)
532  if (*s == '|') last_name = s+1;
533  return last_name;
534  }
535  else
536  return type->name;
537 }
538 
539 /*
540  Set the clientdata field for a type
541 */
542 SWIGRUNTIME void
544  swig_cast_info *cast = ti->cast;
545  /* if (ti->clientdata == clientdata) return; */
546  ti->clientdata = clientdata;
547 
548  while (cast) {
549  if (!cast->converter) {
550  swig_type_info *tc = cast->type;
551  if (!tc->clientdata) {
553  }
554  }
555  cast = cast->next;
556  }
557 }
558 SWIGRUNTIME void
561  ti->owndata = 1;
562 }
563 
564 /*
565  Search for a swig_type_info structure only by mangled name
566  Search is a O(log #types)
567 
568  We start searching at module start, and finish searching when start == end.
569  Note: if start == end at the beginning of the function, we go all the way around
570  the circular list.
571 */
574  swig_module_info *end,
575  const char *name) {
576  swig_module_info *iter = start;
577  do {
578  if (iter->size) {
579  size_t l = 0;
580  size_t r = iter->size - 1;
581  do {
582  /* since l+r >= 0, we can (>> 1) instead (/ 2) */
583  size_t i = (l + r) >> 1;
584  const char *iname = iter->types[i]->name;
585  if (iname) {
586  int compare = strcmp(name, iname);
587  if (compare == 0) {
588  return iter->types[i];
589  } else if (compare < 0) {
590  if (i) {
591  r = i - 1;
592  } else {
593  break;
594  }
595  } else if (compare > 0) {
596  l = i + 1;
597  }
598  } else {
599  break; /* should never happen */
600  }
601  } while (l <= r);
602  }
603  iter = iter->next;
604  } while (iter != end);
605  return 0;
606 }
607 
608 /*
609  Search for a swig_type_info structure for either a mangled name or a human readable name.
610  It first searches the mangled names of the types, which is a O(log #types)
611  If a type is not found it then searches the human readable names, which is O(#types).
612 
613  We start searching at module start, and finish searching when start == end.
614  Note: if start == end at the beginning of the function, we go all the way around
615  the circular list.
616 */
619  swig_module_info *end,
620  const char *name) {
621  /* STEP 1: Search the name field using binary search */
622  swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
623  if (ret) {
624  return ret;
625  } else {
626  /* STEP 2: If the type hasn't been found, do a complete search
627  of the str field (the human readable name) */
628  swig_module_info *iter = start;
629  do {
630  size_t i = 0;
631  for (; i < iter->size; ++i) {
632  if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
633  return iter->types[i];
634  }
635  iter = iter->next;
636  } while (iter != end);
637  }
638 
639  /* neither found a match */
640  return 0;
641 }
642 
643 /*
644  Pack binary data into a string
645 */
646 SWIGRUNTIME char *
647 SWIG_PackData(char *c, void *ptr, size_t sz) {
648  static const char hex[17] = "0123456789abcdef";
649  const unsigned char *u = (unsigned char *) ptr;
650  const unsigned char *eu = u + sz;
651  for (; u != eu; ++u) {
652  unsigned char uu = *u;
653  *(c++) = hex[(uu & 0xf0) >> 4];
654  *(c++) = hex[uu & 0xf];
655  }
656  return c;
657 }
658 
659 /*
660  Unpack binary data from a string
661 */
662 SWIGRUNTIME const char *
663 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
664  unsigned char *u = (unsigned char *) ptr;
665  const unsigned char *eu = u + sz;
666  for (; u != eu; ++u) {
667  char d = *(c++);
668  unsigned char uu;
669  if ((d >= '0') && (d <= '9'))
670  uu = (unsigned char)((d - '0') << 4);
671  else if ((d >= 'a') && (d <= 'f'))
672  uu = (unsigned char)((d - ('a'-10)) << 4);
673  else
674  return (char *) 0;
675  d = *(c++);
676  if ((d >= '0') && (d <= '9'))
677  uu |= (unsigned char)(d - '0');
678  else if ((d >= 'a') && (d <= 'f'))
679  uu |= (unsigned char)(d - ('a'-10));
680  else
681  return (char *) 0;
682  *u = uu;
683  }
684  return c;
685 }
686 
687 /*
688  Pack 'void *' into a string buffer.
689 */
690 SWIGRUNTIME char *
691 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
692  char *r = buff;
693  if ((2*sizeof(void *) + 2) > bsz) return 0;
694  *(r++) = '_';
695  r = SWIG_PackData(r,&ptr,sizeof(void *));
696  if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
697  strcpy(r,name);
698  return buff;
699 }
700 
701 SWIGRUNTIME const char *
702 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
703  if (*c != '_') {
704  if (strcmp(c,"NULL") == 0) {
705  *ptr = (void *) 0;
706  return name;
707  } else {
708  return 0;
709  }
710  }
711  return SWIG_UnpackData(++c,ptr,sizeof(void *));
712 }
713 
714 SWIGRUNTIME char *
715 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
716  char *r = buff;
717  size_t lname = (name ? strlen(name) : 0);
718  if ((2*sz + 2 + lname) > bsz) return 0;
719  *(r++) = '_';
720  r = SWIG_PackData(r,ptr,sz);
721  if (lname) {
722  strncpy(r,name,lname+1);
723  } else {
724  *r = 0;
725  }
726  return buff;
727 }
728 
729 SWIGRUNTIME const char *
730 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
731  if (*c != '_') {
732  if (strcmp(c,"NULL") == 0) {
733  memset(ptr,0,sz);
734  return name;
735  } else {
736  return 0;
737  }
738  }
739  return SWIG_UnpackData(++c,ptr,sz);
740 }
741 
742 #ifdef __cplusplus
743 }
744 #endif
745 
746 /* Errors in SWIG */
747 #define SWIG_UnknownError -1
748 #define SWIG_IOError -2
749 #define SWIG_RuntimeError -3
750 #define SWIG_IndexError -4
751 #define SWIG_TypeError -5
752 #define SWIG_DivisionByZero -6
753 #define SWIG_OverflowError -7
754 #define SWIG_SyntaxError -8
755 #define SWIG_ValueError -9
756 #define SWIG_SystemError -10
757 #define SWIG_AttributeError -11
758 #define SWIG_MemoryError -12
759 #define SWIG_NullReferenceError -13
760 
761 
762 
763 /* -----------------------------------------------------------------------------
764  * error manipulation
765  * ----------------------------------------------------------------------------- */
766 
767 SWIGINTERN const char*
769  const char* type = 0;
770  switch(code) {
771  case SWIG_MemoryError:
772  type = "MemoryError";
773  break;
774  case SWIG_IOError:
775  type = "IOError";
776  break;
777  case SWIG_RuntimeError:
778  type = "RuntimeError";
779  break;
780  case SWIG_IndexError:
781  type = "IndexError";
782  break;
783  case SWIG_TypeError:
784  type = "TypeError";
785  break;
786  case SWIG_DivisionByZero:
787  type = "ZeroDivisionError";
788  break;
789  case SWIG_OverflowError:
790  type = "OverflowError";
791  break;
792  case SWIG_SyntaxError:
793  type = "SyntaxError";
794  break;
795  case SWIG_ValueError:
796  type = "ValueError";
797  break;
798  case SWIG_SystemError:
799  type = "SystemError";
800  break;
801  case SWIG_AttributeError:
802  type = "AttributeError";
803  break;
804  default:
805  type = "RuntimeError";
806  }
807  return type;
808 }
809 
810 
811 SWIGINTERN void
812 SWIG_Tcl_SetErrorObj(Tcl_Interp *interp, const char *ctype, Tcl_Obj *obj)
813 {
814  Tcl_ResetResult(interp);
815  Tcl_SetObjResult(interp, obj);
816  Tcl_SetErrorCode(interp, "SWIG", ctype, NULL);
817 }
818 
819 SWIGINTERN void
820 SWIG_Tcl_SetErrorMsg(Tcl_Interp *interp, const char *ctype, const char *mesg)
821 {
822  Tcl_ResetResult(interp);
823  Tcl_SetErrorCode(interp, "SWIG", ctype, NULL);
824  Tcl_AppendResult(interp, ctype, " ", mesg, NULL);
825  /*
826  Tcl_AddErrorInfo(interp, ctype);
827  Tcl_AddErrorInfo(interp, " ");
828  Tcl_AddErrorInfo(interp, mesg);
829  */
830 }
831 
832 SWIGINTERNINLINE void
833 SWIG_Tcl_AddErrorMsg(Tcl_Interp *interp, const char* mesg)
834 {
835  Tcl_AddErrorInfo(interp, mesg);
836 }
837 
838 
839 
840 /* -----------------------------------------------------------------------------
841  * SWIG API. Portion that goes into the runtime
842  * ----------------------------------------------------------------------------- */
843 #ifdef __cplusplus
844 extern "C" {
845 #endif
846 
847 /* -----------------------------------------------------------------------------
848  * Constant declarations
849  * ----------------------------------------------------------------------------- */
850 
851 /* Constant Types */
852 #define SWIG_TCL_POINTER 4
853 #define SWIG_TCL_BINARY 5
854 
855 /* Constant information structure */
856 typedef struct swig_const_info {
857  int type;
858  const char *name;
859  long lvalue;
860  double dvalue;
861  void *pvalue;
864 
865 typedef int (*swig_wrapper)(ClientData, Tcl_Interp *, int, Tcl_Obj *CONST []);
866 typedef int (*swig_wrapper_func)(ClientData, Tcl_Interp *, int, Tcl_Obj *CONST []);
867 typedef char *(*swig_variable_func)(ClientData, Tcl_Interp *, char *, char *, int);
868 typedef void (*swig_delete_func)(ClientData);
869 
870 typedef struct swig_method {
871  const char *name;
874 
875 typedef struct swig_attribute {
876  const char *name;
880 
881 typedef struct swig_class {
882  const char *name;
885  void (*destructor)(void *);
888  struct swig_class **bases;
889  const char **base_names;
891  Tcl_HashTable hashtable;
893 
894 typedef struct swig_instance {
895  Tcl_Obj *thisptr;
896  void *thisvalue;
898  int destroy;
899  Tcl_Command cmdtok;
901 
902 /* Structure for command table */
903 typedef struct {
904  const char *name;
905  int (*wrapper)(ClientData, Tcl_Interp *, int, Tcl_Obj *CONST []);
906  ClientData clientdata;
908 
909 /* Structure for variable linking table */
910 typedef struct {
911  const char *name;
912  void *addr;
913  char * (*get)(ClientData, Tcl_Interp *, char *, char *, int);
914  char * (*set)(ClientData, Tcl_Interp *, char *, char *, int);
915 } swig_var_info;
916 
917 
918 /* -----------------------------------------------------------------------------*
919  * Install a constant object
920  * -----------------------------------------------------------------------------*/
921 
922 static Tcl_HashTable swigconstTable;
923 static int swigconstTableinit = 0;
924 
925 SWIGINTERN void
926 SWIG_Tcl_SetConstantObj(Tcl_Interp *interp, const char* name, Tcl_Obj *obj) {
927  int newobj;
928  Tcl_ObjSetVar2(interp,Tcl_NewStringObj(name,-1), NULL, obj, TCL_GLOBAL_ONLY);
929  Tcl_SetHashValue(Tcl_CreateHashEntry(&swigconstTable, name, &newobj), (ClientData) obj);
930 }
931 
932 SWIGINTERN Tcl_Obj *
933 SWIG_Tcl_GetConstantObj(const char *key) {
934  Tcl_HashEntry *entryPtr;
935  if (!swigconstTableinit) return 0;
936  entryPtr = Tcl_FindHashEntry(&swigconstTable, key);
937  if (entryPtr) {
938  return (Tcl_Obj *) Tcl_GetHashValue(entryPtr);
939  }
940  return 0;
941 }
942 
943 #ifdef __cplusplus
944 }
945 #endif
946 
947 
948 
949 /* -----------------------------------------------------------------------------
950  * tclrun.swg
951  *
952  * This file contains the runtime support for Tcl modules and includes
953  * code for managing global variables and pointer type checking.
954  * ----------------------------------------------------------------------------- */
955 
956 /* Common SWIG API */
957 
958 /* for raw pointers */
959 #define SWIG_ConvertPtr(oc, ptr, ty, flags) SWIG_Tcl_ConvertPtr(interp, oc, ptr, ty, flags)
960 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Tcl_NewPointerObj(ptr, type, flags)
961 
962 /* for raw packed data */
963 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Tcl_ConvertPacked(interp, obj, ptr, sz, ty)
964 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Tcl_NewPackedObj(ptr, sz, type)
965 
966 /* for class or struct pointers */
967 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_Tcl_ConvertPtr(interp, obj, pptr, type, flags)
968 #define SWIG_NewInstanceObj(thisvalue, type, flags) SWIG_Tcl_NewInstanceObj(interp, thisvalue, type, flags)
969 
970 /* for C or C++ function pointers */
971 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Tcl_ConvertPtr(interp, obj, pptr, type, 0)
972 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Tcl_NewPointerObj(ptr, type, 0)
973 
974 /* for C++ member pointers, ie, member methods */
975 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Tcl_ConvertPacked(interp,obj, ptr, sz, ty)
976 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Tcl_NewPackedObj(ptr, sz, type)
977 
978 
979 /* Runtime API */
980 
981 #define SWIG_GetModule(clientdata) SWIG_Tcl_GetModule((Tcl_Interp *) (clientdata))
982 #define SWIG_SetModule(clientdata, pointer) SWIG_Tcl_SetModule((Tcl_Interp *) (clientdata), pointer)
983 
984 
985 /* Error manipulation */
986 
987 #define SWIG_ErrorType(code) SWIG_Tcl_ErrorType(code)
988 #define SWIG_Error(code, msg) SWIG_Tcl_SetErrorMsg(interp, SWIG_Tcl_ErrorType(code), msg)
989 #define SWIG_fail goto fail
990 
991 
992 /* Tcl-specific SWIG API */
993 
994 #define SWIG_Acquire(ptr) SWIG_Tcl_Acquire(ptr)
995 #define SWIG_MethodCommand SWIG_Tcl_MethodCommand
996 #define SWIG_Disown(ptr) SWIG_Tcl_Disown(ptr)
997 #define SWIG_ConvertPtrFromString(c, ptr, ty, flags) SWIG_Tcl_ConvertPtrFromString(interp, c, ptr, ty, flags)
998 #define SWIG_MakePtr(c, ptr, ty, flags) SWIG_Tcl_MakePtr(c, ptr, ty, flags)
999 #define SWIG_PointerTypeFromString(c) SWIG_Tcl_PointerTypeFromString(c)
1000 #define SWIG_GetArgs SWIG_Tcl_GetArgs
1001 #define SWIG_GetConstantObj(key) SWIG_Tcl_GetConstantObj(key)
1002 #define SWIG_ObjectConstructor SWIG_Tcl_ObjectConstructor
1003 #define SWIG_Thisown(ptr) SWIG_Tcl_Thisown(ptr)
1004 #define SWIG_ObjectDelete SWIG_Tcl_ObjectDelete
1005 
1006 
1007 #define SWIG_TCL_DECL_ARGS_2(arg1, arg2) (Tcl_Interp *interp SWIGUNUSED, arg1, arg2)
1008 #define SWIG_TCL_CALL_ARGS_2(arg1, arg2) (interp, arg1, arg2)
1009 /* -----------------------------------------------------------------------------
1010  * pointers/data manipulation
1011  * ----------------------------------------------------------------------------- */
1012 
1013 /* For backward compatibility only */
1014 #define SWIG_POINTER_EXCEPTION 0
1015 #define SWIG_GetConstant SWIG_GetConstantObj
1016 #define SWIG_Tcl_GetConstant SWIG_Tcl_GetConstantObj
1017 
1018 #if TCL_MAJOR_VERSION >= 8 && TCL_MINOR_VERSION >= 5
1019 #define SWIG_TCL_HASHTABLE_INIT {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
1020 #else
1021 #define SWIG_TCL_HASHTABLE_INIT {0}
1022 #endif
1023 
1024 #include "assert.h"
1025 
1026 #ifdef __cplusplus
1027 extern "C" {
1028 #endif
1029 
1030 /* Object support */
1031 
1032 SWIGRUNTIME Tcl_HashTable*
1034  static Tcl_HashTable swigobjectTable;
1035  static int swigobjectTableinit = 0;
1036  if (!swigobjectTableinit) {
1037  Tcl_InitHashTable(&swigobjectTable, TCL_ONE_WORD_KEYS);
1038  swigobjectTableinit = 1;
1039  }
1040  return &swigobjectTable;
1041 }
1042 
1043 /* Acquire ownership of a pointer */
1044 SWIGRUNTIME void
1045 SWIG_Tcl_Acquire(void *ptr) {
1046  int newobj;
1047  Tcl_CreateHashEntry(SWIG_Tcl_ObjectTable(), (char *) ptr, &newobj);
1048 }
1049 
1050 SWIGRUNTIME int
1051 SWIG_Tcl_Thisown(void *ptr) {
1052  if (Tcl_FindHashEntry(SWIG_Tcl_ObjectTable(), (char *) ptr)) {
1053  return 1;
1054  }
1055  return 0;
1056 }
1057 
1058 /* Disown a pointer. Returns 1 if we owned it to begin with */
1059 SWIGRUNTIME int
1060 SWIG_Tcl_Disown(void *ptr) {
1061  Tcl_HashEntry *entryPtr = Tcl_FindHashEntry(SWIG_Tcl_ObjectTable(), (char *) ptr);
1062  if (entryPtr) {
1063  Tcl_DeleteHashEntry(entryPtr);
1064  return 1;
1065  }
1066  return 0;
1067 }
1068 
1069 /* Convert a pointer value */
1070 SWIGRUNTIME int
1071 SWIG_Tcl_ConvertPtrFromString(Tcl_Interp *interp, const char *c, void **ptr, swig_type_info *ty, int flags) {
1072  swig_cast_info *tc;
1073  /* Pointer values must start with leading underscore */
1074  while (*c != '_') {
1075  *ptr = (void *) 0;
1076  if (strcmp(c,"NULL") == 0)
1078 
1079  /* Empty string: not a pointer */
1080  if (*c == 0) return SWIG_ERROR;
1081 
1082  /* Hmmm. It could be an object name. */
1083 
1084  /* Check if this is a command at all. Prevents <c> cget -this */
1085  /* from being called when c is not a command, firing the unknown proc */
1086  if (Tcl_VarEval(interp,"info commands ", c, (char *) NULL) == TCL_OK) {
1087  Tcl_Obj *result = Tcl_GetObjResult(interp);
1088  if (*(Tcl_GetStringFromObj(result, NULL)) == 0) {
1089  /* It's not a command, so it can't be a pointer */
1090  Tcl_ResetResult(interp);
1091  return SWIG_ERROR;
1092  }
1093  } else {
1094  /* This will only fail if the argument is multiple words. */
1095  /* Multiple words are also not commands. */
1096  Tcl_ResetResult(interp);
1097  return SWIG_ERROR;
1098  }
1099 
1100  /* Check if this is really a SWIG pointer */
1101  if (Tcl_VarEval(interp,c," cget -this", (char *) NULL) != TCL_OK) {
1102  Tcl_ResetResult(interp);
1103  return SWIG_ERROR;
1104  }
1105 
1106  c = Tcl_GetStringFromObj(Tcl_GetObjResult(interp), NULL);
1107  }
1108 
1109  c++;
1110  c = SWIG_UnpackData(c,ptr,sizeof(void *));
1111  if (ty) {
1112  tc = c ? SWIG_TypeCheck(c,ty) : 0;
1113  if (!tc) {
1114  return SWIG_ERROR;
1115  }
1116  if (flags & SWIG_POINTER_DISOWN) {
1117  SWIG_Disown((void *) *ptr);
1118  }
1119  {
1120  int newmemory = 0;
1121  *ptr = SWIG_TypeCast(tc,(void *) *ptr,&newmemory);
1122  assert(!newmemory); /* newmemory handling not yet implemented */
1123  }
1124  }
1125  return SWIG_OK;
1126 }
1127 
1128 /* Convert a pointer value */
1130 SWIG_Tcl_ConvertPtr(Tcl_Interp *interp, Tcl_Obj *oc, void **ptr, swig_type_info *ty, int flags) {
1131  return SWIG_Tcl_ConvertPtrFromString(interp, Tcl_GetStringFromObj(oc,NULL), ptr, ty, flags);
1132 }
1133 
1134 /* Convert a pointer value */
1135 SWIGRUNTIME char *
1137  char d;
1138  /* Pointer values must start with leading underscore. NULL has no type */
1139  if (*c != '_') {
1140  return 0;
1141  }
1142  c++;
1143  /* Extract hex value from pointer */
1144  while ((d = *c)) {
1145  if (!(((d >= '0') && (d <= '9')) || ((d >= 'a') && (d <= 'f')))) break;
1146  c++;
1147  }
1148  return c;
1149 }
1150 
1151 /* Convert a packed pointer value */
1152 SWIGRUNTIME int
1153 SWIG_Tcl_ConvertPacked(Tcl_Interp *SWIGUNUSEDPARM(interp) , Tcl_Obj *obj, void *ptr, int sz, swig_type_info *ty) {
1154  swig_cast_info *tc;
1155  const char *c;
1156 
1157  if (!obj) goto type_error;
1158  c = Tcl_GetStringFromObj(obj,NULL);
1159  /* Pointer values must start with leading underscore */
1160  if (*c != '_') goto type_error;
1161  c++;
1162  c = SWIG_UnpackData(c,ptr,sz);
1163  if (ty) {
1164  tc = SWIG_TypeCheck(c,ty);
1165  if (!tc) goto type_error;
1166  }
1167  return SWIG_OK;
1168 
1169  type_error:
1170 
1171  return SWIG_ERROR;
1172 }
1173 
1174 
1175 /* Take a pointer and convert it to a string */
1176 SWIGRUNTIME void
1177 SWIG_Tcl_MakePtr(char *c, void *ptr, swig_type_info *ty, int SWIGUNUSEDPARM(flags)) {
1178  if (ptr) {
1179  *(c++) = '_';
1180  c = SWIG_PackData(c,&ptr,sizeof(void *));
1181  strcpy(c,ty->name);
1182  } else {
1183  strcpy(c,"NULL");
1184  }
1185 }
1186 
1187 /* Create a new pointer object */
1188 SWIGRUNTIMEINLINE Tcl_Obj *
1189 SWIG_Tcl_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
1190  Tcl_Obj *robj;
1191  char result[SWIG_BUFFER_SIZE];
1192  SWIG_MakePtr(result,ptr,type,flags);
1193  robj = Tcl_NewStringObj(result,-1);
1194  return robj;
1195 }
1196 
1197 SWIGRUNTIME Tcl_Obj *
1198 SWIG_Tcl_NewPackedObj(void *ptr, int sz, swig_type_info *type) {
1199  char result[1024];
1200  char *r = result;
1201  if ((2*sz + 1 + strlen(type->name)) > 1000) return 0;
1202  *(r++) = '_';
1203  r = SWIG_PackData(r,ptr,sz);
1204  strcpy(r,type->name);
1205  return Tcl_NewStringObj(result,-1);
1206 }
1207 
1208 /* -----------------------------------------------------------------------------*
1209  * Get type list
1210  * -----------------------------------------------------------------------------*/
1211 
1213 SWIG_Tcl_GetModule(Tcl_Interp *interp) {
1214  const char *data;
1215  swig_module_info *ret = 0;
1216 
1217  /* first check if pointer already created */
1218  data = Tcl_GetVar(interp, (char *)"swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, TCL_GLOBAL_ONLY);
1219  if (data) {
1220  SWIG_UnpackData(data, &ret, sizeof(swig_type_info **));
1221  }
1222 
1223  return ret;
1224 }
1225 
1226 SWIGRUNTIME void
1227 SWIG_Tcl_SetModule(Tcl_Interp *interp, swig_module_info *module) {
1228  char buf[SWIG_BUFFER_SIZE];
1229  char *data;
1230 
1231  /* create a new pointer */
1232  data = SWIG_PackData(buf, &module, sizeof(swig_type_info **));
1233  *data = 0;
1234  Tcl_SetVar(interp, (char *)"swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, buf, TCL_GLOBAL_ONLY);
1235 }
1236 
1237 /* -----------------------------------------------------------------------------*
1238  * Object auxiliaries
1239  * -----------------------------------------------------------------------------*/
1240 
1241 
1242 SWIGRUNTIME void
1243 SWIG_Tcl_ObjectDelete(ClientData clientData) {
1244  swig_instance *si = (swig_instance *) clientData;
1245  if (!si) return;
1246  if (si->destroy && SWIG_Disown(si->thisvalue)) {
1247  if (si->classptr->destructor) {
1248  (si->classptr->destructor)(si->thisvalue);
1249  }
1250  }
1251  Tcl_DecrRefCount(si->thisptr);
1252  free(si);
1253 }
1254 
1255 /* Function to invoke object methods given an instance */
1256 SWIGRUNTIME int
1257 SWIG_Tcl_MethodCommand(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST _objv[]) {
1258  char *method, *attrname;
1259  swig_instance *inst = (swig_instance *) clientData;
1260  swig_method *meth;
1261  swig_attribute *attr;
1262  Tcl_Obj *oldarg;
1263  Tcl_Obj **objv;
1264  int rcode;
1265  swig_class *cls;
1266  swig_class *cls_stack[64];
1267  int cls_stack_bi[64];
1268  int cls_stack_top = 0;
1269  int numconf = 2;
1270  int bi;
1271 
1272  objv = (Tcl_Obj **) _objv;
1273  if (objc < 2) {
1274  Tcl_SetResult(interp, (char *) "wrong # args.", TCL_STATIC);
1275  return TCL_ERROR;
1276  }
1277  method = Tcl_GetStringFromObj(objv[1],NULL);
1278  if (strcmp(method,"-acquire") == 0) {
1279  inst->destroy = 1;
1280  SWIG_Acquire(inst->thisvalue);
1281  return TCL_OK;
1282  }
1283  if (strcmp(method,"-disown") == 0) {
1284  if (inst->destroy) {
1285  SWIG_Disown(inst->thisvalue);
1286  }
1287  inst->destroy = 0;
1288  return TCL_OK;
1289  }
1290  if (strcmp(method,"-delete") == 0) {
1291  Tcl_DeleteCommandFromToken(interp,inst->cmdtok);
1292  return TCL_OK;
1293  }
1294  cls_stack[cls_stack_top] = inst->classptr;
1295  cls_stack_bi[cls_stack_top] = -1;
1296  while (1) {
1297  Tcl_HashEntry* hashentry;
1298  bi = cls_stack_bi[cls_stack_top];
1299  cls = cls_stack[cls_stack_top];
1300  if (bi != -1) {
1301  if (!cls->bases[bi] && cls->base_names[bi]) {
1302  /* lookup and cache the base class */
1303  swig_type_info *info = SWIG_TypeQueryModule(cls->module, cls->module, cls->base_names[bi]);
1304  if (info) cls->bases[bi] = (swig_class *) info->clientdata;
1305  }
1306  cls = cls->bases[bi];
1307  if (cls) {
1308  cls_stack_bi[cls_stack_top]++;
1309  cls_stack_top++;
1310  cls_stack[cls_stack_top] = cls;
1311  cls_stack_bi[cls_stack_top] = -1;
1312  continue;
1313  }
1314  }
1315  if (!cls) {
1316  cls_stack_top--;
1317  if (cls_stack_top < 0) break;
1318  else continue;
1319  }
1320  cls_stack_bi[cls_stack_top]++;
1321 
1322  hashentry = Tcl_FindHashEntry(&(cls->hashtable), method);
1323  if (hashentry) {
1324  ClientData cd = Tcl_GetHashValue(hashentry);
1325  swig_wrapper method_wrapper = (swig_wrapper)cd;
1326  oldarg = objv[1];
1327  objv[1] = inst->thisptr;
1328  Tcl_IncrRefCount(inst->thisptr);
1329  rcode = (method_wrapper)(clientData,interp,objc,objv);
1330  objv[1] = oldarg;
1331  Tcl_DecrRefCount(inst->thisptr);
1332  return rcode;
1333  }
1334  /* Check class methods for a match */
1335  if (strcmp(method,"cget") == 0) {
1336  if (objc < 3) {
1337  Tcl_SetResult(interp, (char *) "wrong # args.", TCL_STATIC);
1338  return TCL_ERROR;
1339  }
1340  attrname = Tcl_GetStringFromObj(objv[2],NULL);
1341  attr = cls->attributes;
1342  while (attr && attr->name) {
1343  if ((strcmp(attr->name, attrname) == 0) && (attr->getmethod)) {
1344  oldarg = objv[1];
1345  objv[1] = inst->thisptr;
1346  Tcl_IncrRefCount(inst->thisptr);
1347  rcode = (*attr->getmethod)(clientData,interp,2, objv);
1348  objv[1] = oldarg;
1349  Tcl_DecrRefCount(inst->thisptr);
1350  return rcode;
1351  }
1352  attr++;
1353  }
1354  if (strcmp(attrname, "-this") == 0) {
1355  Tcl_SetObjResult(interp, Tcl_DuplicateObj(inst->thisptr));
1356  return TCL_OK;
1357  }
1358  if (strcmp(attrname, "-thisown") == 0) {
1359  if (SWIG_Thisown(inst->thisvalue)) {
1360  Tcl_SetResult(interp,(char*)"1",TCL_STATIC);
1361  } else {
1362  Tcl_SetResult(interp,(char*)"0",TCL_STATIC);
1363  }
1364  return TCL_OK;
1365  }
1366  } else if (strcmp(method, "configure") == 0) {
1367  int i;
1368  if (objc < 4) {
1369  Tcl_SetResult(interp, (char *) "wrong # args.", TCL_STATIC);
1370  return TCL_ERROR;
1371  }
1372  i = 2;
1373  while (i < objc) {
1374  attrname = Tcl_GetStringFromObj(objv[i],NULL);
1375  attr = cls->attributes;
1376  while (attr && attr->name) {
1377  if ((strcmp(attr->name, attrname) == 0) && (attr->setmethod)) {
1378  oldarg = objv[i];
1379  objv[i] = inst->thisptr;
1380  Tcl_IncrRefCount(inst->thisptr);
1381  rcode = (*attr->setmethod)(clientData,interp,3, &objv[i-1]);
1382  objv[i] = oldarg;
1383  Tcl_DecrRefCount(inst->thisptr);
1384  if (rcode != TCL_OK) return rcode;
1385  numconf += 2;
1386  }
1387  attr++;
1388  }
1389  i+=2;
1390  }
1391  }
1392  }
1393  if (strcmp(method,"configure") == 0) {
1394  if (numconf >= objc) {
1395  return TCL_OK;
1396  } else {
1397  Tcl_SetResult(interp,(char *) "Invalid attribute name.", TCL_STATIC);
1398  return TCL_ERROR;
1399  }
1400  }
1401  if (strcmp(method,"cget") == 0) {
1402  Tcl_SetResult(interp,(char *) "Invalid attribute name.", TCL_STATIC);
1403  return TCL_ERROR;
1404  }
1405  Tcl_SetResult(interp, (char *) "Invalid method. Must be one of: configure cget -acquire -disown -delete", TCL_STATIC);
1406  cls = inst->classptr;
1407  bi = 0;
1408  while (cls) {
1409  meth = cls->methods;
1410  while (meth && meth->name) {
1411  char *cr = (char *) Tcl_GetStringResult(interp);
1412  size_t meth_len = strlen(meth->name);
1413  char* where = strchr(cr,':');
1414  while(where) {
1415  where = strstr(where, meth->name);
1416  if(where) {
1417  if(where[-1] == ' ' && (where[meth_len] == ' ' || where[meth_len]==0)) {
1418  break;
1419  } else {
1420  where++;
1421  }
1422  }
1423  }
1424 
1425  if (!where)
1426  Tcl_AppendElement(interp, (char *) meth->name);
1427  meth++;
1428  }
1429  cls = inst->classptr->bases[bi++];
1430  }
1431  return TCL_ERROR;
1432 }
1433 
1434 /* This function takes the current result and turns it into an object command */
1435 SWIGRUNTIME Tcl_Obj *
1436 SWIG_Tcl_NewInstanceObj(Tcl_Interp *interp, void *thisvalue, swig_type_info *type, int flags) {
1437  Tcl_Obj *robj = SWIG_NewPointerObj(thisvalue, type,0);
1438  /* Check to see if this pointer belongs to a class or not */
1439  if (thisvalue && (type->clientdata) && (interp)) {
1440  Tcl_CmdInfo ci;
1441  char *name;
1442  name = Tcl_GetStringFromObj(robj,NULL);
1443  if (!Tcl_GetCommandInfo(interp,name, &ci) || (flags)) {
1444  swig_instance *newinst = (swig_instance *) malloc(sizeof(swig_instance));
1445  newinst->thisptr = Tcl_DuplicateObj(robj);
1446  Tcl_IncrRefCount(newinst->thisptr);
1447  newinst->thisvalue = thisvalue;
1448  newinst->classptr = (swig_class *) type->clientdata;
1449  newinst->destroy = flags;
1450  newinst->cmdtok = Tcl_CreateObjCommand(interp, Tcl_GetStringFromObj(robj,NULL), (swig_wrapper_func) SWIG_MethodCommand, (ClientData) newinst, (swig_delete_func) SWIG_ObjectDelete);
1451  if (flags) {
1452  SWIG_Acquire(thisvalue);
1453  }
1454  }
1455  }
1456  return robj;
1457 }
1458 
1459 /* Function to create objects */
1460 SWIGRUNTIME int
1461 SWIG_Tcl_ObjectConstructor(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
1462  Tcl_Obj *newObj = 0;
1463  void *thisvalue = 0;
1464  swig_instance *newinst = 0;
1465  swig_class *classptr = (swig_class *) clientData;
1466  swig_wrapper cons = 0;
1467  char *name = 0;
1468  int firstarg = 0;
1469  int thisarg = 0;
1470  int destroy = 1;
1471 
1472  if (!classptr) {
1473  Tcl_SetResult(interp, (char *) "swig: internal runtime error. No class object defined.", TCL_STATIC);
1474  return TCL_ERROR;
1475  }
1476  cons = classptr->constructor;
1477  if (objc > 1) {
1478  char *s = Tcl_GetStringFromObj(objv[1],NULL);
1479  if (strcmp(s,"-this") == 0) {
1480  thisarg = 2;
1481  cons = 0;
1482  } else if (strcmp(s,"-args") == 0) {
1483  firstarg = 1;
1484  } else if (objc == 2) {
1485  firstarg = 1;
1486  name = s;
1487  } else if (objc >= 3) {
1488  char *s1;
1489  name = s;
1490  s1 = Tcl_GetStringFromObj(objv[2],NULL);
1491  if (strcmp(s1,"-this") == 0) {
1492  thisarg = 3;
1493  cons = 0;
1494  } else {
1495  firstarg = 1;
1496  }
1497  }
1498  }
1499  if (cons) {
1500  int result;
1501  result = (*cons)(0, interp, objc-firstarg, &objv[firstarg]);
1502  if (result != TCL_OK) {
1503  return result;
1504  }
1505  newObj = Tcl_DuplicateObj(Tcl_GetObjResult(interp));
1506  if (!name) name = Tcl_GetStringFromObj(newObj,NULL);
1507  } else if (thisarg > 0) {
1508  if (thisarg < objc) {
1509  destroy = 0;
1510  newObj = Tcl_DuplicateObj(objv[thisarg]);
1511  if (!name) name = Tcl_GetStringFromObj(newObj,NULL);
1512  } else {
1513  Tcl_SetResult(interp, (char *) "wrong # args.", TCL_STATIC);
1514  return TCL_ERROR;
1515  }
1516  } else {
1517  Tcl_SetResult(interp, (char *) "No constructor available.", TCL_STATIC);
1518  return TCL_ERROR;
1519  }
1520  if (SWIG_Tcl_ConvertPtr(interp,newObj, (void **) &thisvalue, *(classptr->type), 0) != SWIG_OK) {
1521  Tcl_DecrRefCount(newObj);
1522  return TCL_ERROR;
1523  }
1524  newinst = (swig_instance *) malloc(sizeof(swig_instance));
1525  newinst->thisptr = newObj;
1526  Tcl_IncrRefCount(newObj);
1527  newinst->thisvalue = thisvalue;
1528  newinst->classptr = classptr;
1529  newinst->destroy = destroy;
1530  if (destroy) {
1531  SWIG_Acquire(thisvalue);
1532  }
1533  newinst->cmdtok = Tcl_CreateObjCommand(interp,name, (swig_wrapper) SWIG_MethodCommand, (ClientData) newinst, (swig_delete_func) SWIG_ObjectDelete);
1534  return TCL_OK;
1535 }
1536 
1537 /* -----------------------------------------------------------------------------*
1538  * Get arguments
1539  * -----------------------------------------------------------------------------*/
1540 SWIGRUNTIME int
1541 SWIG_Tcl_GetArgs(Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[], const char *fmt, ...) {
1542  int argno = 0, opt = 0;
1543  long tempi;
1544  double tempd;
1545  const char *c;
1546  va_list ap;
1547  void *vptr;
1548  Tcl_Obj *obj = 0;
1549  swig_type_info *ty;
1550 
1551  va_start(ap,fmt);
1552  for (c = fmt; (*c && (*c != ':') && (*c != ';')); c++,argno++) {
1553  if (*c == '|') {
1554  opt = 1;
1555  c++;
1556  }
1557  if (argno >= (objc-1)) {
1558  if (!opt) {
1559  Tcl_SetResult(interp, (char *) "Wrong number of arguments ", TCL_STATIC);
1560  goto argerror;
1561  } else {
1562  va_end(ap);
1563  return TCL_OK;
1564  }
1565  }
1566 
1567  vptr = va_arg(ap,void *);
1568  if (vptr) {
1569  if (isupper(*c)) {
1570  obj = SWIG_Tcl_GetConstantObj(Tcl_GetStringFromObj(objv[argno+1],0));
1571  if (!obj) obj = objv[argno+1];
1572  } else {
1573  obj = objv[argno+1];
1574  }
1575  switch(*c) {
1576  case 'i': case 'I':
1577  case 'l': case 'L':
1578  case 'h': case 'H':
1579  case 'b': case 'B':
1580  if (Tcl_GetLongFromObj(interp,obj,&tempi) != TCL_OK) goto argerror;
1581  if ((*c == 'i') || (*c == 'I')) *((int *)vptr) = (int)tempi;
1582  else if ((*c == 'l') || (*c == 'L')) *((long *)vptr) = (long)tempi;
1583  else if ((*c == 'h') || (*c == 'H')) *((short*)vptr) = (short)tempi;
1584  else if ((*c == 'b') || (*c == 'B')) *((unsigned char *)vptr) = (unsigned char)tempi;
1585  break;
1586  case 'f': case 'F':
1587  case 'd': case 'D':
1588  if (Tcl_GetDoubleFromObj(interp,obj,&tempd) != TCL_OK) goto argerror;
1589  if ((*c == 'f') || (*c == 'F')) *((float *) vptr) = (float)tempd;
1590  else if ((*c == 'd') || (*c == 'D')) *((double*) vptr) = tempd;
1591  break;
1592  case 's': case 'S':
1593  if (*(c+1) == '#') {
1594  int *vlptr = (int *) va_arg(ap, void *);
1595  *((char **) vptr) = Tcl_GetStringFromObj(obj, vlptr);
1596  c++;
1597  } else {
1598  *((char **)vptr) = Tcl_GetStringFromObj(obj,NULL);
1599  }
1600  break;
1601  case 'c': case 'C':
1602  *((char *)vptr) = *(Tcl_GetStringFromObj(obj,NULL));
1603  break;
1604  case 'p': case 'P':
1605  ty = (swig_type_info *) va_arg(ap, void *);
1606  if (SWIG_Tcl_ConvertPtr(interp, obj, (void **) vptr, ty, 0) != SWIG_OK) goto argerror;
1607  break;
1608  case 'o': case 'O':
1609  *((Tcl_Obj **)vptr) = objv[argno+1];
1610  break;
1611  default:
1612  break;
1613  }
1614  }
1615  }
1616 
1617  if ((*c != ';') && ((objc-1) > argno)) {
1618  Tcl_SetResult(interp, (char *) "Wrong # args.", TCL_STATIC);
1619  goto argerror;
1620  }
1621  va_end(ap);
1622  return TCL_OK;
1623 
1624  argerror:
1625  {
1626  char temp[32];
1627  sprintf(temp,"%d", argno+1);
1628  c = strchr(fmt,':');
1629  if (!c) c = strchr(fmt,';');
1630  if (!c) c = (char *)"";
1631  Tcl_AppendResult(interp,c," argument ", temp, NULL);
1632  va_end(ap);
1633  return TCL_ERROR;
1634  }
1635 }
1636 
1637 #ifdef __cplusplus
1638 }
1639 #endif
1640 
1641 
1642 
1643 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
1644 
1645 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
1646 
1647 
1648 
1649 /* -------- TYPES TABLE (BEGIN) -------- */
1650 
1651 #define SWIGTYPE_p_UI swig_types[0]
1652 #define SWIGTYPE_p_a_2dh swig_types[1]
1653 #define SWIGTYPE_p_a_3dh swig_types[2]
1654 #define SWIGTYPE_p_a_base swig_types[3]
1655 #define SWIGTYPE_p_a_intern swig_types[4]
1656 #define SWIGTYPE_p_a_mat swig_types[5]
1657 #define SWIGTYPE_p_a_mat_base swig_types[6]
1658 #define SWIGTYPE_p_a_mat_c swig_types[7]
1659 #define SWIGTYPE_p_a_pmat swig_types[8]
1660 #define SWIGTYPE_p_a_point swig_types[9]
1661 #define SWIGTYPE_p_a_point2 swig_types[10]
1662 #define SWIGTYPE_p_a_pos swig_types[11]
1663 #define SWIGTYPE_p_a_quaternion swig_types[12]
1664 #define SWIGTYPE_p_char swig_types[13]
1665 #define SWIGTYPE_p_double swig_types[14]
1667 static swig_module_info swig_module = {swig_types, 15, 0, 0, 0, 0};
1668 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
1669 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
1670 
1671 /* -------- TYPES TABLE (END) -------- */
1672 
1673 #define SWIG_init A_mat_Init
1674 #define SWIG_name "a_mat"
1675 #define SWIG_prefix ""
1676 #define SWIG_version "0.0"
1677 
1678 #define SWIGVERSION 0x040002
1679 #define SWIG_VERSION SWIGVERSION
1680 
1681 
1682 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
1683 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
1684 
1685 
1686 #include <stdexcept>
1687 
1688 
1689 
1690 #ifdef __cplusplus
1691 extern "C" {
1692 #endif
1693 #ifdef MAC_TCL
1694 #pragma export on
1695 #endif
1696 SWIGEXPORT int SWIG_init(Tcl_Interp *);
1697 #ifdef MAC_TCL
1698 #pragma export off
1699 #endif
1700 #ifdef __cplusplus
1701 }
1702 #endif
1703 
1704 /* Compatibility version for TCL stubs */
1705 #ifndef SWIG_TCL_STUBS_VERSION
1706 #define SWIG_TCL_STUBS_VERSION "8.1"
1707 #endif
1708 
1709 
1710 
1711 #include <string>
1712 
1713 
1714 #include "a_base.h"
1715 #include <iostream>
1716 #include <sstream>
1717 
1718 
1719 #include <limits.h>
1720 #if !defined(SWIG_NO_LLONG_MAX)
1721 # if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
1722 # define LLONG_MAX __LONG_LONG_MAX__
1723 # define LLONG_MIN (-LLONG_MAX - 1LL)
1724 # define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
1725 # endif
1726 #endif
1727 
1728 
1729 SWIGINTERNINLINE Tcl_Obj *
1730 SWIG_FromCharPtrAndSize(const char* carray, size_t size)
1731 {
1732  return (size < INT_MAX) ? Tcl_NewStringObj(carray, static_cast< int >(size)) : NULL;
1733 }
1734 
1735 
1736 SWIGINTERNINLINE Tcl_Obj *
1737 SWIG_From_std_string (const std::string& s)
1738 {
1739  return SWIG_FromCharPtrAndSize(s.data(), s.size());
1740 }
1741 
1742 
1743 SWIGINTERN int
1744 SWIG_AsVal_double SWIG_TCL_DECL_ARGS_2(Tcl_Obj *obj, double *val)
1745 {
1746  double v;
1747  if (Tcl_GetDoubleFromObj(0, obj, &v) == TCL_OK) {
1748  if (val) *val = v;
1749  return SWIG_OK;
1750  }
1751  return SWIG_TypeError;
1752 }
1753 
1754 
1755  #define SWIG_From_double Tcl_NewDoubleObj
1756 
1757 SWIGINTERN std::string a_base_print(a_base *self){
1758  std::ostringstream out;
1759  out << *self;
1760  return out.str();
1761  }
1762 
1763 #include "a_mat_base.h"
1764 
1765 
1766 #include "a_mat.h"
1767 
1768 
1769 SWIGINTERN int
1770 SWIG_AsVal_long SWIG_TCL_DECL_ARGS_2(Tcl_Obj *obj, long* val)
1771 {
1772  long v;
1773  if (Tcl_GetLongFromObj(0,obj, &v) == TCL_OK) {
1774  if (val) *val = (long) v;
1775  return SWIG_OK;
1776  }
1777  return SWIG_TypeError;
1778 }
1779 
1780 
1781 SWIGINTERN int
1782 SWIG_AsVal_int SWIG_TCL_DECL_ARGS_2(Tcl_Obj * obj, int *val)
1783 {
1784  long v;
1785  int res = SWIG_AsVal_long SWIG_TCL_CALL_ARGS_2(obj, &v);
1786  if (SWIG_IsOK(res)) {
1787  if ((v < INT_MIN || v > INT_MAX)) {
1788  return SWIG_OverflowError;
1789  } else {
1790  if (val) *val = static_cast< int >(v);
1791  }
1792  }
1793  return res;
1794 }
1795 
1796 
1797 #include "a_mat_c.h"
1798 
1799 
1800 #include "a_2dh.h"
1801 #include "a_mat_c.h"
1802 
1803 SWIGINTERN std::string a_2dh_print(a_2dh *self){
1804  std::ostringstream out;
1805  out << *self;
1806  return out.str();
1807  }
1808 
1809 #include "a_3dh.h"
1810 
1811 SWIGINTERN std::string a_3dh_print(a_3dh *self){
1812  std::ostringstream out;
1813  out << *self;
1814  return out.str();
1815  }
1816 
1817 #include "a_intern.h"
1818 #include <sstream>
1819 
1820 
1821 #include "a_pmat.h"
1822 
1823 
1824 #include "a_pos.h"
1825 
1826 
1827  #include "a_quaternion.h"
1828  #include <sstream>
1829 
1831  std::ostringstream out;
1832  out << *self;
1833  return out.str();
1834  }
1835 #ifdef __cplusplus
1836 extern "C" {
1837 #endif
1838 SWIGINTERN int
1839 _wrap_a_base_classname(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
1840  a_base *arg1 = (a_base *) 0 ;
1841  void *argp1 = 0 ;
1842  int res1 = 0 ;
1843  std::string result;
1844 
1845  if (SWIG_GetArgs(interp, objc, objv,"o:a_base_classname self ",(void *)0) == TCL_ERROR) SWIG_fail;
1846  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_base, 0 | 0 );
1847  if (!SWIG_IsOK(res1)) {
1848  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_base_classname" "', argument " "1"" of type '" "a_base *""'");
1849  }
1850  arg1 = reinterpret_cast< a_base * >(argp1);
1851  result = (arg1)->classname();
1852  Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
1853  return TCL_OK;
1854 fail:
1855  return TCL_ERROR;
1856 }
1857 
1858 
1859 SWIGINTERN int
1860 _wrap_a_base_help(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
1861  std::string result;
1862 
1863  if (SWIG_GetArgs(interp, objc, objv,":a_base_help ") == TCL_ERROR) SWIG_fail;
1864  result = a_base::help();
1865  Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
1866  return TCL_OK;
1867 fail:
1868  return TCL_ERROR;
1869 }
1870 
1871 
1872 SWIGINTERN int
1873 _wrap_a_base_small__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
1874  a_base *arg1 = (a_base *) 0 ;
1875  double arg2 ;
1876  void *argp1 = 0 ;
1877  int res1 = 0 ;
1878  double val2 ;
1879  int ecode2 = 0 ;
1880 
1881  if (SWIG_GetArgs(interp, objc, objv,"oo:a_base_small self tol ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
1882  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_base, 0 | 0 );
1883  if (!SWIG_IsOK(res1)) {
1884  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_base_small" "', argument " "1"" of type '" "a_base *""'");
1885  }
1886  arg1 = reinterpret_cast< a_base * >(argp1);
1887  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
1888  if (!SWIG_IsOK(ecode2)) {
1889  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_base_small" "', argument " "2"" of type '" "double""'");
1890  }
1891  arg2 = static_cast< double >(val2);
1892  (arg1)->small(arg2);
1893 
1894  return TCL_OK;
1895 fail:
1896  return TCL_ERROR;
1897 }
1898 
1899 
1900 SWIGINTERN int
1901 _wrap_a_base_small__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
1902  a_base *arg1 = (a_base *) 0 ;
1903  void *argp1 = 0 ;
1904  int res1 = 0 ;
1905  double result;
1906 
1907  if (SWIG_GetArgs(interp, objc, objv,"o:a_base_small self ",(void *)0) == TCL_ERROR) SWIG_fail;
1908  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_base, 0 | 0 );
1909  if (!SWIG_IsOK(res1)) {
1910  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_base_small" "', argument " "1"" of type '" "a_base const *""'");
1911  }
1912  arg1 = reinterpret_cast< a_base * >(argp1);
1913  result = (double)((a_base const *)arg1)->small();
1914  Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
1915  return TCL_OK;
1916 fail:
1917  return TCL_ERROR;
1918 }
1919 
1920 
1921 SWIGINTERN int
1922 _wrap_a_base_small(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
1923  Tcl_Obj *CONST *argv = objv+1;
1924  int argc = objc-1;
1925  if (argc == 1) {
1926  int _v;
1927  void *vptr = 0;
1928  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_base, 0);
1929  _v = SWIG_CheckState(res);
1930  if (_v) {
1931  return _wrap_a_base_small__SWIG_1(clientData, interp, objc, argv - 1);
1932  }
1933  }
1934  if (argc == 2) {
1935  int _v;
1936  void *vptr = 0;
1937  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_base, 0);
1938  _v = SWIG_CheckState(res);
1939  if (_v) {
1940  {
1941  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
1942  _v = SWIG_CheckState(res);
1943  }
1944  if (_v) {
1945  return _wrap_a_base_small__SWIG_0(clientData, interp, objc, argv - 1);
1946  }
1947  }
1948  }
1949 
1950  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'a_base_small'.\n"
1951  " Possible C/C++ prototypes are:\n"
1952  " a_base::small(double)\n"
1953  " a_base::small() const\n", TCL_STATIC);
1954  return TCL_ERROR;
1955 }
1956 
1957 
1958 SWIGINTERN int
1959 _wrap_a_base_print(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
1960  a_base *arg1 = (a_base *) 0 ;
1961  void *argp1 = 0 ;
1962  int res1 = 0 ;
1963  std::string result;
1964 
1965  if (SWIG_GetArgs(interp, objc, objv,"o:a_base_print self ",(void *)0) == TCL_ERROR) SWIG_fail;
1966  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_base, 0 | 0 );
1967  if (!SWIG_IsOK(res1)) {
1968  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_base_print" "', argument " "1"" of type '" "a_base *""'");
1969  }
1970  arg1 = reinterpret_cast< a_base * >(argp1);
1971  result = a_base_print(arg1);
1972  Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
1973  return TCL_OK;
1974 fail:
1975  return TCL_ERROR;
1976 }
1977 
1978 
1979 SWIGINTERN int
1980 _wrap_new_a_base(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
1981  a_base *result = 0 ;
1982 
1983  if (SWIG_GetArgs(interp, objc, objv,":new_a_base ") == TCL_ERROR) SWIG_fail;
1984  result = (a_base *)new a_base();
1985  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_base,0));
1986  return TCL_OK;
1987 fail:
1988  return TCL_ERROR;
1989 }
1990 
1991 
1992 SWIGINTERN int
1993 _wrap_delete_a_base(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
1994  a_base *arg1 = (a_base *) 0 ;
1995  void *argp1 = 0 ;
1996  int res1 = 0 ;
1997 
1998  if (SWIG_GetArgs(interp, objc, objv,"o:delete_a_base self ",(void *)0) == TCL_ERROR) SWIG_fail;
1999  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_base, SWIG_POINTER_DISOWN | 0 );
2000  if (!SWIG_IsOK(res1)) {
2001  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_a_base" "', argument " "1"" of type '" "a_base *""'");
2002  }
2003  arg1 = reinterpret_cast< a_base * >(argp1);
2004  delete arg1;
2005 
2006  return TCL_OK;
2007 fail:
2008  return TCL_ERROR;
2009 }
2010 
2011 
2013 a_base *arg1 = (a_base *) obj;
2014 delete arg1;
2015 }
2017  {"classname", _wrap_a_base_classname},
2018  {"small", _wrap_a_base_small},
2019  {"print", _wrap_a_base_print},
2020  {0,0}
2021 };
2023  {0,0,0}
2024 };
2026 static const char * swig_a_base_base_names[] = {0};
2028 SWIGINTERN int
2029 _wrap_a_mat_base_classname(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2030  a_mat_base *arg1 = (a_mat_base *) 0 ;
2031  void *argp1 = 0 ;
2032  int res1 = 0 ;
2033  std::string result;
2034 
2035  if (SWIG_GetArgs(interp, objc, objv,"o:a_mat_base_classname self ",(void *)0) == TCL_ERROR) SWIG_fail;
2036  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_mat_base, 0 | 0 );
2037  if (!SWIG_IsOK(res1)) {
2038  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_mat_base_classname" "', argument " "1"" of type '" "a_mat_base *""'");
2039  }
2040  arg1 = reinterpret_cast< a_mat_base * >(argp1);
2041  result = (arg1)->classname();
2042  Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
2043  return TCL_OK;
2044 fail:
2045  return TCL_ERROR;
2046 }
2047 
2048 
2049 SWIGINTERN int
2050 _wrap_a_mat_base_help(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2051  std::string result;
2052 
2053  if (SWIG_GetArgs(interp, objc, objv,":a_mat_base_help ") == TCL_ERROR) SWIG_fail;
2054  result = a_mat_base::help();
2055  Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
2056  return TCL_OK;
2057 fail:
2058  return TCL_ERROR;
2059 }
2060 
2061 
2062 SWIGINTERN int
2063 _wrap_new_a_mat_base(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2064  a_mat_base *result = 0 ;
2065 
2066  if (SWIG_GetArgs(interp, objc, objv,":new_a_mat_base ") == TCL_ERROR) SWIG_fail;
2067  result = (a_mat_base *)new a_mat_base();
2068  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_mat_base,0));
2069  return TCL_OK;
2070 fail:
2071  return TCL_ERROR;
2072 }
2073 
2074 
2075 SWIGINTERN int
2076 _wrap_delete_a_mat_base(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2077  a_mat_base *arg1 = (a_mat_base *) 0 ;
2078  void *argp1 = 0 ;
2079  int res1 = 0 ;
2080 
2081  if (SWIG_GetArgs(interp, objc, objv,"o:delete_a_mat_base self ",(void *)0) == TCL_ERROR) SWIG_fail;
2082  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_mat_base, SWIG_POINTER_DISOWN | 0 );
2083  if (!SWIG_IsOK(res1)) {
2084  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_a_mat_base" "', argument " "1"" of type '" "a_mat_base *""'");
2085  }
2086  arg1 = reinterpret_cast< a_mat_base * >(argp1);
2087  delete arg1;
2088 
2089  return TCL_OK;
2090 fail:
2091  return TCL_ERROR;
2092 }
2093 
2094 
2096 a_mat_base *arg1 = (a_mat_base *) obj;
2097 delete arg1;
2098 }
2100  {"classname", _wrap_a_mat_base_classname},
2101  {0,0}
2102 };
2104  {0,0,0}
2105 };
2107 static const char * swig_a_mat_base_base_names[] = {"a_base *",0};
2109 SWIGINTERN int
2110 _wrap_new_a_mat__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2111  UI arg1 ;
2112  UI arg2 ;
2113  double arg3 ;
2114  void *argp1 ;
2115  int res1 = 0 ;
2116  void *argp2 ;
2117  int res2 = 0 ;
2118  double val3 ;
2119  int ecode3 = 0 ;
2120  a_mat *result = 0 ;
2121 
2122  if (SWIG_GetArgs(interp, objc, objv,"ooo:new_a_mat i j v ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
2123  {
2124  res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_UI, 0 );
2125  if (!SWIG_IsOK(res1)) {
2126  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_a_mat" "', argument " "1"" of type '" "UI""'");
2127  }
2128  if (!argp1) {
2129  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_a_mat" "', argument " "1"" of type '" "UI""'");
2130  } else {
2131  arg1 = *(reinterpret_cast< UI * >(argp1));
2132  }
2133  }
2134  {
2135  res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_UI, 0 );
2136  if (!SWIG_IsOK(res2)) {
2137  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_a_mat" "', argument " "2"" of type '" "UI""'");
2138  }
2139  if (!argp2) {
2140  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_a_mat" "', argument " "2"" of type '" "UI""'");
2141  } else {
2142  arg2 = *(reinterpret_cast< UI * >(argp2));
2143  }
2144  }
2145  ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
2146  if (!SWIG_IsOK(ecode3)) {
2147  SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_a_mat" "', argument " "3"" of type '" "double""'");
2148  }
2149  arg3 = static_cast< double >(val3);
2150  result = (a_mat *)new a_mat(arg1,arg2,arg3);
2151  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_mat,0));
2152  return TCL_OK;
2153 fail:
2154  return TCL_ERROR;
2155 }
2156 
2157 
2158 SWIGINTERN int
2159 _wrap_new_a_mat__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2160  UI arg1 ;
2161  UI arg2 ;
2162  void *argp1 ;
2163  int res1 = 0 ;
2164  void *argp2 ;
2165  int res2 = 0 ;
2166  a_mat *result = 0 ;
2167 
2168  if (SWIG_GetArgs(interp, objc, objv,"oo:new_a_mat i j ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
2169  {
2170  res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_UI, 0 );
2171  if (!SWIG_IsOK(res1)) {
2172  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_a_mat" "', argument " "1"" of type '" "UI""'");
2173  }
2174  if (!argp1) {
2175  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_a_mat" "', argument " "1"" of type '" "UI""'");
2176  } else {
2177  arg1 = *(reinterpret_cast< UI * >(argp1));
2178  }
2179  }
2180  {
2181  res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_UI, 0 );
2182  if (!SWIG_IsOK(res2)) {
2183  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_a_mat" "', argument " "2"" of type '" "UI""'");
2184  }
2185  if (!argp2) {
2186  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_a_mat" "', argument " "2"" of type '" "UI""'");
2187  } else {
2188  arg2 = *(reinterpret_cast< UI * >(argp2));
2189  }
2190  }
2191  result = (a_mat *)new a_mat(arg1,arg2);
2192  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_mat,0));
2193  return TCL_OK;
2194 fail:
2195  return TCL_ERROR;
2196 }
2197 
2198 
2199 SWIGINTERN int
2200 _wrap_new_a_mat__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2201  int arg1 ;
2202  int arg2 ;
2203  double arg3 ;
2204  int val1 ;
2205  int ecode1 = 0 ;
2206  int val2 ;
2207  int ecode2 = 0 ;
2208  double val3 ;
2209  int ecode3 = 0 ;
2210  a_mat *result = 0 ;
2211 
2212  if (SWIG_GetArgs(interp, objc, objv,"ooo:new_a_mat i j v ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
2213  ecode1 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
2214  if (!SWIG_IsOK(ecode1)) {
2215  SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_a_mat" "', argument " "1"" of type '" "int""'");
2216  }
2217  arg1 = static_cast< int >(val1);
2218  ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
2219  if (!SWIG_IsOK(ecode2)) {
2220  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_a_mat" "', argument " "2"" of type '" "int""'");
2221  }
2222  arg2 = static_cast< int >(val2);
2223  ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
2224  if (!SWIG_IsOK(ecode3)) {
2225  SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_a_mat" "', argument " "3"" of type '" "double""'");
2226  }
2227  arg3 = static_cast< double >(val3);
2228  result = (a_mat *)new a_mat(arg1,arg2,arg3);
2229  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_mat,0));
2230  return TCL_OK;
2231 fail:
2232  return TCL_ERROR;
2233 }
2234 
2235 
2236 SWIGINTERN int
2237 _wrap_new_a_mat__SWIG_3(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2238  int arg1 ;
2239  int arg2 ;
2240  int val1 ;
2241  int ecode1 = 0 ;
2242  int val2 ;
2243  int ecode2 = 0 ;
2244  a_mat *result = 0 ;
2245 
2246  if (SWIG_GetArgs(interp, objc, objv,"oo:new_a_mat i j ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
2247  ecode1 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
2248  if (!SWIG_IsOK(ecode1)) {
2249  SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_a_mat" "', argument " "1"" of type '" "int""'");
2250  }
2251  arg1 = static_cast< int >(val1);
2252  ecode2 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
2253  if (!SWIG_IsOK(ecode2)) {
2254  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_a_mat" "', argument " "2"" of type '" "int""'");
2255  }
2256  arg2 = static_cast< int >(val2);
2257  result = (a_mat *)new a_mat(arg1,arg2);
2258  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_mat,0));
2259  return TCL_OK;
2260 fail:
2261  return TCL_ERROR;
2262 }
2263 
2264 
2265 SWIGINTERN int
2266 _wrap_new_a_mat__SWIG_4(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2267  a_mat *arg1 = 0 ;
2268  void *argp1 ;
2269  int res1 = 0 ;
2270  a_mat *result = 0 ;
2271 
2272  if (SWIG_GetArgs(interp, objc, objv,"o:new_a_mat m ",(void *)0) == TCL_ERROR) SWIG_fail;
2273  res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_a_mat, 0 );
2274  if (!SWIG_IsOK(res1)) {
2275  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_a_mat" "', argument " "1"" of type '" "a_mat const &""'");
2276  }
2277  if (!argp1) {
2278  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_a_mat" "', argument " "1"" of type '" "a_mat const &""'");
2279  }
2280  arg1 = reinterpret_cast< a_mat * >(argp1);
2281  result = (a_mat *)new a_mat((a_mat const &)*arg1);
2282  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_mat,0));
2283  return TCL_OK;
2284 fail:
2285  return TCL_ERROR;
2286 }
2287 
2288 
2289 SWIGINTERN int
2290 _wrap_new_a_mat(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2291  Tcl_Obj *CONST *argv = objv+1;
2292  int argc = objc-1;
2293  if (argc == 1) {
2294  int _v;
2295  void *vptr = 0;
2296  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_mat, SWIG_POINTER_NO_NULL);
2297  _v = SWIG_CheckState(res);
2298  if (_v) {
2299  return _wrap_new_a_mat__SWIG_4(clientData, interp, objc, argv - 1);
2300  }
2301  }
2302  if (argc == 2) {
2303  int _v;
2304  void *vptr = 0;
2305  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_UI, SWIG_POINTER_NO_NULL);
2306  _v = SWIG_CheckState(res);
2307  if (_v) {
2308  void *vptr = 0;
2309  int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_UI, SWIG_POINTER_NO_NULL);
2310  _v = SWIG_CheckState(res);
2311  if (_v) {
2312  return _wrap_new_a_mat__SWIG_1(clientData, interp, objc, argv - 1);
2313  }
2314  }
2315  }
2316  if (argc == 2) {
2317  int _v;
2318  {
2319  int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
2320  _v = SWIG_CheckState(res);
2321  }
2322  if (_v) {
2323  {
2324  int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
2325  _v = SWIG_CheckState(res);
2326  }
2327  if (_v) {
2328  return _wrap_new_a_mat__SWIG_3(clientData, interp, objc, argv - 1);
2329  }
2330  }
2331  }
2332  if (argc == 3) {
2333  int _v;
2334  void *vptr = 0;
2335  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_UI, SWIG_POINTER_NO_NULL);
2336  _v = SWIG_CheckState(res);
2337  if (_v) {
2338  void *vptr = 0;
2339  int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_UI, SWIG_POINTER_NO_NULL);
2340  _v = SWIG_CheckState(res);
2341  if (_v) {
2342  {
2343  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
2344  _v = SWIG_CheckState(res);
2345  }
2346  if (_v) {
2347  return _wrap_new_a_mat__SWIG_0(clientData, interp, objc, argv - 1);
2348  }
2349  }
2350  }
2351  }
2352  if (argc == 3) {
2353  int _v;
2354  {
2355  int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
2356  _v = SWIG_CheckState(res);
2357  }
2358  if (_v) {
2359  {
2360  int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
2361  _v = SWIG_CheckState(res);
2362  }
2363  if (_v) {
2364  {
2365  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
2366  _v = SWIG_CheckState(res);
2367  }
2368  if (_v) {
2369  return _wrap_new_a_mat__SWIG_2(clientData, interp, objc, argv - 1);
2370  }
2371  }
2372  }
2373  }
2374 
2375  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'new_a_mat'.\n"
2376  " Possible C/C++ prototypes are:\n"
2377  " a_mat::a_mat(UI,UI,double)\n"
2378  " a_mat::a_mat(UI,UI)\n"
2379  " a_mat::a_mat(int,int,double)\n"
2380  " a_mat::a_mat(int,int)\n"
2381  " a_mat::a_mat(a_mat const &)\n", TCL_STATIC);
2382  return TCL_ERROR;
2383 }
2384 
2385 
2386 SWIGINTERN int
2387 _wrap_delete_a_mat(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2388  a_mat *arg1 = (a_mat *) 0 ;
2389  void *argp1 = 0 ;
2390  int res1 = 0 ;
2391 
2392  if (SWIG_GetArgs(interp, objc, objv,"o:delete_a_mat self ",(void *)0) == TCL_ERROR) SWIG_fail;
2393  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_mat, SWIG_POINTER_DISOWN | 0 );
2394  if (!SWIG_IsOK(res1)) {
2395  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_a_mat" "', argument " "1"" of type '" "a_mat *""'");
2396  }
2397  arg1 = reinterpret_cast< a_mat * >(argp1);
2398  delete arg1;
2399 
2400  return TCL_OK;
2401 fail:
2402  return TCL_ERROR;
2403 }
2404 
2405 
2406 SWIGINTERN int
2407 _wrap_a_mat_maxi(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2408  a_mat *arg1 = (a_mat *) 0 ;
2409  void *argp1 = 0 ;
2410  int res1 = 0 ;
2411  UI result;
2412 
2413  if (SWIG_GetArgs(interp, objc, objv,"o:a_mat_maxi self ",(void *)0) == TCL_ERROR) SWIG_fail;
2414  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_mat, 0 | 0 );
2415  if (!SWIG_IsOK(res1)) {
2416  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_mat_maxi" "', argument " "1"" of type '" "a_mat const *""'");
2417  }
2418  arg1 = reinterpret_cast< a_mat * >(argp1);
2419  result = ((a_mat const *)arg1)->maxi();
2420  Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new UI(static_cast< const UI& >(result))), SWIGTYPE_p_UI, SWIG_POINTER_OWN | 0 ));
2421  return TCL_OK;
2422 fail:
2423  return TCL_ERROR;
2424 }
2425 
2426 
2427 SWIGINTERN int
2428 _wrap_a_mat_maxj(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2429  a_mat *arg1 = (a_mat *) 0 ;
2430  void *argp1 = 0 ;
2431  int res1 = 0 ;
2432  UI result;
2433 
2434  if (SWIG_GetArgs(interp, objc, objv,"o:a_mat_maxj self ",(void *)0) == TCL_ERROR) SWIG_fail;
2435  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_mat, 0 | 0 );
2436  if (!SWIG_IsOK(res1)) {
2437  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_mat_maxj" "', argument " "1"" of type '" "a_mat const *""'");
2438  }
2439  arg1 = reinterpret_cast< a_mat * >(argp1);
2440  result = ((a_mat const *)arg1)->maxj();
2441  Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new UI(static_cast< const UI& >(result))), SWIGTYPE_p_UI, SWIG_POINTER_OWN | 0 ));
2442  return TCL_OK;
2443 fail:
2444  return TCL_ERROR;
2445 }
2446 
2447 
2448 SWIGINTERN int
2449 _wrap_a_mat_size(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2450  a_mat *arg1 = (a_mat *) 0 ;
2451  void *argp1 = 0 ;
2452  int res1 = 0 ;
2453  UI result;
2454 
2455  if (SWIG_GetArgs(interp, objc, objv,"o:a_mat_size self ",(void *)0) == TCL_ERROR) SWIG_fail;
2456  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_mat, 0 | 0 );
2457  if (!SWIG_IsOK(res1)) {
2458  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_mat_size" "', argument " "1"" of type '" "a_mat const *""'");
2459  }
2460  arg1 = reinterpret_cast< a_mat * >(argp1);
2461  result = ((a_mat const *)arg1)->size();
2462  Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new UI(static_cast< const UI& >(result))), SWIGTYPE_p_UI, SWIG_POINTER_OWN | 0 ));
2463  return TCL_OK;
2464 fail:
2465  return TCL_ERROR;
2466 }
2467 
2468 
2469 SWIGINTERN int
2470 _wrap_a_mat_e___(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2471  a_mat *arg1 = (a_mat *) 0 ;
2472  a_mat *arg2 = 0 ;
2473  void *argp1 = 0 ;
2474  int res1 = 0 ;
2475  void *argp2 ;
2476  int res2 = 0 ;
2477  a_mat *result = 0 ;
2478 
2479  if (SWIG_GetArgs(interp, objc, objv,"oo:a_mat_= self m ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
2480  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_mat, 0 | 0 );
2481  if (!SWIG_IsOK(res1)) {
2482  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_mat_=" "', argument " "1"" of type '" "a_mat *""'");
2483  }
2484  arg1 = reinterpret_cast< a_mat * >(argp1);
2485  res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_a_mat, 0 );
2486  if (!SWIG_IsOK(res2)) {
2487  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "a_mat_=" "', argument " "2"" of type '" "a_mat const &""'");
2488  }
2489  if (!argp2) {
2490  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_mat_=" "', argument " "2"" of type '" "a_mat const &""'");
2491  }
2492  arg2 = reinterpret_cast< a_mat * >(argp2);
2493  result = (a_mat *) &(arg1)->operator =((a_mat const &)*arg2);
2494  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_mat,0));
2495  return TCL_OK;
2496 fail:
2497  return TCL_ERROR;
2498 }
2499 
2500 
2501 SWIGINTERN int
2502 _wrap_a_mat_s___(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2503  a_mat *arg1 = (a_mat *) 0 ;
2504  void *argp1 = 0 ;
2505  int res1 = 0 ;
2506  a_mat *result = 0 ;
2507 
2508  if (SWIG_GetArgs(interp, objc, objv,"o:a_mat_- self ",(void *)0) == TCL_ERROR) SWIG_fail;
2509  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_mat, 0 | 0 );
2510  if (!SWIG_IsOK(res1)) {
2511  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_mat_-" "', argument " "1"" of type '" "a_mat *""'");
2512  }
2513  arg1 = reinterpret_cast< a_mat * >(argp1);
2514  result = (a_mat *) &(arg1)->operator -();
2515  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_mat,0));
2516  return TCL_OK;
2517 fail:
2518  return TCL_ERROR;
2519 }
2520 
2521 
2522 SWIGINTERN int
2523 _wrap_a_mat_a___(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2524  a_mat *arg1 = (a_mat *) 0 ;
2525  a_mat *arg2 = 0 ;
2526  void *argp1 = 0 ;
2527  int res1 = 0 ;
2528  void *argp2 ;
2529  int res2 = 0 ;
2530  SwigValueWrapper< a_mat > result;
2531 
2532  if (SWIG_GetArgs(interp, objc, objv,"oo:a_mat_+ self a ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
2533  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_mat, 0 | 0 );
2534  if (!SWIG_IsOK(res1)) {
2535  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_mat_+" "', argument " "1"" of type '" "a_mat *""'");
2536  }
2537  arg1 = reinterpret_cast< a_mat * >(argp1);
2538  res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_a_mat, 0 );
2539  if (!SWIG_IsOK(res2)) {
2540  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "a_mat_+" "', argument " "2"" of type '" "a_mat const &""'");
2541  }
2542  if (!argp2) {
2543  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_mat_+" "', argument " "2"" of type '" "a_mat const &""'");
2544  }
2545  arg2 = reinterpret_cast< a_mat * >(argp2);
2546  result = (arg1)->operator +((a_mat const &)*arg2);
2547  Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new a_mat(static_cast< const a_mat& >(result))), SWIGTYPE_p_a_mat, SWIG_POINTER_OWN | 0 ));
2548  return TCL_OK;
2549 fail:
2550  return TCL_ERROR;
2551 }
2552 
2553 
2554 SWIGINTERN int
2555 _wrap_a_mat_m___(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2556  a_mat *arg1 = (a_mat *) 0 ;
2557  double arg2 ;
2558  void *argp1 = 0 ;
2559  int res1 = 0 ;
2560  double val2 ;
2561  int ecode2 = 0 ;
2562  SwigValueWrapper< a_mat > result;
2563 
2564  if (SWIG_GetArgs(interp, objc, objv,"oo:a_mat_* self v ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
2565  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_mat, 0 | 0 );
2566  if (!SWIG_IsOK(res1)) {
2567  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_mat_*" "', argument " "1"" of type '" "a_mat *""'");
2568  }
2569  arg1 = reinterpret_cast< a_mat * >(argp1);
2570  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
2571  if (!SWIG_IsOK(ecode2)) {
2572  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_mat_*" "', argument " "2"" of type '" "double""'");
2573  }
2574  arg2 = static_cast< double >(val2);
2575  result = (arg1)->operator *(arg2);
2576  Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new a_mat(static_cast< const a_mat& >(result))), SWIGTYPE_p_a_mat, SWIG_POINTER_OWN | 0 ));
2577  return TCL_OK;
2578 fail:
2579  return TCL_ERROR;
2580 }
2581 
2582 
2583 SWIGINTERN int
2584 _wrap_a_mat_d___(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2585  a_mat *arg1 = (a_mat *) 0 ;
2586  double arg2 ;
2587  void *argp1 = 0 ;
2588  int res1 = 0 ;
2589  double val2 ;
2590  int ecode2 = 0 ;
2591  SwigValueWrapper< a_mat > result;
2592 
2593  if (SWIG_GetArgs(interp, objc, objv,"oo:a_mat_/ self v ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
2594  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_mat, 0 | 0 );
2595  if (!SWIG_IsOK(res1)) {
2596  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_mat_/" "', argument " "1"" of type '" "a_mat *""'");
2597  }
2598  arg1 = reinterpret_cast< a_mat * >(argp1);
2599  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
2600  if (!SWIG_IsOK(ecode2)) {
2601  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_mat_/" "', argument " "2"" of type '" "double""'");
2602  }
2603  arg2 = static_cast< double >(val2);
2604  result = (arg1)->operator /(arg2);
2605  Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new a_mat(static_cast< const a_mat& >(result))), SWIGTYPE_p_a_mat, SWIG_POINTER_OWN | 0 ));
2606  return TCL_OK;
2607 fail:
2608  return TCL_ERROR;
2609 }
2610 
2611 
2612 SWIGINTERN int
2613 _wrap_a_mat_transpose(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2614  a_mat *arg1 = (a_mat *) 0 ;
2615  void *argp1 = 0 ;
2616  int res1 = 0 ;
2617  SwigValueWrapper< a_mat > result;
2618 
2619  if (SWIG_GetArgs(interp, objc, objv,"o:a_mat_transpose self ",(void *)0) == TCL_ERROR) SWIG_fail;
2620  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_mat, 0 | 0 );
2621  if (!SWIG_IsOK(res1)) {
2622  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_mat_transpose" "', argument " "1"" of type '" "a_mat *""'");
2623  }
2624  arg1 = reinterpret_cast< a_mat * >(argp1);
2625  result = (arg1)->transpose();
2626  Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new a_mat(static_cast< const a_mat& >(result))), SWIGTYPE_p_a_mat, SWIG_POINTER_OWN | 0 ));
2627  return TCL_OK;
2628 fail:
2629  return TCL_ERROR;
2630 }
2631 
2632 
2633 SWIGINTERN int
2634 _wrap_a_mat_swapc(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2635  a_mat *arg1 = (a_mat *) 0 ;
2636  UI arg2 ;
2637  UI arg3 ;
2638  void *argp1 = 0 ;
2639  int res1 = 0 ;
2640  void *argp2 ;
2641  int res2 = 0 ;
2642  void *argp3 ;
2643  int res3 = 0 ;
2644 
2645  if (SWIG_GetArgs(interp, objc, objv,"ooo:a_mat_swapc self c1 c2 ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
2646  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_mat, 0 | 0 );
2647  if (!SWIG_IsOK(res1)) {
2648  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_mat_swapc" "', argument " "1"" of type '" "a_mat *""'");
2649  }
2650  arg1 = reinterpret_cast< a_mat * >(argp1);
2651  {
2652  res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_UI, 0 );
2653  if (!SWIG_IsOK(res2)) {
2654  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "a_mat_swapc" "', argument " "2"" of type '" "UI""'");
2655  }
2656  if (!argp2) {
2657  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_mat_swapc" "', argument " "2"" of type '" "UI""'");
2658  } else {
2659  arg2 = *(reinterpret_cast< UI * >(argp2));
2660  }
2661  }
2662  {
2663  res3 = SWIG_ConvertPtr(objv[3], &argp3, SWIGTYPE_p_UI, 0 );
2664  if (!SWIG_IsOK(res3)) {
2665  SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "a_mat_swapc" "', argument " "3"" of type '" "UI""'");
2666  }
2667  if (!argp3) {
2668  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_mat_swapc" "', argument " "3"" of type '" "UI""'");
2669  } else {
2670  arg3 = *(reinterpret_cast< UI * >(argp3));
2671  }
2672  }
2673  (arg1)->swapc(arg2,arg3);
2674 
2675  return TCL_OK;
2676 fail:
2677  return TCL_ERROR;
2678 }
2679 
2680 
2681 SWIGINTERN int
2682 _wrap_a_mat_swapr(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2683  a_mat *arg1 = (a_mat *) 0 ;
2684  UI arg2 ;
2685  UI arg3 ;
2686  void *argp1 = 0 ;
2687  int res1 = 0 ;
2688  void *argp2 ;
2689  int res2 = 0 ;
2690  void *argp3 ;
2691  int res3 = 0 ;
2692 
2693  if (SWIG_GetArgs(interp, objc, objv,"ooo:a_mat_swapr self r1 r2 ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
2694  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_mat, 0 | 0 );
2695  if (!SWIG_IsOK(res1)) {
2696  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_mat_swapr" "', argument " "1"" of type '" "a_mat *""'");
2697  }
2698  arg1 = reinterpret_cast< a_mat * >(argp1);
2699  {
2700  res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_UI, 0 );
2701  if (!SWIG_IsOK(res2)) {
2702  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "a_mat_swapr" "', argument " "2"" of type '" "UI""'");
2703  }
2704  if (!argp2) {
2705  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_mat_swapr" "', argument " "2"" of type '" "UI""'");
2706  } else {
2707  arg2 = *(reinterpret_cast< UI * >(argp2));
2708  }
2709  }
2710  {
2711  res3 = SWIG_ConvertPtr(objv[3], &argp3, SWIGTYPE_p_UI, 0 );
2712  if (!SWIG_IsOK(res3)) {
2713  SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "a_mat_swapr" "', argument " "3"" of type '" "UI""'");
2714  }
2715  if (!argp3) {
2716  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_mat_swapr" "', argument " "3"" of type '" "UI""'");
2717  } else {
2718  arg3 = *(reinterpret_cast< UI * >(argp3));
2719  }
2720  }
2721  (arg1)->swapr(arg2,arg3);
2722 
2723  return TCL_OK;
2724 fail:
2725  return TCL_ERROR;
2726 }
2727 
2728 
2729 SWIGINTERN int
2730 _wrap_a_mat_sub_matrix(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2731  a_mat *arg1 = (a_mat *) 0 ;
2732  UI arg2 ;
2733  UI arg3 ;
2734  void *argp1 = 0 ;
2735  int res1 = 0 ;
2736  void *argp2 ;
2737  int res2 = 0 ;
2738  void *argp3 ;
2739  int res3 = 0 ;
2740  SwigValueWrapper< a_mat > result;
2741 
2742  if (SWIG_GetArgs(interp, objc, objv,"ooo:a_mat_sub_matrix self i j ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
2743  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_mat, 0 | 0 );
2744  if (!SWIG_IsOK(res1)) {
2745  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_mat_sub_matrix" "', argument " "1"" of type '" "a_mat const *""'");
2746  }
2747  arg1 = reinterpret_cast< a_mat * >(argp1);
2748  {
2749  res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_UI, 0 );
2750  if (!SWIG_IsOK(res2)) {
2751  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "a_mat_sub_matrix" "', argument " "2"" of type '" "UI const""'");
2752  }
2753  if (!argp2) {
2754  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_mat_sub_matrix" "', argument " "2"" of type '" "UI const""'");
2755  } else {
2756  arg2 = *(reinterpret_cast< UI * >(argp2));
2757  }
2758  }
2759  {
2760  res3 = SWIG_ConvertPtr(objv[3], &argp3, SWIGTYPE_p_UI, 0 );
2761  if (!SWIG_IsOK(res3)) {
2762  SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "a_mat_sub_matrix" "', argument " "3"" of type '" "UI const""'");
2763  }
2764  if (!argp3) {
2765  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_mat_sub_matrix" "', argument " "3"" of type '" "UI const""'");
2766  } else {
2767  arg3 = *(reinterpret_cast< UI * >(argp3));
2768  }
2769  }
2770  result = ((a_mat const *)arg1)->sub_matrix(arg2,arg3);
2771  Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new a_mat(static_cast< const a_mat& >(result))), SWIGTYPE_p_a_mat, SWIG_POINTER_OWN | 0 ));
2772  return TCL_OK;
2773 fail:
2774  return TCL_ERROR;
2775 }
2776 
2777 
2779 a_mat *arg1 = (a_mat *) obj;
2780 delete arg1;
2781 }
2783  {"maxi", _wrap_a_mat_maxi},
2784  {"maxj", _wrap_a_mat_maxj},
2785  {"size", _wrap_a_mat_size},
2786  {"=", _wrap_a_mat_e___},
2787  {"-", _wrap_a_mat_s___},
2788  {"+", _wrap_a_mat_a___},
2789  {"*", _wrap_a_mat_m___},
2790  {"/", _wrap_a_mat_d___},
2791  {"transpose", _wrap_a_mat_transpose},
2792  {"swapc", _wrap_a_mat_swapc},
2793  {"swapr", _wrap_a_mat_swapr},
2794  {"sub_matrix", _wrap_a_mat_sub_matrix},
2795  {0,0}
2796 };
2798  {0,0,0}
2799 };
2800 static swig_class *swig_a_mat_bases[] = {0,0};
2801 static const char * swig_a_mat_base_names[] = {"a_mat_base *",0};
2803 SWIGINTERN int
2804 _wrap_new_a_mat_c__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2805  UI arg1 ;
2806  double arg2 ;
2807  void *argp1 ;
2808  int res1 = 0 ;
2809  double val2 ;
2810  int ecode2 = 0 ;
2811  a_mat_c *result = 0 ;
2812 
2813  if (SWIG_GetArgs(interp, objc, objv,"oo:new_a_mat_c i v ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
2814  {
2815  res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_UI, 0 );
2816  if (!SWIG_IsOK(res1)) {
2817  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_a_mat_c" "', argument " "1"" of type '" "UI""'");
2818  }
2819  if (!argp1) {
2820  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_a_mat_c" "', argument " "1"" of type '" "UI""'");
2821  } else {
2822  arg1 = *(reinterpret_cast< UI * >(argp1));
2823  }
2824  }
2825  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
2826  if (!SWIG_IsOK(ecode2)) {
2827  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_a_mat_c" "', argument " "2"" of type '" "double""'");
2828  }
2829  arg2 = static_cast< double >(val2);
2830  result = (a_mat_c *)new a_mat_c(arg1,arg2);
2831  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_mat_c,0));
2832  return TCL_OK;
2833 fail:
2834  return TCL_ERROR;
2835 }
2836 
2837 
2838 SWIGINTERN int
2839 _wrap_new_a_mat_c__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2840  UI arg1 ;
2841  void *argp1 ;
2842  int res1 = 0 ;
2843  a_mat_c *result = 0 ;
2844 
2845  if (SWIG_GetArgs(interp, objc, objv,"o:new_a_mat_c i ",(void *)0) == TCL_ERROR) SWIG_fail;
2846  {
2847  res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_UI, 0 );
2848  if (!SWIG_IsOK(res1)) {
2849  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_a_mat_c" "', argument " "1"" of type '" "UI""'");
2850  }
2851  if (!argp1) {
2852  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_a_mat_c" "', argument " "1"" of type '" "UI""'");
2853  } else {
2854  arg1 = *(reinterpret_cast< UI * >(argp1));
2855  }
2856  }
2857  result = (a_mat_c *)new a_mat_c(arg1);
2858  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_mat_c,0));
2859  return TCL_OK;
2860 fail:
2861  return TCL_ERROR;
2862 }
2863 
2864 
2865 SWIGINTERN int
2866 _wrap_new_a_mat_c__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2867  int arg1 ;
2868  double arg2 ;
2869  int val1 ;
2870  int ecode1 = 0 ;
2871  double val2 ;
2872  int ecode2 = 0 ;
2873  a_mat_c *result = 0 ;
2874 
2875  if (SWIG_GetArgs(interp, objc, objv,"oo:new_a_mat_c i v ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
2876  ecode1 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
2877  if (!SWIG_IsOK(ecode1)) {
2878  SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_a_mat_c" "', argument " "1"" of type '" "int""'");
2879  }
2880  arg1 = static_cast< int >(val1);
2881  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
2882  if (!SWIG_IsOK(ecode2)) {
2883  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_a_mat_c" "', argument " "2"" of type '" "double""'");
2884  }
2885  arg2 = static_cast< double >(val2);
2886  result = (a_mat_c *)new a_mat_c(arg1,arg2);
2887  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_mat_c,0));
2888  return TCL_OK;
2889 fail:
2890  return TCL_ERROR;
2891 }
2892 
2893 
2894 SWIGINTERN int
2895 _wrap_new_a_mat_c__SWIG_3(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2896  int arg1 ;
2897  int val1 ;
2898  int ecode1 = 0 ;
2899  a_mat_c *result = 0 ;
2900 
2901  if (SWIG_GetArgs(interp, objc, objv,"o:new_a_mat_c i ",(void *)0) == TCL_ERROR) SWIG_fail;
2902  ecode1 = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
2903  if (!SWIG_IsOK(ecode1)) {
2904  SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_a_mat_c" "', argument " "1"" of type '" "int""'");
2905  }
2906  arg1 = static_cast< int >(val1);
2907  result = (a_mat_c *)new a_mat_c(arg1);
2908  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_mat_c,0));
2909  return TCL_OK;
2910 fail:
2911  return TCL_ERROR;
2912 }
2913 
2914 
2915 SWIGINTERN int
2916 _wrap_new_a_mat_c(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2917  Tcl_Obj *CONST *argv = objv+1;
2918  int argc = objc-1;
2919  if (argc == 1) {
2920  int _v;
2921  void *vptr = 0;
2922  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_UI, SWIG_POINTER_NO_NULL);
2923  _v = SWIG_CheckState(res);
2924  if (_v) {
2925  return _wrap_new_a_mat_c__SWIG_1(clientData, interp, objc, argv - 1);
2926  }
2927  }
2928  if (argc == 1) {
2929  int _v;
2930  {
2931  int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
2932  _v = SWIG_CheckState(res);
2933  }
2934  if (_v) {
2935  return _wrap_new_a_mat_c__SWIG_3(clientData, interp, objc, argv - 1);
2936  }
2937  }
2938  if (argc == 2) {
2939  int _v;
2940  void *vptr = 0;
2941  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_UI, SWIG_POINTER_NO_NULL);
2942  _v = SWIG_CheckState(res);
2943  if (_v) {
2944  {
2945  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
2946  _v = SWIG_CheckState(res);
2947  }
2948  if (_v) {
2949  return _wrap_new_a_mat_c__SWIG_0(clientData, interp, objc, argv - 1);
2950  }
2951  }
2952  }
2953  if (argc == 2) {
2954  int _v;
2955  {
2956  int res = SWIG_AsVal_int SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
2957  _v = SWIG_CheckState(res);
2958  }
2959  if (_v) {
2960  {
2961  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
2962  _v = SWIG_CheckState(res);
2963  }
2964  if (_v) {
2965  return _wrap_new_a_mat_c__SWIG_2(clientData, interp, objc, argv - 1);
2966  }
2967  }
2968  }
2969 
2970  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'new_a_mat_c'.\n"
2971  " Possible C/C++ prototypes are:\n"
2972  " a_mat_c::a_mat_c(UI,double)\n"
2973  " a_mat_c::a_mat_c(UI)\n"
2974  " a_mat_c::a_mat_c(int,double)\n"
2975  " a_mat_c::a_mat_c(int)\n", TCL_STATIC);
2976  return TCL_ERROR;
2977 }
2978 
2979 
2980 SWIGINTERN int
2981 _wrap_a_mat_c_e___(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
2982  a_mat_c *arg1 = (a_mat_c *) 0 ;
2983  a_mat *arg2 = 0 ;
2984  void *argp1 = 0 ;
2985  int res1 = 0 ;
2986  void *argp2 ;
2987  int res2 = 0 ;
2988  a_mat_c *result = 0 ;
2989 
2990  if (SWIG_GetArgs(interp, objc, objv,"oo:a_mat_c_= self m ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
2991  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_mat_c, 0 | 0 );
2992  if (!SWIG_IsOK(res1)) {
2993  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_mat_c_=" "', argument " "1"" of type '" "a_mat_c *""'");
2994  }
2995  arg1 = reinterpret_cast< a_mat_c * >(argp1);
2996  res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_a_mat, 0 );
2997  if (!SWIG_IsOK(res2)) {
2998  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "a_mat_c_=" "', argument " "2"" of type '" "a_mat const &""'");
2999  }
3000  if (!argp2) {
3001  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_mat_c_=" "', argument " "2"" of type '" "a_mat const &""'");
3002  }
3003  arg2 = reinterpret_cast< a_mat * >(argp2);
3004  result = (a_mat_c *) &(arg1)->operator =((a_mat const &)*arg2);
3005  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_mat_c,0));
3006  return TCL_OK;
3007 fail:
3008  return TCL_ERROR;
3009 }
3010 
3011 
3012 SWIGINTERN int
3013 _wrap_a_mat_c_sumsq(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3014  a_mat_c *arg1 = (a_mat_c *) 0 ;
3015  void *argp1 = 0 ;
3016  int res1 = 0 ;
3017  double result;
3018 
3019  if (SWIG_GetArgs(interp, objc, objv,"o:a_mat_c_sumsq self ",(void *)0) == TCL_ERROR) SWIG_fail;
3020  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_mat_c, 0 | 0 );
3021  if (!SWIG_IsOK(res1)) {
3022  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_mat_c_sumsq" "', argument " "1"" of type '" "a_mat_c const *""'");
3023  }
3024  arg1 = reinterpret_cast< a_mat_c * >(argp1);
3025  result = (double)((a_mat_c const *)arg1)->sumsq();
3026  Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
3027  return TCL_OK;
3028 fail:
3029  return TCL_ERROR;
3030 }
3031 
3032 
3033 SWIGINTERN int
3034 _wrap_a_mat_c_norm(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3035  a_mat_c *arg1 = (a_mat_c *) 0 ;
3036  void *argp1 = 0 ;
3037  int res1 = 0 ;
3038  double result;
3039 
3040  if (SWIG_GetArgs(interp, objc, objv,"o:a_mat_c_norm self ",(void *)0) == TCL_ERROR) SWIG_fail;
3041  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_mat_c, 0 | 0 );
3042  if (!SWIG_IsOK(res1)) {
3043  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_mat_c_norm" "', argument " "1"" of type '" "a_mat_c const *""'");
3044  }
3045  arg1 = reinterpret_cast< a_mat_c * >(argp1);
3046  result = (double)((a_mat_c const *)arg1)->norm();
3047  Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
3048  return TCL_OK;
3049 fail:
3050  return TCL_ERROR;
3051 }
3052 
3053 
3054 SWIGINTERN int
3055 _wrap_a_mat_c_normalise(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3056  a_mat_c *arg1 = (a_mat_c *) 0 ;
3057  void *argp1 = 0 ;
3058  int res1 = 0 ;
3059 
3060  if (SWIG_GetArgs(interp, objc, objv,"o:a_mat_c_normalise self ",(void *)0) == TCL_ERROR) SWIG_fail;
3061  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_mat_c, 0 | 0 );
3062  if (!SWIG_IsOK(res1)) {
3063  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_mat_c_normalise" "', argument " "1"" of type '" "a_mat_c *""'");
3064  }
3065  arg1 = reinterpret_cast< a_mat_c * >(argp1);
3066  (arg1)->normalise();
3067 
3068  return TCL_OK;
3069 fail:
3070  return TCL_ERROR;
3071 }
3072 
3073 
3074 SWIGINTERN int
3075 _wrap_delete_a_mat_c(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3076  a_mat_c *arg1 = (a_mat_c *) 0 ;
3077  void *argp1 = 0 ;
3078  int res1 = 0 ;
3079 
3080  if (SWIG_GetArgs(interp, objc, objv,"o:delete_a_mat_c self ",(void *)0) == TCL_ERROR) SWIG_fail;
3081  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_mat_c, SWIG_POINTER_DISOWN | 0 );
3082  if (!SWIG_IsOK(res1)) {
3083  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_a_mat_c" "', argument " "1"" of type '" "a_mat_c *""'");
3084  }
3085  arg1 = reinterpret_cast< a_mat_c * >(argp1);
3086  delete arg1;
3087 
3088  return TCL_OK;
3089 fail:
3090  return TCL_ERROR;
3091 }
3092 
3093 
3095 a_mat_c *arg1 = (a_mat_c *) obj;
3096 delete arg1;
3097 }
3099  {"=", _wrap_a_mat_c_e___},
3100  {"sumsq", _wrap_a_mat_c_sumsq},
3101  {"norm", _wrap_a_mat_c_norm},
3102  {"normalise", _wrap_a_mat_c_normalise},
3103  {0,0}
3104 };
3106  {0,0,0}
3107 };
3108 static swig_class *swig_a_mat_c_bases[] = {0,0};
3109 static const char * swig_a_mat_c_base_names[] = {"a_mat *",0};
3111 SWIGINTERN int
3112 _wrap_cross(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3113  a_mat_c *arg1 = 0 ;
3114  a_mat_c *arg2 = 0 ;
3115  void *argp1 = 0 ;
3116  int res1 = 0 ;
3117  void *argp2 = 0 ;
3118  int res2 = 0 ;
3119  SwigValueWrapper< a_mat_c > result;
3120 
3121  if (SWIG_GetArgs(interp, objc, objv,"oo:cross a_mat_c & a_mat_c & ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
3122  res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_a_mat_c, 0 );
3123  if (!SWIG_IsOK(res1)) {
3124  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cross" "', argument " "1"" of type '" "a_mat_c &""'");
3125  }
3126  if (!argp1) {
3127  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "cross" "', argument " "1"" of type '" "a_mat_c &""'");
3128  }
3129  arg1 = reinterpret_cast< a_mat_c * >(argp1);
3130  res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_a_mat_c, 0 );
3131  if (!SWIG_IsOK(res2)) {
3132  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cross" "', argument " "2"" of type '" "a_mat_c &""'");
3133  }
3134  if (!argp2) {
3135  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "cross" "', argument " "2"" of type '" "a_mat_c &""'");
3136  }
3137  arg2 = reinterpret_cast< a_mat_c * >(argp2);
3138  result = cross(*arg1,*arg2);
3139  Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new a_mat_c(static_cast< const a_mat_c& >(result))), SWIGTYPE_p_a_mat_c, SWIG_POINTER_OWN | 0 ));
3140  return TCL_OK;
3141 fail:
3142  return TCL_ERROR;
3143 }
3144 
3145 
3146 SWIGINTERN int
3147 _wrap_new_a_2dh__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3148  a_2dh *result = 0 ;
3149 
3150  if (SWIG_GetArgs(interp, objc, objv,":new_a_2dh ") == TCL_ERROR) SWIG_fail;
3151  result = (a_2dh *)new a_2dh();
3152  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_2dh,0));
3153  return TCL_OK;
3154 fail:
3155  return TCL_ERROR;
3156 }
3157 
3158 
3159 SWIGINTERN int
3160 _wrap_new_a_2dh__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3161  double arg1 ;
3162  double arg2 ;
3163  double arg3 ;
3164  double val1 ;
3165  int ecode1 = 0 ;
3166  double val2 ;
3167  int ecode2 = 0 ;
3168  double val3 ;
3169  int ecode3 = 0 ;
3170  a_2dh *result = 0 ;
3171 
3172  if (SWIG_GetArgs(interp, objc, objv,"ooo:new_a_2dh x y t ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
3173  ecode1 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
3174  if (!SWIG_IsOK(ecode1)) {
3175  SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_a_2dh" "', argument " "1"" of type '" "double""'");
3176  }
3177  arg1 = static_cast< double >(val1);
3178  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
3179  if (!SWIG_IsOK(ecode2)) {
3180  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_a_2dh" "', argument " "2"" of type '" "double""'");
3181  }
3182  arg2 = static_cast< double >(val2);
3183  ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
3184  if (!SWIG_IsOK(ecode3)) {
3185  SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_a_2dh" "', argument " "3"" of type '" "double""'");
3186  }
3187  arg3 = static_cast< double >(val3);
3188  result = (a_2dh *)new a_2dh(arg1,arg2,arg3);
3189  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_2dh,0));
3190  return TCL_OK;
3191 fail:
3192  return TCL_ERROR;
3193 }
3194 
3195 
3196 SWIGINTERN int
3197 _wrap_new_a_2dh__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3198  double arg1 ;
3199  double arg2 ;
3200  double val1 ;
3201  int ecode1 = 0 ;
3202  double val2 ;
3203  int ecode2 = 0 ;
3204  a_2dh *result = 0 ;
3205 
3206  if (SWIG_GetArgs(interp, objc, objv,"oo:new_a_2dh x y ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
3207  ecode1 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
3208  if (!SWIG_IsOK(ecode1)) {
3209  SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_a_2dh" "', argument " "1"" of type '" "double""'");
3210  }
3211  arg1 = static_cast< double >(val1);
3212  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
3213  if (!SWIG_IsOK(ecode2)) {
3214  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_a_2dh" "', argument " "2"" of type '" "double""'");
3215  }
3216  arg2 = static_cast< double >(val2);
3217  result = (a_2dh *)new a_2dh(arg1,arg2);
3218  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_2dh,0));
3219  return TCL_OK;
3220 fail:
3221  return TCL_ERROR;
3222 }
3223 
3224 
3225 SWIGINTERN int
3226 _wrap_new_a_2dh__SWIG_3(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3227  a_point2 *arg1 = 0 ;
3228  void *argp1 ;
3229  int res1 = 0 ;
3230  a_2dh *result = 0 ;
3231 
3232  if (SWIG_GetArgs(interp, objc, objv,"o:new_a_2dh a_point2 const & ",(void *)0) == TCL_ERROR) SWIG_fail;
3233  res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_a_point2, 0 );
3234  if (!SWIG_IsOK(res1)) {
3235  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_a_2dh" "', argument " "1"" of type '" "a_point2 const &""'");
3236  }
3237  if (!argp1) {
3238  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_a_2dh" "', argument " "1"" of type '" "a_point2 const &""'");
3239  }
3240  arg1 = reinterpret_cast< a_point2 * >(argp1);
3241  result = (a_2dh *)new a_2dh((a_point2 const &)*arg1);
3242  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_2dh,0));
3243  return TCL_OK;
3244 fail:
3245  return TCL_ERROR;
3246 }
3247 
3248 
3249 SWIGINTERN int
3250 _wrap_new_a_2dh__SWIG_4(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3251  a_mat *arg1 = 0 ;
3252  void *argp1 ;
3253  int res1 = 0 ;
3254  a_2dh *result = 0 ;
3255 
3256  if (SWIG_GetArgs(interp, objc, objv,"o:new_a_2dh m ",(void *)0) == TCL_ERROR) SWIG_fail;
3257  res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_a_mat, 0 );
3258  if (!SWIG_IsOK(res1)) {
3259  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_a_2dh" "', argument " "1"" of type '" "a_mat const &""'");
3260  }
3261  if (!argp1) {
3262  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_a_2dh" "', argument " "1"" of type '" "a_mat const &""'");
3263  }
3264  arg1 = reinterpret_cast< a_mat * >(argp1);
3265  result = (a_2dh *)new a_2dh((a_mat const &)*arg1);
3266  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_2dh,0));
3267  return TCL_OK;
3268 fail:
3269  return TCL_ERROR;
3270 }
3271 
3272 
3273 SWIGINTERN int
3274 _wrap_new_a_2dh(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3275  Tcl_Obj *CONST *argv = objv+1;
3276  int argc = objc-1;
3277  if (argc == 0) {
3278  return _wrap_new_a_2dh__SWIG_0(clientData, interp, objc, argv - 1);
3279  }
3280  if (argc == 1) {
3281  int _v;
3282  void *vptr = 0;
3283  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_point2, SWIG_POINTER_NO_NULL);
3284  _v = SWIG_CheckState(res);
3285  if (_v) {
3286  return _wrap_new_a_2dh__SWIG_3(clientData, interp, objc, argv - 1);
3287  }
3288  }
3289  if (argc == 1) {
3290  int _v;
3291  void *vptr = 0;
3292  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_mat, SWIG_POINTER_NO_NULL);
3293  _v = SWIG_CheckState(res);
3294  if (_v) {
3295  return _wrap_new_a_2dh__SWIG_4(clientData, interp, objc, argv - 1);
3296  }
3297  }
3298  if (argc == 2) {
3299  int _v;
3300  {
3301  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
3302  _v = SWIG_CheckState(res);
3303  }
3304  if (_v) {
3305  {
3306  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
3307  _v = SWIG_CheckState(res);
3308  }
3309  if (_v) {
3310  return _wrap_new_a_2dh__SWIG_2(clientData, interp, objc, argv - 1);
3311  }
3312  }
3313  }
3314  if (argc == 3) {
3315  int _v;
3316  {
3317  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
3318  _v = SWIG_CheckState(res);
3319  }
3320  if (_v) {
3321  {
3322  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
3323  _v = SWIG_CheckState(res);
3324  }
3325  if (_v) {
3326  {
3327  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
3328  _v = SWIG_CheckState(res);
3329  }
3330  if (_v) {
3331  return _wrap_new_a_2dh__SWIG_1(clientData, interp, objc, argv - 1);
3332  }
3333  }
3334  }
3335  }
3336 
3337  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'new_a_2dh'.\n"
3338  " Possible C/C++ prototypes are:\n"
3339  " a_2dh::a_2dh()\n"
3340  " a_2dh::a_2dh(double,double,double)\n"
3341  " a_2dh::a_2dh(double,double)\n"
3342  " a_2dh::a_2dh(a_point2 const &)\n"
3343  " a_2dh::a_2dh(a_mat const &)\n", TCL_STATIC);
3344  return TCL_ERROR;
3345 }
3346 
3347 
3348 SWIGINTERN int
3349 _wrap_a_2dh_help(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3350  std::string result;
3351 
3352  if (SWIG_GetArgs(interp, objc, objv,":a_2dh_help ") == TCL_ERROR) SWIG_fail;
3353  result = a_2dh::help();
3354  Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
3355  return TCL_OK;
3356 fail:
3357  return TCL_ERROR;
3358 }
3359 
3360 
3361 SWIGINTERN int
3362 _wrap_a_2dh_set__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3363  a_2dh *arg1 = (a_2dh *) 0 ;
3364  double arg2 ;
3365  double arg3 ;
3366  double arg4 ;
3367  void *argp1 = 0 ;
3368  int res1 = 0 ;
3369  double val2 ;
3370  int ecode2 = 0 ;
3371  double val3 ;
3372  int ecode3 = 0 ;
3373  double val4 ;
3374  int ecode4 = 0 ;
3375 
3376  if (SWIG_GetArgs(interp, objc, objv,"oooo:a_2dh_set self x y t ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
3377  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_2dh, 0 | 0 );
3378  if (!SWIG_IsOK(res1)) {
3379  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_2dh_set" "', argument " "1"" of type '" "a_2dh *""'");
3380  }
3381  arg1 = reinterpret_cast< a_2dh * >(argp1);
3382  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
3383  if (!SWIG_IsOK(ecode2)) {
3384  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_2dh_set" "', argument " "2"" of type '" "double""'");
3385  }
3386  arg2 = static_cast< double >(val2);
3387  ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
3388  if (!SWIG_IsOK(ecode3)) {
3389  SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "a_2dh_set" "', argument " "3"" of type '" "double""'");
3390  }
3391  arg3 = static_cast< double >(val3);
3392  ecode4 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
3393  if (!SWIG_IsOK(ecode4)) {
3394  SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "a_2dh_set" "', argument " "4"" of type '" "double""'");
3395  }
3396  arg4 = static_cast< double >(val4);
3397  (arg1)->set(arg2,arg3,arg4);
3398 
3399  return TCL_OK;
3400 fail:
3401  return TCL_ERROR;
3402 }
3403 
3404 
3405 SWIGINTERN int
3406 _wrap_a_2dh_set__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3407  a_2dh *arg1 = (a_2dh *) 0 ;
3408  double arg2 ;
3409  double arg3 ;
3410  void *argp1 = 0 ;
3411  int res1 = 0 ;
3412  double val2 ;
3413  int ecode2 = 0 ;
3414  double val3 ;
3415  int ecode3 = 0 ;
3416 
3417  if (SWIG_GetArgs(interp, objc, objv,"ooo:a_2dh_set self x y ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
3418  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_2dh, 0 | 0 );
3419  if (!SWIG_IsOK(res1)) {
3420  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_2dh_set" "', argument " "1"" of type '" "a_2dh *""'");
3421  }
3422  arg1 = reinterpret_cast< a_2dh * >(argp1);
3423  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
3424  if (!SWIG_IsOK(ecode2)) {
3425  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_2dh_set" "', argument " "2"" of type '" "double""'");
3426  }
3427  arg2 = static_cast< double >(val2);
3428  ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
3429  if (!SWIG_IsOK(ecode3)) {
3430  SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "a_2dh_set" "', argument " "3"" of type '" "double""'");
3431  }
3432  arg3 = static_cast< double >(val3);
3433  (arg1)->set(arg2,arg3);
3434 
3435  return TCL_OK;
3436 fail:
3437  return TCL_ERROR;
3438 }
3439 
3440 
3441 SWIGINTERN int
3442 _wrap_a_2dh_set__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3443  a_2dh *arg1 = (a_2dh *) 0 ;
3444  a_point2 *arg2 = 0 ;
3445  void *argp1 = 0 ;
3446  int res1 = 0 ;
3447  void *argp2 ;
3448  int res2 = 0 ;
3449 
3450  if (SWIG_GetArgs(interp, objc, objv,"oo:a_2dh_set self a_point2 const & ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
3451  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_2dh, 0 | 0 );
3452  if (!SWIG_IsOK(res1)) {
3453  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_2dh_set" "', argument " "1"" of type '" "a_2dh *""'");
3454  }
3455  arg1 = reinterpret_cast< a_2dh * >(argp1);
3456  res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_a_point2, 0 );
3457  if (!SWIG_IsOK(res2)) {
3458  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "a_2dh_set" "', argument " "2"" of type '" "a_point2 const &""'");
3459  }
3460  if (!argp2) {
3461  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_2dh_set" "', argument " "2"" of type '" "a_point2 const &""'");
3462  }
3463  arg2 = reinterpret_cast< a_point2 * >(argp2);
3464  (arg1)->set((a_point2 const &)*arg2);
3465 
3466  return TCL_OK;
3467 fail:
3468  return TCL_ERROR;
3469 }
3470 
3471 
3472 SWIGINTERN int
3473 _wrap_a_2dh_set(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3474  Tcl_Obj *CONST *argv = objv+1;
3475  int argc = objc-1;
3476  if (argc == 2) {
3477  int _v;
3478  void *vptr = 0;
3479  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_2dh, 0);
3480  _v = SWIG_CheckState(res);
3481  if (_v) {
3482  void *vptr = 0;
3483  int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_a_point2, SWIG_POINTER_NO_NULL);
3484  _v = SWIG_CheckState(res);
3485  if (_v) {
3486  return _wrap_a_2dh_set__SWIG_2(clientData, interp, objc, argv - 1);
3487  }
3488  }
3489  }
3490  if (argc == 3) {
3491  int _v;
3492  void *vptr = 0;
3493  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_2dh, 0);
3494  _v = SWIG_CheckState(res);
3495  if (_v) {
3496  {
3497  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
3498  _v = SWIG_CheckState(res);
3499  }
3500  if (_v) {
3501  {
3502  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
3503  _v = SWIG_CheckState(res);
3504  }
3505  if (_v) {
3506  return _wrap_a_2dh_set__SWIG_1(clientData, interp, objc, argv - 1);
3507  }
3508  }
3509  }
3510  }
3511  if (argc == 4) {
3512  int _v;
3513  void *vptr = 0;
3514  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_2dh, 0);
3515  _v = SWIG_CheckState(res);
3516  if (_v) {
3517  {
3518  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
3519  _v = SWIG_CheckState(res);
3520  }
3521  if (_v) {
3522  {
3523  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
3524  _v = SWIG_CheckState(res);
3525  }
3526  if (_v) {
3527  {
3528  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
3529  _v = SWIG_CheckState(res);
3530  }
3531  if (_v) {
3532  return _wrap_a_2dh_set__SWIG_0(clientData, interp, objc, argv - 1);
3533  }
3534  }
3535  }
3536  }
3537  }
3538 
3539  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'a_2dh_set'.\n"
3540  " Possible C/C++ prototypes are:\n"
3541  " a_2dh::set(double,double,double)\n"
3542  " a_2dh::set(double,double)\n"
3543  " a_2dh::set(a_point2 const &)\n", TCL_STATIC);
3544  return TCL_ERROR;
3545 }
3546 
3547 
3548 SWIGINTERN int
3549 _wrap_a_2dh_point2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3550  a_2dh *arg1 = (a_2dh *) 0 ;
3551  void *argp1 = 0 ;
3552  int res1 = 0 ;
3553  a_point2 result;
3554 
3555  if (SWIG_GetArgs(interp, objc, objv,"o:a_2dh_point2 self ",(void *)0) == TCL_ERROR) SWIG_fail;
3556  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_2dh, 0 | 0 );
3557  if (!SWIG_IsOK(res1)) {
3558  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_2dh_point2" "', argument " "1"" of type '" "a_2dh const *""'");
3559  }
3560  arg1 = reinterpret_cast< a_2dh * >(argp1);
3561  result = ((a_2dh const *)arg1)->point2();
3562  Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new a_point2(static_cast< const a_point2& >(result))), SWIGTYPE_p_a_point2, SWIG_POINTER_OWN | 0 ));
3563  return TCL_OK;
3564 fail:
3565  return TCL_ERROR;
3566 }
3567 
3568 
3569 SWIGINTERN int
3570 _wrap_a_2dh_X__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3571  a_2dh *arg1 = (a_2dh *) 0 ;
3572  double arg2 ;
3573  void *argp1 = 0 ;
3574  int res1 = 0 ;
3575  double val2 ;
3576  int ecode2 = 0 ;
3577 
3578  if (SWIG_GetArgs(interp, objc, objv,"oo:a_2dh_X self v ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
3579  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_2dh, 0 | 0 );
3580  if (!SWIG_IsOK(res1)) {
3581  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_2dh_X" "', argument " "1"" of type '" "a_2dh *""'");
3582  }
3583  arg1 = reinterpret_cast< a_2dh * >(argp1);
3584  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
3585  if (!SWIG_IsOK(ecode2)) {
3586  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_2dh_X" "', argument " "2"" of type '" "double""'");
3587  }
3588  arg2 = static_cast< double >(val2);
3589  (arg1)->X(arg2);
3590 
3591  return TCL_OK;
3592 fail:
3593  return TCL_ERROR;
3594 }
3595 
3596 
3597 SWIGINTERN int
3598 _wrap_a_2dh_Y__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3599  a_2dh *arg1 = (a_2dh *) 0 ;
3600  double arg2 ;
3601  void *argp1 = 0 ;
3602  int res1 = 0 ;
3603  double val2 ;
3604  int ecode2 = 0 ;
3605 
3606  if (SWIG_GetArgs(interp, objc, objv,"oo:a_2dh_Y self v ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
3607  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_2dh, 0 | 0 );
3608  if (!SWIG_IsOK(res1)) {
3609  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_2dh_Y" "', argument " "1"" of type '" "a_2dh *""'");
3610  }
3611  arg1 = reinterpret_cast< a_2dh * >(argp1);
3612  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
3613  if (!SWIG_IsOK(ecode2)) {
3614  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_2dh_Y" "', argument " "2"" of type '" "double""'");
3615  }
3616  arg2 = static_cast< double >(val2);
3617  (arg1)->Y(arg2);
3618 
3619  return TCL_OK;
3620 fail:
3621  return TCL_ERROR;
3622 }
3623 
3624 
3625 SWIGINTERN int
3626 _wrap_a_2dh_T__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3627  a_2dh *arg1 = (a_2dh *) 0 ;
3628  double arg2 ;
3629  void *argp1 = 0 ;
3630  int res1 = 0 ;
3631  double val2 ;
3632  int ecode2 = 0 ;
3633 
3634  if (SWIG_GetArgs(interp, objc, objv,"oo:a_2dh_T self v ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
3635  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_2dh, 0 | 0 );
3636  if (!SWIG_IsOK(res1)) {
3637  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_2dh_T" "', argument " "1"" of type '" "a_2dh *""'");
3638  }
3639  arg1 = reinterpret_cast< a_2dh * >(argp1);
3640  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
3641  if (!SWIG_IsOK(ecode2)) {
3642  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_2dh_T" "', argument " "2"" of type '" "double""'");
3643  }
3644  arg2 = static_cast< double >(val2);
3645  (arg1)->T(arg2);
3646 
3647  return TCL_OK;
3648 fail:
3649  return TCL_ERROR;
3650 }
3651 
3652 
3653 SWIGINTERN int
3654 _wrap_a_2dh_X__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3655  a_2dh *arg1 = (a_2dh *) 0 ;
3656  void *argp1 = 0 ;
3657  int res1 = 0 ;
3658  double result;
3659 
3660  if (SWIG_GetArgs(interp, objc, objv,"o:a_2dh_X self ",(void *)0) == TCL_ERROR) SWIG_fail;
3661  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_2dh, 0 | 0 );
3662  if (!SWIG_IsOK(res1)) {
3663  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_2dh_X" "', argument " "1"" of type '" "a_2dh const *""'");
3664  }
3665  arg1 = reinterpret_cast< a_2dh * >(argp1);
3666  result = (double)((a_2dh const *)arg1)->X();
3667  Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
3668  return TCL_OK;
3669 fail:
3670  return TCL_ERROR;
3671 }
3672 
3673 
3674 SWIGINTERN int
3675 _wrap_a_2dh_X(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3676  Tcl_Obj *CONST *argv = objv+1;
3677  int argc = objc-1;
3678  if (argc == 1) {
3679  int _v;
3680  void *vptr = 0;
3681  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_2dh, 0);
3682  _v = SWIG_CheckState(res);
3683  if (_v) {
3684  return _wrap_a_2dh_X__SWIG_1(clientData, interp, objc, argv - 1);
3685  }
3686  }
3687  if (argc == 2) {
3688  int _v;
3689  void *vptr = 0;
3690  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_2dh, 0);
3691  _v = SWIG_CheckState(res);
3692  if (_v) {
3693  {
3694  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
3695  _v = SWIG_CheckState(res);
3696  }
3697  if (_v) {
3698  return _wrap_a_2dh_X__SWIG_0(clientData, interp, objc, argv - 1);
3699  }
3700  }
3701  }
3702 
3703  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'a_2dh_X'.\n"
3704  " Possible C/C++ prototypes are:\n"
3705  " a_2dh::X(double)\n"
3706  " a_2dh::X() const\n", TCL_STATIC);
3707  return TCL_ERROR;
3708 }
3709 
3710 
3711 SWIGINTERN int
3712 _wrap_a_2dh_Y__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3713  a_2dh *arg1 = (a_2dh *) 0 ;
3714  void *argp1 = 0 ;
3715  int res1 = 0 ;
3716  double result;
3717 
3718  if (SWIG_GetArgs(interp, objc, objv,"o:a_2dh_Y self ",(void *)0) == TCL_ERROR) SWIG_fail;
3719  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_2dh, 0 | 0 );
3720  if (!SWIG_IsOK(res1)) {
3721  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_2dh_Y" "', argument " "1"" of type '" "a_2dh const *""'");
3722  }
3723  arg1 = reinterpret_cast< a_2dh * >(argp1);
3724  result = (double)((a_2dh const *)arg1)->Y();
3725  Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
3726  return TCL_OK;
3727 fail:
3728  return TCL_ERROR;
3729 }
3730 
3731 
3732 SWIGINTERN int
3733 _wrap_a_2dh_Y(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3734  Tcl_Obj *CONST *argv = objv+1;
3735  int argc = objc-1;
3736  if (argc == 1) {
3737  int _v;
3738  void *vptr = 0;
3739  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_2dh, 0);
3740  _v = SWIG_CheckState(res);
3741  if (_v) {
3742  return _wrap_a_2dh_Y__SWIG_1(clientData, interp, objc, argv - 1);
3743  }
3744  }
3745  if (argc == 2) {
3746  int _v;
3747  void *vptr = 0;
3748  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_2dh, 0);
3749  _v = SWIG_CheckState(res);
3750  if (_v) {
3751  {
3752  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
3753  _v = SWIG_CheckState(res);
3754  }
3755  if (_v) {
3756  return _wrap_a_2dh_Y__SWIG_0(clientData, interp, objc, argv - 1);
3757  }
3758  }
3759  }
3760 
3761  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'a_2dh_Y'.\n"
3762  " Possible C/C++ prototypes are:\n"
3763  " a_2dh::Y(double)\n"
3764  " a_2dh::Y() const\n", TCL_STATIC);
3765  return TCL_ERROR;
3766 }
3767 
3768 
3769 SWIGINTERN int
3770 _wrap_a_2dh_T__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3771  a_2dh *arg1 = (a_2dh *) 0 ;
3772  void *argp1 = 0 ;
3773  int res1 = 0 ;
3774  double result;
3775 
3776  if (SWIG_GetArgs(interp, objc, objv,"o:a_2dh_T self ",(void *)0) == TCL_ERROR) SWIG_fail;
3777  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_2dh, 0 | 0 );
3778  if (!SWIG_IsOK(res1)) {
3779  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_2dh_T" "', argument " "1"" of type '" "a_2dh const *""'");
3780  }
3781  arg1 = reinterpret_cast< a_2dh * >(argp1);
3782  result = (double)((a_2dh const *)arg1)->T();
3783  Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
3784  return TCL_OK;
3785 fail:
3786  return TCL_ERROR;
3787 }
3788 
3789 
3790 SWIGINTERN int
3791 _wrap_a_2dh_T(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3792  Tcl_Obj *CONST *argv = objv+1;
3793  int argc = objc-1;
3794  if (argc == 1) {
3795  int _v;
3796  void *vptr = 0;
3797  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_2dh, 0);
3798  _v = SWIG_CheckState(res);
3799  if (_v) {
3800  return _wrap_a_2dh_T__SWIG_1(clientData, interp, objc, argv - 1);
3801  }
3802  }
3803  if (argc == 2) {
3804  int _v;
3805  void *vptr = 0;
3806  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_2dh, 0);
3807  _v = SWIG_CheckState(res);
3808  if (_v) {
3809  {
3810  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
3811  _v = SWIG_CheckState(res);
3812  }
3813  if (_v) {
3814  return _wrap_a_2dh_T__SWIG_0(clientData, interp, objc, argv - 1);
3815  }
3816  }
3817  }
3818 
3819  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'a_2dh_T'.\n"
3820  " Possible C/C++ prototypes are:\n"
3821  " a_2dh::T(double)\n"
3822  " a_2dh::T() const\n", TCL_STATIC);
3823  return TCL_ERROR;
3824 }
3825 
3826 
3827 SWIGINTERN int
3828 _wrap_a_2dh_x(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3829  a_2dh *arg1 = (a_2dh *) 0 ;
3830  void *argp1 = 0 ;
3831  int res1 = 0 ;
3832  double result;
3833 
3834  if (SWIG_GetArgs(interp, objc, objv,"o:a_2dh_x self ",(void *)0) == TCL_ERROR) SWIG_fail;
3835  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_2dh, 0 | 0 );
3836  if (!SWIG_IsOK(res1)) {
3837  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_2dh_x" "', argument " "1"" of type '" "a_2dh const *""'");
3838  }
3839  arg1 = reinterpret_cast< a_2dh * >(argp1);
3840  result = (double)((a_2dh const *)arg1)->x();
3841  Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
3842  return TCL_OK;
3843 fail:
3844  return TCL_ERROR;
3845 }
3846 
3847 
3848 SWIGINTERN int
3849 _wrap_a_2dh_y(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3850  a_2dh *arg1 = (a_2dh *) 0 ;
3851  void *argp1 = 0 ;
3852  int res1 = 0 ;
3853  double result;
3854 
3855  if (SWIG_GetArgs(interp, objc, objv,"o:a_2dh_y self ",(void *)0) == TCL_ERROR) SWIG_fail;
3856  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_2dh, 0 | 0 );
3857  if (!SWIG_IsOK(res1)) {
3858  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_2dh_y" "', argument " "1"" of type '" "a_2dh const *""'");
3859  }
3860  arg1 = reinterpret_cast< a_2dh * >(argp1);
3861  result = (double)((a_2dh const *)arg1)->y();
3862  Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
3863  return TCL_OK;
3864 fail:
3865  return TCL_ERROR;
3866 }
3867 
3868 
3869 SWIGINTERN int
3870 _wrap_a_2dh_print(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3871  a_2dh *arg1 = (a_2dh *) 0 ;
3872  void *argp1 = 0 ;
3873  int res1 = 0 ;
3874  std::string result;
3875 
3876  if (SWIG_GetArgs(interp, objc, objv,"o:a_2dh_print self ",(void *)0) == TCL_ERROR) SWIG_fail;
3877  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_2dh, 0 | 0 );
3878  if (!SWIG_IsOK(res1)) {
3879  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_2dh_print" "', argument " "1"" of type '" "a_2dh *""'");
3880  }
3881  arg1 = reinterpret_cast< a_2dh * >(argp1);
3882  result = a_2dh_print(arg1);
3883  Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
3884  return TCL_OK;
3885 fail:
3886  return TCL_ERROR;
3887 }
3888 
3889 
3890 SWIGINTERN int
3891 _wrap_delete_a_2dh(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3892  a_2dh *arg1 = (a_2dh *) 0 ;
3893  void *argp1 = 0 ;
3894  int res1 = 0 ;
3895 
3896  if (SWIG_GetArgs(interp, objc, objv,"o:delete_a_2dh self ",(void *)0) == TCL_ERROR) SWIG_fail;
3897  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_2dh, SWIG_POINTER_DISOWN | 0 );
3898  if (!SWIG_IsOK(res1)) {
3899  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_a_2dh" "', argument " "1"" of type '" "a_2dh *""'");
3900  }
3901  arg1 = reinterpret_cast< a_2dh * >(argp1);
3902  delete arg1;
3903 
3904  return TCL_OK;
3905 fail:
3906  return TCL_ERROR;
3907 }
3908 
3909 
3911 a_2dh *arg1 = (a_2dh *) obj;
3912 delete arg1;
3913 }
3915  {"set", _wrap_a_2dh_set},
3916  {"point2", _wrap_a_2dh_point2},
3917  {"X", _wrap_a_2dh_X},
3918  {"Y", _wrap_a_2dh_Y},
3919  {"T", _wrap_a_2dh_T},
3920  {"x", _wrap_a_2dh_x},
3921  {"y", _wrap_a_2dh_y},
3922  {"print", _wrap_a_2dh_print},
3923  {0,0}
3924 };
3926  {0,0,0}
3927 };
3928 static swig_class *swig_a_2dh_bases[] = {0,0};
3929 static const char * swig_a_2dh_base_names[] = {"a_mat_c *",0};
3931 SWIGINTERN int
3932 _wrap_new_a_3dh__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3933  a_3dh *result = 0 ;
3934 
3935  if (SWIG_GetArgs(interp, objc, objv,":new_a_3dh ") == TCL_ERROR) SWIG_fail;
3936  result = (a_3dh *)new a_3dh();
3937  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_3dh,0));
3938  return TCL_OK;
3939 fail:
3940  return TCL_ERROR;
3941 }
3942 
3943 
3944 SWIGINTERN int
3945 _wrap_new_a_3dh__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3946  double arg1 ;
3947  double arg2 ;
3948  double arg3 ;
3949  double arg4 ;
3950  double val1 ;
3951  int ecode1 = 0 ;
3952  double val2 ;
3953  int ecode2 = 0 ;
3954  double val3 ;
3955  int ecode3 = 0 ;
3956  double val4 ;
3957  int ecode4 = 0 ;
3958  a_3dh *result = 0 ;
3959 
3960  if (SWIG_GetArgs(interp, objc, objv,"oooo:new_a_3dh x y z t ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
3961  ecode1 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
3962  if (!SWIG_IsOK(ecode1)) {
3963  SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_a_3dh" "', argument " "1"" of type '" "double""'");
3964  }
3965  arg1 = static_cast< double >(val1);
3966  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
3967  if (!SWIG_IsOK(ecode2)) {
3968  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_a_3dh" "', argument " "2"" of type '" "double""'");
3969  }
3970  arg2 = static_cast< double >(val2);
3971  ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
3972  if (!SWIG_IsOK(ecode3)) {
3973  SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_a_3dh" "', argument " "3"" of type '" "double""'");
3974  }
3975  arg3 = static_cast< double >(val3);
3976  ecode4 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
3977  if (!SWIG_IsOK(ecode4)) {
3978  SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_a_3dh" "', argument " "4"" of type '" "double""'");
3979  }
3980  arg4 = static_cast< double >(val4);
3981  result = (a_3dh *)new a_3dh(arg1,arg2,arg3,arg4);
3982  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_3dh,0));
3983  return TCL_OK;
3984 fail:
3985  return TCL_ERROR;
3986 }
3987 
3988 
3989 SWIGINTERN int
3990 _wrap_new_a_3dh__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
3991  double arg1 ;
3992  double arg2 ;
3993  double arg3 ;
3994  double val1 ;
3995  int ecode1 = 0 ;
3996  double val2 ;
3997  int ecode2 = 0 ;
3998  double val3 ;
3999  int ecode3 = 0 ;
4000  a_3dh *result = 0 ;
4001 
4002  if (SWIG_GetArgs(interp, objc, objv,"ooo:new_a_3dh x y z ",(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
4003  ecode1 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
4004  if (!SWIG_IsOK(ecode1)) {
4005  SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_a_3dh" "', argument " "1"" of type '" "double""'");
4006  }
4007  arg1 = static_cast< double >(val1);
4008  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
4009  if (!SWIG_IsOK(ecode2)) {
4010  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_a_3dh" "', argument " "2"" of type '" "double""'");
4011  }
4012  arg2 = static_cast< double >(val2);
4013  ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
4014  if (!SWIG_IsOK(ecode3)) {
4015  SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_a_3dh" "', argument " "3"" of type '" "double""'");
4016  }
4017  arg3 = static_cast< double >(val3);
4018  result = (a_3dh *)new a_3dh(arg1,arg2,arg3);
4019  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_3dh,0));
4020  return TCL_OK;
4021 fail:
4022  return TCL_ERROR;
4023 }
4024 
4025 
4026 SWIGINTERN int
4027 _wrap_new_a_3dh__SWIG_3(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4028  double *arg1 = (double *) 0 ;
4029  void *argp1 = 0 ;
4030  int res1 = 0 ;
4031  a_3dh *result = 0 ;
4032 
4033  if (SWIG_GetArgs(interp, objc, objv,"o:new_a_3dh x ",(void *)0) == TCL_ERROR) SWIG_fail;
4034  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_double, 0 | 0 );
4035  if (!SWIG_IsOK(res1)) {
4036  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_a_3dh" "', argument " "1"" of type '" "double *""'");
4037  }
4038  arg1 = reinterpret_cast< double * >(argp1);
4039  result = (a_3dh *)new a_3dh(arg1);
4040  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_3dh,0));
4041  return TCL_OK;
4042 fail:
4043  return TCL_ERROR;
4044 }
4045 
4046 
4047 SWIGINTERN int
4048 _wrap_new_a_3dh__SWIG_4(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4049  a_point *arg1 = 0 ;
4050  void *argp1 ;
4051  int res1 = 0 ;
4052  a_3dh *result = 0 ;
4053 
4054  if (SWIG_GetArgs(interp, objc, objv,"o:new_a_3dh a_point const & ",(void *)0) == TCL_ERROR) SWIG_fail;
4055  res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_a_point, 0 );
4056  if (!SWIG_IsOK(res1)) {
4057  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_a_3dh" "', argument " "1"" of type '" "a_point const &""'");
4058  }
4059  if (!argp1) {
4060  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_a_3dh" "', argument " "1"" of type '" "a_point const &""'");
4061  }
4062  arg1 = reinterpret_cast< a_point * >(argp1);
4063  result = (a_3dh *)new a_3dh((a_point const &)*arg1);
4064  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_3dh,0));
4065  return TCL_OK;
4066 fail:
4067  return TCL_ERROR;
4068 }
4069 
4070 
4071 SWIGINTERN int
4072 _wrap_new_a_3dh__SWIG_5(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4073  a_mat *arg1 = 0 ;
4074  void *argp1 ;
4075  int res1 = 0 ;
4076  a_3dh *result = 0 ;
4077 
4078  if (SWIG_GetArgs(interp, objc, objv,"o:new_a_3dh m ",(void *)0) == TCL_ERROR) SWIG_fail;
4079  res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_a_mat, 0 );
4080  if (!SWIG_IsOK(res1)) {
4081  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_a_3dh" "', argument " "1"" of type '" "a_mat const &""'");
4082  }
4083  if (!argp1) {
4084  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_a_3dh" "', argument " "1"" of type '" "a_mat const &""'");
4085  }
4086  arg1 = reinterpret_cast< a_mat * >(argp1);
4087  result = (a_3dh *)new a_3dh((a_mat const &)*arg1);
4088  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_3dh,0));
4089  return TCL_OK;
4090 fail:
4091  return TCL_ERROR;
4092 }
4093 
4094 
4095 SWIGINTERN int
4096 _wrap_new_a_3dh(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4097  Tcl_Obj *CONST *argv = objv+1;
4098  int argc = objc-1;
4099  if (argc == 0) {
4100  return _wrap_new_a_3dh__SWIG_0(clientData, interp, objc, argv - 1);
4101  }
4102  if (argc == 1) {
4103  int _v;
4104  void *vptr = 0;
4105  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_double, 0);
4106  _v = SWIG_CheckState(res);
4107  if (_v) {
4108  return _wrap_new_a_3dh__SWIG_3(clientData, interp, objc, argv - 1);
4109  }
4110  }
4111  if (argc == 1) {
4112  int _v;
4113  void *vptr = 0;
4114  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_point, SWIG_POINTER_NO_NULL);
4115  _v = SWIG_CheckState(res);
4116  if (_v) {
4117  return _wrap_new_a_3dh__SWIG_4(clientData, interp, objc, argv - 1);
4118  }
4119  }
4120  if (argc == 1) {
4121  int _v;
4122  void *vptr = 0;
4123  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_mat, SWIG_POINTER_NO_NULL);
4124  _v = SWIG_CheckState(res);
4125  if (_v) {
4126  return _wrap_new_a_3dh__SWIG_5(clientData, interp, objc, argv - 1);
4127  }
4128  }
4129  if (argc == 3) {
4130  int _v;
4131  {
4132  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
4133  _v = SWIG_CheckState(res);
4134  }
4135  if (_v) {
4136  {
4137  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
4138  _v = SWIG_CheckState(res);
4139  }
4140  if (_v) {
4141  {
4142  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
4143  _v = SWIG_CheckState(res);
4144  }
4145  if (_v) {
4146  return _wrap_new_a_3dh__SWIG_2(clientData, interp, objc, argv - 1);
4147  }
4148  }
4149  }
4150  }
4151  if (argc == 4) {
4152  int _v;
4153  {
4154  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
4155  _v = SWIG_CheckState(res);
4156  }
4157  if (_v) {
4158  {
4159  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
4160  _v = SWIG_CheckState(res);
4161  }
4162  if (_v) {
4163  {
4164  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
4165  _v = SWIG_CheckState(res);
4166  }
4167  if (_v) {
4168  {
4169  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
4170  _v = SWIG_CheckState(res);
4171  }
4172  if (_v) {
4173  return _wrap_new_a_3dh__SWIG_1(clientData, interp, objc, argv - 1);
4174  }
4175  }
4176  }
4177  }
4178  }
4179 
4180  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'new_a_3dh'.\n"
4181  " Possible C/C++ prototypes are:\n"
4182  " a_3dh::a_3dh()\n"
4183  " a_3dh::a_3dh(double,double,double,double)\n"
4184  " a_3dh::a_3dh(double,double,double)\n"
4185  " a_3dh::a_3dh(double *)\n"
4186  " a_3dh::a_3dh(a_point const &)\n"
4187  " a_3dh::a_3dh(a_mat const &)\n", TCL_STATIC);
4188  return TCL_ERROR;
4189 }
4190 
4191 
4192 SWIGINTERN int
4193 _wrap_a_3dh_help(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4194  std::string result;
4195 
4196  if (SWIG_GetArgs(interp, objc, objv,":a_3dh_help ") == TCL_ERROR) SWIG_fail;
4197  result = a_3dh::help();
4198  Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
4199  return TCL_OK;
4200 fail:
4201  return TCL_ERROR;
4202 }
4203 
4204 
4205 SWIGINTERN int
4206 _wrap_a_3dh_X__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4207  a_3dh *arg1 = (a_3dh *) 0 ;
4208  double arg2 ;
4209  void *argp1 = 0 ;
4210  int res1 = 0 ;
4211  double val2 ;
4212  int ecode2 = 0 ;
4213 
4214  if (SWIG_GetArgs(interp, objc, objv,"oo:a_3dh_X self v ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
4215  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_3dh, 0 | 0 );
4216  if (!SWIG_IsOK(res1)) {
4217  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_3dh_X" "', argument " "1"" of type '" "a_3dh *""'");
4218  }
4219  arg1 = reinterpret_cast< a_3dh * >(argp1);
4220  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
4221  if (!SWIG_IsOK(ecode2)) {
4222  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_3dh_X" "', argument " "2"" of type '" "double""'");
4223  }
4224  arg2 = static_cast< double >(val2);
4225  (arg1)->X(arg2);
4226 
4227  return TCL_OK;
4228 fail:
4229  return TCL_ERROR;
4230 }
4231 
4232 
4233 SWIGINTERN int
4234 _wrap_a_3dh_Y__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4235  a_3dh *arg1 = (a_3dh *) 0 ;
4236  double arg2 ;
4237  void *argp1 = 0 ;
4238  int res1 = 0 ;
4239  double val2 ;
4240  int ecode2 = 0 ;
4241 
4242  if (SWIG_GetArgs(interp, objc, objv,"oo:a_3dh_Y self v ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
4243  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_3dh, 0 | 0 );
4244  if (!SWIG_IsOK(res1)) {
4245  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_3dh_Y" "', argument " "1"" of type '" "a_3dh *""'");
4246  }
4247  arg1 = reinterpret_cast< a_3dh * >(argp1);
4248  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
4249  if (!SWIG_IsOK(ecode2)) {
4250  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_3dh_Y" "', argument " "2"" of type '" "double""'");
4251  }
4252  arg2 = static_cast< double >(val2);
4253  (arg1)->Y(arg2);
4254 
4255  return TCL_OK;
4256 fail:
4257  return TCL_ERROR;
4258 }
4259 
4260 
4261 SWIGINTERN int
4262 _wrap_a_3dh_Z__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4263  a_3dh *arg1 = (a_3dh *) 0 ;
4264  double arg2 ;
4265  void *argp1 = 0 ;
4266  int res1 = 0 ;
4267  double val2 ;
4268  int ecode2 = 0 ;
4269 
4270  if (SWIG_GetArgs(interp, objc, objv,"oo:a_3dh_Z self v ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
4271  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_3dh, 0 | 0 );
4272  if (!SWIG_IsOK(res1)) {
4273  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_3dh_Z" "', argument " "1"" of type '" "a_3dh *""'");
4274  }
4275  arg1 = reinterpret_cast< a_3dh * >(argp1);
4276  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
4277  if (!SWIG_IsOK(ecode2)) {
4278  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_3dh_Z" "', argument " "2"" of type '" "double""'");
4279  }
4280  arg2 = static_cast< double >(val2);
4281  (arg1)->Z(arg2);
4282 
4283  return TCL_OK;
4284 fail:
4285  return TCL_ERROR;
4286 }
4287 
4288 
4289 SWIGINTERN int
4290 _wrap_a_3dh_T__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4291  a_3dh *arg1 = (a_3dh *) 0 ;
4292  double arg2 ;
4293  void *argp1 = 0 ;
4294  int res1 = 0 ;
4295  double val2 ;
4296  int ecode2 = 0 ;
4297 
4298  if (SWIG_GetArgs(interp, objc, objv,"oo:a_3dh_T self v ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
4299  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_3dh, 0 | 0 );
4300  if (!SWIG_IsOK(res1)) {
4301  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_3dh_T" "', argument " "1"" of type '" "a_3dh *""'");
4302  }
4303  arg1 = reinterpret_cast< a_3dh * >(argp1);
4304  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
4305  if (!SWIG_IsOK(ecode2)) {
4306  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_3dh_T" "', argument " "2"" of type '" "double""'");
4307  }
4308  arg2 = static_cast< double >(val2);
4309  (arg1)->T(arg2);
4310 
4311  return TCL_OK;
4312 fail:
4313  return TCL_ERROR;
4314 }
4315 
4316 
4317 SWIGINTERN int
4318 _wrap_a_3dh_X__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4319  a_3dh *arg1 = (a_3dh *) 0 ;
4320  void *argp1 = 0 ;
4321  int res1 = 0 ;
4322  double result;
4323 
4324  if (SWIG_GetArgs(interp, objc, objv,"o:a_3dh_X self ",(void *)0) == TCL_ERROR) SWIG_fail;
4325  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_3dh, 0 | 0 );
4326  if (!SWIG_IsOK(res1)) {
4327  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_3dh_X" "', argument " "1"" of type '" "a_3dh const *""'");
4328  }
4329  arg1 = reinterpret_cast< a_3dh * >(argp1);
4330  result = (double)((a_3dh const *)arg1)->X();
4331  Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
4332  return TCL_OK;
4333 fail:
4334  return TCL_ERROR;
4335 }
4336 
4337 
4338 SWIGINTERN int
4339 _wrap_a_3dh_X(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4340  Tcl_Obj *CONST *argv = objv+1;
4341  int argc = objc-1;
4342  if (argc == 1) {
4343  int _v;
4344  void *vptr = 0;
4345  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_3dh, 0);
4346  _v = SWIG_CheckState(res);
4347  if (_v) {
4348  return _wrap_a_3dh_X__SWIG_1(clientData, interp, objc, argv - 1);
4349  }
4350  }
4351  if (argc == 2) {
4352  int _v;
4353  void *vptr = 0;
4354  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_3dh, 0);
4355  _v = SWIG_CheckState(res);
4356  if (_v) {
4357  {
4358  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
4359  _v = SWIG_CheckState(res);
4360  }
4361  if (_v) {
4362  return _wrap_a_3dh_X__SWIG_0(clientData, interp, objc, argv - 1);
4363  }
4364  }
4365  }
4366 
4367  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'a_3dh_X'.\n"
4368  " Possible C/C++ prototypes are:\n"
4369  " a_3dh::X(double)\n"
4370  " a_3dh::X() const\n", TCL_STATIC);
4371  return TCL_ERROR;
4372 }
4373 
4374 
4375 SWIGINTERN int
4376 _wrap_a_3dh_Y__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4377  a_3dh *arg1 = (a_3dh *) 0 ;
4378  void *argp1 = 0 ;
4379  int res1 = 0 ;
4380  double result;
4381 
4382  if (SWIG_GetArgs(interp, objc, objv,"o:a_3dh_Y self ",(void *)0) == TCL_ERROR) SWIG_fail;
4383  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_3dh, 0 | 0 );
4384  if (!SWIG_IsOK(res1)) {
4385  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_3dh_Y" "', argument " "1"" of type '" "a_3dh const *""'");
4386  }
4387  arg1 = reinterpret_cast< a_3dh * >(argp1);
4388  result = (double)((a_3dh const *)arg1)->Y();
4389  Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
4390  return TCL_OK;
4391 fail:
4392  return TCL_ERROR;
4393 }
4394 
4395 
4396 SWIGINTERN int
4397 _wrap_a_3dh_Y(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4398  Tcl_Obj *CONST *argv = objv+1;
4399  int argc = objc-1;
4400  if (argc == 1) {
4401  int _v;
4402  void *vptr = 0;
4403  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_3dh, 0);
4404  _v = SWIG_CheckState(res);
4405  if (_v) {
4406  return _wrap_a_3dh_Y__SWIG_1(clientData, interp, objc, argv - 1);
4407  }
4408  }
4409  if (argc == 2) {
4410  int _v;
4411  void *vptr = 0;
4412  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_3dh, 0);
4413  _v = SWIG_CheckState(res);
4414  if (_v) {
4415  {
4416  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
4417  _v = SWIG_CheckState(res);
4418  }
4419  if (_v) {
4420  return _wrap_a_3dh_Y__SWIG_0(clientData, interp, objc, argv - 1);
4421  }
4422  }
4423  }
4424 
4425  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'a_3dh_Y'.\n"
4426  " Possible C/C++ prototypes are:\n"
4427  " a_3dh::Y(double)\n"
4428  " a_3dh::Y() const\n", TCL_STATIC);
4429  return TCL_ERROR;
4430 }
4431 
4432 
4433 SWIGINTERN int
4434 _wrap_a_3dh_Z__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4435  a_3dh *arg1 = (a_3dh *) 0 ;
4436  void *argp1 = 0 ;
4437  int res1 = 0 ;
4438  double result;
4439 
4440  if (SWIG_GetArgs(interp, objc, objv,"o:a_3dh_Z self ",(void *)0) == TCL_ERROR) SWIG_fail;
4441  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_3dh, 0 | 0 );
4442  if (!SWIG_IsOK(res1)) {
4443  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_3dh_Z" "', argument " "1"" of type '" "a_3dh const *""'");
4444  }
4445  arg1 = reinterpret_cast< a_3dh * >(argp1);
4446  result = (double)((a_3dh const *)arg1)->Z();
4447  Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
4448  return TCL_OK;
4449 fail:
4450  return TCL_ERROR;
4451 }
4452 
4453 
4454 SWIGINTERN int
4455 _wrap_a_3dh_Z(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4456  Tcl_Obj *CONST *argv = objv+1;
4457  int argc = objc-1;
4458  if (argc == 1) {
4459  int _v;
4460  void *vptr = 0;
4461  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_3dh, 0);
4462  _v = SWIG_CheckState(res);
4463  if (_v) {
4464  return _wrap_a_3dh_Z__SWIG_1(clientData, interp, objc, argv - 1);
4465  }
4466  }
4467  if (argc == 2) {
4468  int _v;
4469  void *vptr = 0;
4470  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_3dh, 0);
4471  _v = SWIG_CheckState(res);
4472  if (_v) {
4473  {
4474  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
4475  _v = SWIG_CheckState(res);
4476  }
4477  if (_v) {
4478  return _wrap_a_3dh_Z__SWIG_0(clientData, interp, objc, argv - 1);
4479  }
4480  }
4481  }
4482 
4483  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'a_3dh_Z'.\n"
4484  " Possible C/C++ prototypes are:\n"
4485  " a_3dh::Z(double)\n"
4486  " a_3dh::Z() const\n", TCL_STATIC);
4487  return TCL_ERROR;
4488 }
4489 
4490 
4491 SWIGINTERN int
4492 _wrap_a_3dh_T__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4493  a_3dh *arg1 = (a_3dh *) 0 ;
4494  void *argp1 = 0 ;
4495  int res1 = 0 ;
4496  double result;
4497 
4498  if (SWIG_GetArgs(interp, objc, objv,"o:a_3dh_T self ",(void *)0) == TCL_ERROR) SWIG_fail;
4499  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_3dh, 0 | 0 );
4500  if (!SWIG_IsOK(res1)) {
4501  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_3dh_T" "', argument " "1"" of type '" "a_3dh const *""'");
4502  }
4503  arg1 = reinterpret_cast< a_3dh * >(argp1);
4504  result = (double)((a_3dh const *)arg1)->T();
4505  Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
4506  return TCL_OK;
4507 fail:
4508  return TCL_ERROR;
4509 }
4510 
4511 
4512 SWIGINTERN int
4513 _wrap_a_3dh_T(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4514  Tcl_Obj *CONST *argv = objv+1;
4515  int argc = objc-1;
4516  if (argc == 1) {
4517  int _v;
4518  void *vptr = 0;
4519  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_3dh, 0);
4520  _v = SWIG_CheckState(res);
4521  if (_v) {
4522  return _wrap_a_3dh_T__SWIG_1(clientData, interp, objc, argv - 1);
4523  }
4524  }
4525  if (argc == 2) {
4526  int _v;
4527  void *vptr = 0;
4528  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_3dh, 0);
4529  _v = SWIG_CheckState(res);
4530  if (_v) {
4531  {
4532  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
4533  _v = SWIG_CheckState(res);
4534  }
4535  if (_v) {
4536  return _wrap_a_3dh_T__SWIG_0(clientData, interp, objc, argv - 1);
4537  }
4538  }
4539  }
4540 
4541  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'a_3dh_T'.\n"
4542  " Possible C/C++ prototypes are:\n"
4543  " a_3dh::T(double)\n"
4544  " a_3dh::T() const\n", TCL_STATIC);
4545  return TCL_ERROR;
4546 }
4547 
4548 
4549 SWIGINTERN int
4550 _wrap_a_3dh_x(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4551  a_3dh *arg1 = (a_3dh *) 0 ;
4552  void *argp1 = 0 ;
4553  int res1 = 0 ;
4554  double result;
4555 
4556  if (SWIG_GetArgs(interp, objc, objv,"o:a_3dh_x self ",(void *)0) == TCL_ERROR) SWIG_fail;
4557  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_3dh, 0 | 0 );
4558  if (!SWIG_IsOK(res1)) {
4559  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_3dh_x" "', argument " "1"" of type '" "a_3dh const *""'");
4560  }
4561  arg1 = reinterpret_cast< a_3dh * >(argp1);
4562  result = (double)((a_3dh const *)arg1)->x();
4563  Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
4564  return TCL_OK;
4565 fail:
4566  return TCL_ERROR;
4567 }
4568 
4569 
4570 SWIGINTERN int
4571 _wrap_a_3dh_y(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4572  a_3dh *arg1 = (a_3dh *) 0 ;
4573  void *argp1 = 0 ;
4574  int res1 = 0 ;
4575  double result;
4576 
4577  if (SWIG_GetArgs(interp, objc, objv,"o:a_3dh_y self ",(void *)0) == TCL_ERROR) SWIG_fail;
4578  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_3dh, 0 | 0 );
4579  if (!SWIG_IsOK(res1)) {
4580  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_3dh_y" "', argument " "1"" of type '" "a_3dh const *""'");
4581  }
4582  arg1 = reinterpret_cast< a_3dh * >(argp1);
4583  result = (double)((a_3dh const *)arg1)->y();
4584  Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
4585  return TCL_OK;
4586 fail:
4587  return TCL_ERROR;
4588 }
4589 
4590 
4591 SWIGINTERN int
4592 _wrap_a_3dh_z(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4593  a_3dh *arg1 = (a_3dh *) 0 ;
4594  void *argp1 = 0 ;
4595  int res1 = 0 ;
4596  double result;
4597 
4598  if (SWIG_GetArgs(interp, objc, objv,"o:a_3dh_z self ",(void *)0) == TCL_ERROR) SWIG_fail;
4599  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_3dh, 0 | 0 );
4600  if (!SWIG_IsOK(res1)) {
4601  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_3dh_z" "', argument " "1"" of type '" "a_3dh const *""'");
4602  }
4603  arg1 = reinterpret_cast< a_3dh * >(argp1);
4604  result = (double)((a_3dh const *)arg1)->z();
4605  Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
4606  return TCL_OK;
4607 fail:
4608  return TCL_ERROR;
4609 }
4610 
4611 
4612 SWIGINTERN int
4613 _wrap_a_3dh_set__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4614  a_3dh *arg1 = (a_3dh *) 0 ;
4615  double arg2 ;
4616  double arg3 ;
4617  double arg4 ;
4618  double arg5 ;
4619  void *argp1 = 0 ;
4620  int res1 = 0 ;
4621  double val2 ;
4622  int ecode2 = 0 ;
4623  double val3 ;
4624  int ecode3 = 0 ;
4625  double val4 ;
4626  int ecode4 = 0 ;
4627  double val5 ;
4628  int ecode5 = 0 ;
4629 
4630  if (SWIG_GetArgs(interp, objc, objv,"ooooo:a_3dh_set self x y z t ",(void *)0,(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
4631  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_3dh, 0 | 0 );
4632  if (!SWIG_IsOK(res1)) {
4633  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_3dh_set" "', argument " "1"" of type '" "a_3dh *""'");
4634  }
4635  arg1 = reinterpret_cast< a_3dh * >(argp1);
4636  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
4637  if (!SWIG_IsOK(ecode2)) {
4638  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_3dh_set" "', argument " "2"" of type '" "double""'");
4639  }
4640  arg2 = static_cast< double >(val2);
4641  ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
4642  if (!SWIG_IsOK(ecode3)) {
4643  SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "a_3dh_set" "', argument " "3"" of type '" "double""'");
4644  }
4645  arg3 = static_cast< double >(val3);
4646  ecode4 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
4647  if (!SWIG_IsOK(ecode4)) {
4648  SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "a_3dh_set" "', argument " "4"" of type '" "double""'");
4649  }
4650  arg4 = static_cast< double >(val4);
4651  ecode5 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[5], &val5);
4652  if (!SWIG_IsOK(ecode5)) {
4653  SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "a_3dh_set" "', argument " "5"" of type '" "double""'");
4654  }
4655  arg5 = static_cast< double >(val5);
4656  (arg1)->set(arg2,arg3,arg4,arg5);
4657 
4658  return TCL_OK;
4659 fail:
4660  return TCL_ERROR;
4661 }
4662 
4663 
4664 SWIGINTERN int
4665 _wrap_a_3dh_set__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4666  a_3dh *arg1 = (a_3dh *) 0 ;
4667  double arg2 ;
4668  double arg3 ;
4669  double arg4 ;
4670  void *argp1 = 0 ;
4671  int res1 = 0 ;
4672  double val2 ;
4673  int ecode2 = 0 ;
4674  double val3 ;
4675  int ecode3 = 0 ;
4676  double val4 ;
4677  int ecode4 = 0 ;
4678 
4679  if (SWIG_GetArgs(interp, objc, objv,"oooo:a_3dh_set self x y z ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
4680  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_3dh, 0 | 0 );
4681  if (!SWIG_IsOK(res1)) {
4682  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_3dh_set" "', argument " "1"" of type '" "a_3dh *""'");
4683  }
4684  arg1 = reinterpret_cast< a_3dh * >(argp1);
4685  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
4686  if (!SWIG_IsOK(ecode2)) {
4687  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_3dh_set" "', argument " "2"" of type '" "double""'");
4688  }
4689  arg2 = static_cast< double >(val2);
4690  ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
4691  if (!SWIG_IsOK(ecode3)) {
4692  SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "a_3dh_set" "', argument " "3"" of type '" "double""'");
4693  }
4694  arg3 = static_cast< double >(val3);
4695  ecode4 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
4696  if (!SWIG_IsOK(ecode4)) {
4697  SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "a_3dh_set" "', argument " "4"" of type '" "double""'");
4698  }
4699  arg4 = static_cast< double >(val4);
4700  (arg1)->set(arg2,arg3,arg4);
4701 
4702  return TCL_OK;
4703 fail:
4704  return TCL_ERROR;
4705 }
4706 
4707 
4708 SWIGINTERN int
4709 _wrap_a_3dh_set__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4710  a_3dh *arg1 = (a_3dh *) 0 ;
4711  double *arg2 = (double *) 0 ;
4712  void *argp1 = 0 ;
4713  int res1 = 0 ;
4714  void *argp2 = 0 ;
4715  int res2 = 0 ;
4716 
4717  if (SWIG_GetArgs(interp, objc, objv,"oo:a_3dh_set self x ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
4718  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_3dh, 0 | 0 );
4719  if (!SWIG_IsOK(res1)) {
4720  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_3dh_set" "', argument " "1"" of type '" "a_3dh *""'");
4721  }
4722  arg1 = reinterpret_cast< a_3dh * >(argp1);
4723  res2 = SWIG_ConvertPtr(objv[2], &argp2,SWIGTYPE_p_double, 0 | 0 );
4724  if (!SWIG_IsOK(res2)) {
4725  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "a_3dh_set" "', argument " "2"" of type '" "double *""'");
4726  }
4727  arg2 = reinterpret_cast< double * >(argp2);
4728  (arg1)->set(arg2);
4729 
4730  return TCL_OK;
4731 fail:
4732  return TCL_ERROR;
4733 }
4734 
4735 
4736 SWIGINTERN int
4737 _wrap_a_3dh_set__SWIG_3(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4738  a_3dh *arg1 = (a_3dh *) 0 ;
4739  a_point *arg2 = 0 ;
4740  void *argp1 = 0 ;
4741  int res1 = 0 ;
4742  void *argp2 ;
4743  int res2 = 0 ;
4744 
4745  if (SWIG_GetArgs(interp, objc, objv,"oo:a_3dh_set self a_point const & ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
4746  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_3dh, 0 | 0 );
4747  if (!SWIG_IsOK(res1)) {
4748  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_3dh_set" "', argument " "1"" of type '" "a_3dh *""'");
4749  }
4750  arg1 = reinterpret_cast< a_3dh * >(argp1);
4751  res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_a_point, 0 );
4752  if (!SWIG_IsOK(res2)) {
4753  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "a_3dh_set" "', argument " "2"" of type '" "a_point const &""'");
4754  }
4755  if (!argp2) {
4756  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_3dh_set" "', argument " "2"" of type '" "a_point const &""'");
4757  }
4758  arg2 = reinterpret_cast< a_point * >(argp2);
4759  (arg1)->set((a_point const &)*arg2);
4760 
4761  return TCL_OK;
4762 fail:
4763  return TCL_ERROR;
4764 }
4765 
4766 
4767 SWIGINTERN int
4768 _wrap_a_3dh_set(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4769  Tcl_Obj *CONST *argv = objv+1;
4770  int argc = objc-1;
4771  if (argc == 2) {
4772  int _v;
4773  void *vptr = 0;
4774  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_3dh, 0);
4775  _v = SWIG_CheckState(res);
4776  if (_v) {
4777  void *vptr = 0;
4778  int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_double, 0);
4779  _v = SWIG_CheckState(res);
4780  if (_v) {
4781  return _wrap_a_3dh_set__SWIG_2(clientData, interp, objc, argv - 1);
4782  }
4783  }
4784  }
4785  if (argc == 2) {
4786  int _v;
4787  void *vptr = 0;
4788  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_3dh, 0);
4789  _v = SWIG_CheckState(res);
4790  if (_v) {
4791  void *vptr = 0;
4792  int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_a_point, SWIG_POINTER_NO_NULL);
4793  _v = SWIG_CheckState(res);
4794  if (_v) {
4795  return _wrap_a_3dh_set__SWIG_3(clientData, interp, objc, argv - 1);
4796  }
4797  }
4798  }
4799  if (argc == 4) {
4800  int _v;
4801  void *vptr = 0;
4802  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_3dh, 0);
4803  _v = SWIG_CheckState(res);
4804  if (_v) {
4805  {
4806  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
4807  _v = SWIG_CheckState(res);
4808  }
4809  if (_v) {
4810  {
4811  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
4812  _v = SWIG_CheckState(res);
4813  }
4814  if (_v) {
4815  {
4816  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
4817  _v = SWIG_CheckState(res);
4818  }
4819  if (_v) {
4820  return _wrap_a_3dh_set__SWIG_1(clientData, interp, objc, argv - 1);
4821  }
4822  }
4823  }
4824  }
4825  }
4826  if (argc == 5) {
4827  int _v;
4828  void *vptr = 0;
4829  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_3dh, 0);
4830  _v = SWIG_CheckState(res);
4831  if (_v) {
4832  {
4833  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
4834  _v = SWIG_CheckState(res);
4835  }
4836  if (_v) {
4837  {
4838  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
4839  _v = SWIG_CheckState(res);
4840  }
4841  if (_v) {
4842  {
4843  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
4844  _v = SWIG_CheckState(res);
4845  }
4846  if (_v) {
4847  {
4848  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[4], NULL);
4849  _v = SWIG_CheckState(res);
4850  }
4851  if (_v) {
4852  return _wrap_a_3dh_set__SWIG_0(clientData, interp, objc, argv - 1);
4853  }
4854  }
4855  }
4856  }
4857  }
4858  }
4859 
4860  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'a_3dh_set'.\n"
4861  " Possible C/C++ prototypes are:\n"
4862  " a_3dh::set(double,double,double,double)\n"
4863  " a_3dh::set(double,double,double)\n"
4864  " a_3dh::set(double *)\n"
4865  " a_3dh::set(a_point const &)\n", TCL_STATIC);
4866  return TCL_ERROR;
4867 }
4868 
4869 
4870 SWIGINTERN int
4871 _wrap_a_3dh_point(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4872  a_3dh *arg1 = (a_3dh *) 0 ;
4873  void *argp1 = 0 ;
4874  int res1 = 0 ;
4875  a_point result;
4876 
4877  if (SWIG_GetArgs(interp, objc, objv,"o:a_3dh_point self ",(void *)0) == TCL_ERROR) SWIG_fail;
4878  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_3dh, 0 | 0 );
4879  if (!SWIG_IsOK(res1)) {
4880  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_3dh_point" "', argument " "1"" of type '" "a_3dh const *""'");
4881  }
4882  arg1 = reinterpret_cast< a_3dh * >(argp1);
4883  result = ((a_3dh const *)arg1)->point();
4884  Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new a_point(static_cast< const a_point& >(result))), SWIGTYPE_p_a_point, SWIG_POINTER_OWN | 0 ));
4885  return TCL_OK;
4886 fail:
4887  return TCL_ERROR;
4888 }
4889 
4890 
4891 SWIGINTERN int
4892 _wrap_a_3dh_print(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4893  a_3dh *arg1 = (a_3dh *) 0 ;
4894  void *argp1 = 0 ;
4895  int res1 = 0 ;
4896  std::string result;
4897 
4898  if (SWIG_GetArgs(interp, objc, objv,"o:a_3dh_print self ",(void *)0) == TCL_ERROR) SWIG_fail;
4899  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_3dh, 0 | 0 );
4900  if (!SWIG_IsOK(res1)) {
4901  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_3dh_print" "', argument " "1"" of type '" "a_3dh *""'");
4902  }
4903  arg1 = reinterpret_cast< a_3dh * >(argp1);
4904  result = a_3dh_print(arg1);
4905  Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
4906  return TCL_OK;
4907 fail:
4908  return TCL_ERROR;
4909 }
4910 
4911 
4912 SWIGINTERN int
4913 _wrap_delete_a_3dh(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4914  a_3dh *arg1 = (a_3dh *) 0 ;
4915  void *argp1 = 0 ;
4916  int res1 = 0 ;
4917 
4918  if (SWIG_GetArgs(interp, objc, objv,"o:delete_a_3dh self ",(void *)0) == TCL_ERROR) SWIG_fail;
4919  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_3dh, SWIG_POINTER_DISOWN | 0 );
4920  if (!SWIG_IsOK(res1)) {
4921  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_a_3dh" "', argument " "1"" of type '" "a_3dh *""'");
4922  }
4923  arg1 = reinterpret_cast< a_3dh * >(argp1);
4924  delete arg1;
4925 
4926  return TCL_OK;
4927 fail:
4928  return TCL_ERROR;
4929 }
4930 
4931 
4933 a_3dh *arg1 = (a_3dh *) obj;
4934 delete arg1;
4935 }
4937  {"X", _wrap_a_3dh_X},
4938  {"Y", _wrap_a_3dh_Y},
4939  {"Z", _wrap_a_3dh_Z},
4940  {"T", _wrap_a_3dh_T},
4941  {"x", _wrap_a_3dh_x},
4942  {"y", _wrap_a_3dh_y},
4943  {"z", _wrap_a_3dh_z},
4944  {"set", _wrap_a_3dh_set},
4945  {"point", _wrap_a_3dh_point},
4946  {"print", _wrap_a_3dh_print},
4947  {0,0}
4948 };
4950  {0,0,0}
4951 };
4952 static swig_class *swig_a_3dh_bases[] = {0,0};
4953 static const char * swig_a_3dh_base_names[] = {"a_mat_c *",0};
4955 SWIGINTERN int
4956 _wrap_new_a_intern__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4957  a_intern *result = 0 ;
4958 
4959  if (SWIG_GetArgs(interp, objc, objv,":new_a_intern ") == TCL_ERROR) SWIG_fail;
4960  result = (a_intern *)new a_intern();
4961  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_intern,0));
4962  return TCL_OK;
4963 fail:
4964  return TCL_ERROR;
4965 }
4966 
4967 
4968 SWIGINTERN int
4969 _wrap_new_a_intern__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4970  a_mat *arg1 = 0 ;
4971  void *argp1 ;
4972  int res1 = 0 ;
4973  a_intern *result = 0 ;
4974 
4975  if (SWIG_GetArgs(interp, objc, objv,"o:new_a_intern m ",(void *)0) == TCL_ERROR) SWIG_fail;
4976  res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_a_mat, 0 );
4977  if (!SWIG_IsOK(res1)) {
4978  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_a_intern" "', argument " "1"" of type '" "a_mat const &""'");
4979  }
4980  if (!argp1) {
4981  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_a_intern" "', argument " "1"" of type '" "a_mat const &""'");
4982  }
4983  arg1 = reinterpret_cast< a_mat * >(argp1);
4984  result = (a_intern *)new a_intern((a_mat const &)*arg1);
4985  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_intern,0));
4986  return TCL_OK;
4987 fail:
4988  return TCL_ERROR;
4989 }
4990 
4991 
4992 SWIGINTERN int
4993 _wrap_new_a_intern(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
4994  Tcl_Obj *CONST *argv = objv+1;
4995  int argc = objc-1;
4996  if (argc == 0) {
4997  return _wrap_new_a_intern__SWIG_0(clientData, interp, objc, argv - 1);
4998  }
4999  if (argc == 1) {
5000  int _v;
5001  void *vptr = 0;
5002  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_mat, SWIG_POINTER_NO_NULL);
5003  _v = SWIG_CheckState(res);
5004  if (_v) {
5005  return _wrap_new_a_intern__SWIG_1(clientData, interp, objc, argv - 1);
5006  }
5007  }
5008 
5009  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'new_a_intern'.\n"
5010  " Possible C/C++ prototypes are:\n"
5011  " a_intern::a_intern()\n"
5012  " a_intern::a_intern(a_mat const &)\n", TCL_STATIC);
5013  return TCL_ERROR;
5014 }
5015 
5016 
5017 SWIGINTERN int
5018 _wrap_a_intern_help(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5019  std::string result;
5020 
5021  if (SWIG_GetArgs(interp, objc, objv,":a_intern_help ") == TCL_ERROR) SWIG_fail;
5022  result = a_intern::help();
5023  Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
5024  return TCL_OK;
5025 fail:
5026  return TCL_ERROR;
5027 }
5028 
5029 
5030 SWIGINTERN int
5031 _wrap_a_intern_s(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5032  a_intern *arg1 = (a_intern *) 0 ;
5033  double arg2 ;
5034  void *argp1 = 0 ;
5035  int res1 = 0 ;
5036  double val2 ;
5037  int ecode2 = 0 ;
5038 
5039  if (SWIG_GetArgs(interp, objc, objv,"oo:a_intern_s self v ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
5040  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_intern, 0 | 0 );
5041  if (!SWIG_IsOK(res1)) {
5042  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_intern_s" "', argument " "1"" of type '" "a_intern *""'");
5043  }
5044  arg1 = reinterpret_cast< a_intern * >(argp1);
5045  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
5046  if (!SWIG_IsOK(ecode2)) {
5047  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_intern_s" "', argument " "2"" of type '" "double""'");
5048  }
5049  arg2 = static_cast< double >(val2);
5050  (arg1)->s(arg2);
5051 
5052  return TCL_OK;
5053 fail:
5054  return TCL_ERROR;
5055 }
5056 
5057 
5058 SWIGINTERN int
5059 _wrap_a_intern_sx__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5060  a_intern *arg1 = (a_intern *) 0 ;
5061  double arg2 ;
5062  void *argp1 = 0 ;
5063  int res1 = 0 ;
5064  double val2 ;
5065  int ecode2 = 0 ;
5066 
5067  if (SWIG_GetArgs(interp, objc, objv,"oo:a_intern_sx self v ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
5068  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_intern, 0 | 0 );
5069  if (!SWIG_IsOK(res1)) {
5070  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_intern_sx" "', argument " "1"" of type '" "a_intern *""'");
5071  }
5072  arg1 = reinterpret_cast< a_intern * >(argp1);
5073  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
5074  if (!SWIG_IsOK(ecode2)) {
5075  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_intern_sx" "', argument " "2"" of type '" "double""'");
5076  }
5077  arg2 = static_cast< double >(val2);
5078  (arg1)->sx(arg2);
5079 
5080  return TCL_OK;
5081 fail:
5082  return TCL_ERROR;
5083 }
5084 
5085 
5086 SWIGINTERN int
5087 _wrap_a_intern_sy__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5088  a_intern *arg1 = (a_intern *) 0 ;
5089  double arg2 ;
5090  void *argp1 = 0 ;
5091  int res1 = 0 ;
5092  double val2 ;
5093  int ecode2 = 0 ;
5094 
5095  if (SWIG_GetArgs(interp, objc, objv,"oo:a_intern_sy self v ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
5096  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_intern, 0 | 0 );
5097  if (!SWIG_IsOK(res1)) {
5098  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_intern_sy" "', argument " "1"" of type '" "a_intern *""'");
5099  }
5100  arg1 = reinterpret_cast< a_intern * >(argp1);
5101  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
5102  if (!SWIG_IsOK(ecode2)) {
5103  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_intern_sy" "', argument " "2"" of type '" "double""'");
5104  }
5105  arg2 = static_cast< double >(val2);
5106  (arg1)->sy(arg2);
5107 
5108  return TCL_OK;
5109 fail:
5110  return TCL_ERROR;
5111 }
5112 
5113 
5114 SWIGINTERN int
5115 _wrap_a_intern_stheta__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5116  a_intern *arg1 = (a_intern *) 0 ;
5117  double arg2 ;
5118  void *argp1 = 0 ;
5119  int res1 = 0 ;
5120  double val2 ;
5121  int ecode2 = 0 ;
5122 
5123  if (SWIG_GetArgs(interp, objc, objv,"oo:a_intern_stheta self v ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
5124  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_intern, 0 | 0 );
5125  if (!SWIG_IsOK(res1)) {
5126  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_intern_stheta" "', argument " "1"" of type '" "a_intern *""'");
5127  }
5128  arg1 = reinterpret_cast< a_intern * >(argp1);
5129  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
5130  if (!SWIG_IsOK(ecode2)) {
5131  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_intern_stheta" "', argument " "2"" of type '" "double""'");
5132  }
5133  arg2 = static_cast< double >(val2);
5134  (arg1)->stheta(arg2);
5135 
5136  return TCL_OK;
5137 fail:
5138  return TCL_ERROR;
5139 }
5140 
5141 
5142 SWIGINTERN int
5143 _wrap_a_intern_u0__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5144  a_intern *arg1 = (a_intern *) 0 ;
5145  double arg2 ;
5146  void *argp1 = 0 ;
5147  int res1 = 0 ;
5148  double val2 ;
5149  int ecode2 = 0 ;
5150 
5151  if (SWIG_GetArgs(interp, objc, objv,"oo:a_intern_u0 self v ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
5152  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_intern, 0 | 0 );
5153  if (!SWIG_IsOK(res1)) {
5154  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_intern_u0" "', argument " "1"" of type '" "a_intern *""'");
5155  }
5156  arg1 = reinterpret_cast< a_intern * >(argp1);
5157  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
5158  if (!SWIG_IsOK(ecode2)) {
5159  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_intern_u0" "', argument " "2"" of type '" "double""'");
5160  }
5161  arg2 = static_cast< double >(val2);
5162  (arg1)->u0(arg2);
5163 
5164  return TCL_OK;
5165 fail:
5166  return TCL_ERROR;
5167 }
5168 
5169 
5170 SWIGINTERN int
5171 _wrap_a_intern_v0__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5172  a_intern *arg1 = (a_intern *) 0 ;
5173  double arg2 ;
5174  void *argp1 = 0 ;
5175  int res1 = 0 ;
5176  double val2 ;
5177  int ecode2 = 0 ;
5178 
5179  if (SWIG_GetArgs(interp, objc, objv,"oo:a_intern_v0 self v ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
5180  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_intern, 0 | 0 );
5181  if (!SWIG_IsOK(res1)) {
5182  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_intern_v0" "', argument " "1"" of type '" "a_intern *""'");
5183  }
5184  arg1 = reinterpret_cast< a_intern * >(argp1);
5185  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
5186  if (!SWIG_IsOK(ecode2)) {
5187  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_intern_v0" "', argument " "2"" of type '" "double""'");
5188  }
5189  arg2 = static_cast< double >(val2);
5190  (arg1)->v0(arg2);
5191 
5192  return TCL_OK;
5193 fail:
5194  return TCL_ERROR;
5195 }
5196 
5197 
5198 SWIGINTERN int
5199 _wrap_a_intern_sx__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5200  a_intern *arg1 = (a_intern *) 0 ;
5201  void *argp1 = 0 ;
5202  int res1 = 0 ;
5203  double result;
5204 
5205  if (SWIG_GetArgs(interp, objc, objv,"o:a_intern_sx self ",(void *)0) == TCL_ERROR) SWIG_fail;
5206  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_intern, 0 | 0 );
5207  if (!SWIG_IsOK(res1)) {
5208  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_intern_sx" "', argument " "1"" of type '" "a_intern *""'");
5209  }
5210  arg1 = reinterpret_cast< a_intern * >(argp1);
5211  result = (double)(arg1)->sx();
5212  Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
5213  return TCL_OK;
5214 fail:
5215  return TCL_ERROR;
5216 }
5217 
5218 
5219 SWIGINTERN int
5220 _wrap_a_intern_sx(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5221  Tcl_Obj *CONST *argv = objv+1;
5222  int argc = objc-1;
5223  if (argc == 1) {
5224  int _v;
5225  void *vptr = 0;
5226  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_intern, 0);
5227  _v = SWIG_CheckState(res);
5228  if (_v) {
5229  return _wrap_a_intern_sx__SWIG_1(clientData, interp, objc, argv - 1);
5230  }
5231  }
5232  if (argc == 2) {
5233  int _v;
5234  void *vptr = 0;
5235  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_intern, 0);
5236  _v = SWIG_CheckState(res);
5237  if (_v) {
5238  {
5239  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
5240  _v = SWIG_CheckState(res);
5241  }
5242  if (_v) {
5243  return _wrap_a_intern_sx__SWIG_0(clientData, interp, objc, argv - 1);
5244  }
5245  }
5246  }
5247 
5248  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'a_intern_sx'.\n"
5249  " Possible C/C++ prototypes are:\n"
5250  " a_intern::sx(double)\n"
5251  " a_intern::sx()\n", TCL_STATIC);
5252  return TCL_ERROR;
5253 }
5254 
5255 
5256 SWIGINTERN int
5257 _wrap_a_intern_sy__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5258  a_intern *arg1 = (a_intern *) 0 ;
5259  void *argp1 = 0 ;
5260  int res1 = 0 ;
5261  double result;
5262 
5263  if (SWIG_GetArgs(interp, objc, objv,"o:a_intern_sy self ",(void *)0) == TCL_ERROR) SWIG_fail;
5264  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_intern, 0 | 0 );
5265  if (!SWIG_IsOK(res1)) {
5266  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_intern_sy" "', argument " "1"" of type '" "a_intern *""'");
5267  }
5268  arg1 = reinterpret_cast< a_intern * >(argp1);
5269  result = (double)(arg1)->sy();
5270  Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
5271  return TCL_OK;
5272 fail:
5273  return TCL_ERROR;
5274 }
5275 
5276 
5277 SWIGINTERN int
5278 _wrap_a_intern_sy(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5279  Tcl_Obj *CONST *argv = objv+1;
5280  int argc = objc-1;
5281  if (argc == 1) {
5282  int _v;
5283  void *vptr = 0;
5284  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_intern, 0);
5285  _v = SWIG_CheckState(res);
5286  if (_v) {
5287  return _wrap_a_intern_sy__SWIG_1(clientData, interp, objc, argv - 1);
5288  }
5289  }
5290  if (argc == 2) {
5291  int _v;
5292  void *vptr = 0;
5293  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_intern, 0);
5294  _v = SWIG_CheckState(res);
5295  if (_v) {
5296  {
5297  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
5298  _v = SWIG_CheckState(res);
5299  }
5300  if (_v) {
5301  return _wrap_a_intern_sy__SWIG_0(clientData, interp, objc, argv - 1);
5302  }
5303  }
5304  }
5305 
5306  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'a_intern_sy'.\n"
5307  " Possible C/C++ prototypes are:\n"
5308  " a_intern::sy(double)\n"
5309  " a_intern::sy()\n", TCL_STATIC);
5310  return TCL_ERROR;
5311 }
5312 
5313 
5314 SWIGINTERN int
5315 _wrap_a_intern_stheta__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5316  a_intern *arg1 = (a_intern *) 0 ;
5317  void *argp1 = 0 ;
5318  int res1 = 0 ;
5319  double result;
5320 
5321  if (SWIG_GetArgs(interp, objc, objv,"o:a_intern_stheta self ",(void *)0) == TCL_ERROR) SWIG_fail;
5322  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_intern, 0 | 0 );
5323  if (!SWIG_IsOK(res1)) {
5324  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_intern_stheta" "', argument " "1"" of type '" "a_intern *""'");
5325  }
5326  arg1 = reinterpret_cast< a_intern * >(argp1);
5327  result = (double)(arg1)->stheta();
5328  Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
5329  return TCL_OK;
5330 fail:
5331  return TCL_ERROR;
5332 }
5333 
5334 
5335 SWIGINTERN int
5336 _wrap_a_intern_stheta(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5337  Tcl_Obj *CONST *argv = objv+1;
5338  int argc = objc-1;
5339  if (argc == 1) {
5340  int _v;
5341  void *vptr = 0;
5342  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_intern, 0);
5343  _v = SWIG_CheckState(res);
5344  if (_v) {
5345  return _wrap_a_intern_stheta__SWIG_1(clientData, interp, objc, argv - 1);
5346  }
5347  }
5348  if (argc == 2) {
5349  int _v;
5350  void *vptr = 0;
5351  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_intern, 0);
5352  _v = SWIG_CheckState(res);
5353  if (_v) {
5354  {
5355  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
5356  _v = SWIG_CheckState(res);
5357  }
5358  if (_v) {
5359  return _wrap_a_intern_stheta__SWIG_0(clientData, interp, objc, argv - 1);
5360  }
5361  }
5362  }
5363 
5364  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'a_intern_stheta'.\n"
5365  " Possible C/C++ prototypes are:\n"
5366  " a_intern::stheta(double)\n"
5367  " a_intern::stheta()\n", TCL_STATIC);
5368  return TCL_ERROR;
5369 }
5370 
5371 
5372 SWIGINTERN int
5373 _wrap_a_intern_u0__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5374  a_intern *arg1 = (a_intern *) 0 ;
5375  void *argp1 = 0 ;
5376  int res1 = 0 ;
5377  double result;
5378 
5379  if (SWIG_GetArgs(interp, objc, objv,"o:a_intern_u0 self ",(void *)0) == TCL_ERROR) SWIG_fail;
5380  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_intern, 0 | 0 );
5381  if (!SWIG_IsOK(res1)) {
5382  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_intern_u0" "', argument " "1"" of type '" "a_intern *""'");
5383  }
5384  arg1 = reinterpret_cast< a_intern * >(argp1);
5385  result = (double)(arg1)->u0();
5386  Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
5387  return TCL_OK;
5388 fail:
5389  return TCL_ERROR;
5390 }
5391 
5392 
5393 SWIGINTERN int
5394 _wrap_a_intern_u0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5395  Tcl_Obj *CONST *argv = objv+1;
5396  int argc = objc-1;
5397  if (argc == 1) {
5398  int _v;
5399  void *vptr = 0;
5400  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_intern, 0);
5401  _v = SWIG_CheckState(res);
5402  if (_v) {
5403  return _wrap_a_intern_u0__SWIG_1(clientData, interp, objc, argv - 1);
5404  }
5405  }
5406  if (argc == 2) {
5407  int _v;
5408  void *vptr = 0;
5409  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_intern, 0);
5410  _v = SWIG_CheckState(res);
5411  if (_v) {
5412  {
5413  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
5414  _v = SWIG_CheckState(res);
5415  }
5416  if (_v) {
5417  return _wrap_a_intern_u0__SWIG_0(clientData, interp, objc, argv - 1);
5418  }
5419  }
5420  }
5421 
5422  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'a_intern_u0'.\n"
5423  " Possible C/C++ prototypes are:\n"
5424  " a_intern::u0(double)\n"
5425  " a_intern::u0()\n", TCL_STATIC);
5426  return TCL_ERROR;
5427 }
5428 
5429 
5430 SWIGINTERN int
5431 _wrap_a_intern_v0__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5432  a_intern *arg1 = (a_intern *) 0 ;
5433  void *argp1 = 0 ;
5434  int res1 = 0 ;
5435  double result;
5436 
5437  if (SWIG_GetArgs(interp, objc, objv,"o:a_intern_v0 self ",(void *)0) == TCL_ERROR) SWIG_fail;
5438  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_intern, 0 | 0 );
5439  if (!SWIG_IsOK(res1)) {
5440  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_intern_v0" "', argument " "1"" of type '" "a_intern *""'");
5441  }
5442  arg1 = reinterpret_cast< a_intern * >(argp1);
5443  result = (double)(arg1)->v0();
5444  Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
5445  return TCL_OK;
5446 fail:
5447  return TCL_ERROR;
5448 }
5449 
5450 
5451 SWIGINTERN int
5452 _wrap_a_intern_v0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5453  Tcl_Obj *CONST *argv = objv+1;
5454  int argc = objc-1;
5455  if (argc == 1) {
5456  int _v;
5457  void *vptr = 0;
5458  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_intern, 0);
5459  _v = SWIG_CheckState(res);
5460  if (_v) {
5461  return _wrap_a_intern_v0__SWIG_1(clientData, interp, objc, argv - 1);
5462  }
5463  }
5464  if (argc == 2) {
5465  int _v;
5466  void *vptr = 0;
5467  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_intern, 0);
5468  _v = SWIG_CheckState(res);
5469  if (_v) {
5470  {
5471  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
5472  _v = SWIG_CheckState(res);
5473  }
5474  if (_v) {
5475  return _wrap_a_intern_v0__SWIG_0(clientData, interp, objc, argv - 1);
5476  }
5477  }
5478  }
5479 
5480  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'a_intern_v0'.\n"
5481  " Possible C/C++ prototypes are:\n"
5482  " a_intern::v0(double)\n"
5483  " a_intern::v0()\n", TCL_STATIC);
5484  return TCL_ERROR;
5485 }
5486 
5487 
5488 SWIGINTERN int
5489 _wrap_delete_a_intern(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5490  a_intern *arg1 = (a_intern *) 0 ;
5491  void *argp1 = 0 ;
5492  int res1 = 0 ;
5493 
5494  if (SWIG_GetArgs(interp, objc, objv,"o:delete_a_intern self ",(void *)0) == TCL_ERROR) SWIG_fail;
5495  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_intern, SWIG_POINTER_DISOWN | 0 );
5496  if (!SWIG_IsOK(res1)) {
5497  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_a_intern" "', argument " "1"" of type '" "a_intern *""'");
5498  }
5499  arg1 = reinterpret_cast< a_intern * >(argp1);
5500  delete arg1;
5501 
5502  return TCL_OK;
5503 fail:
5504  return TCL_ERROR;
5505 }
5506 
5507 
5509 a_intern *arg1 = (a_intern *) obj;
5510 delete arg1;
5511 }
5513  {"s", _wrap_a_intern_s},
5514  {"sx", _wrap_a_intern_sx},
5515  {"sy", _wrap_a_intern_sy},
5516  {"stheta", _wrap_a_intern_stheta},
5517  {"u0", _wrap_a_intern_u0},
5518  {"v0", _wrap_a_intern_v0},
5519  {0,0}
5520 };
5522  {0,0,0}
5523 };
5525 static const char * swig_a_intern_base_names[] = {"a_mat *",0};
5527 SWIGINTERN int
5528 _wrap_new_a_pmat__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5529  a_pmat *result = 0 ;
5530 
5531  if (SWIG_GetArgs(interp, objc, objv,":new_a_pmat ") == TCL_ERROR) SWIG_fail;
5532  result = (a_pmat *)new a_pmat();
5533  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_pmat,0));
5534  return TCL_OK;
5535 fail:
5536  return TCL_ERROR;
5537 }
5538 
5539 
5540 SWIGINTERN int
5541 _wrap_new_a_pmat__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5542  a_intern *arg1 = 0 ;
5543  void *argp1 ;
5544  int res1 = 0 ;
5545  a_pmat *result = 0 ;
5546 
5547  if (SWIG_GetArgs(interp, objc, objv,"o:new_a_pmat cam ",(void *)0) == TCL_ERROR) SWIG_fail;
5548  res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_a_intern, 0 );
5549  if (!SWIG_IsOK(res1)) {
5550  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_a_pmat" "', argument " "1"" of type '" "a_intern const &""'");
5551  }
5552  if (!argp1) {
5553  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_a_pmat" "', argument " "1"" of type '" "a_intern const &""'");
5554  }
5555  arg1 = reinterpret_cast< a_intern * >(argp1);
5556  result = (a_pmat *)new a_pmat((a_intern const &)*arg1);
5557  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_pmat,0));
5558  return TCL_OK;
5559 fail:
5560  return TCL_ERROR;
5561 }
5562 
5563 
5564 SWIGINTERN int
5565 _wrap_new_a_pmat__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5566  a_mat *arg1 = 0 ;
5567  void *argp1 ;
5568  int res1 = 0 ;
5569  a_pmat *result = 0 ;
5570 
5571  if (SWIG_GetArgs(interp, objc, objv,"o:new_a_pmat m ",(void *)0) == TCL_ERROR) SWIG_fail;
5572  res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_a_mat, 0 );
5573  if (!SWIG_IsOK(res1)) {
5574  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_a_pmat" "', argument " "1"" of type '" "a_mat const &""'");
5575  }
5576  if (!argp1) {
5577  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_a_pmat" "', argument " "1"" of type '" "a_mat const &""'");
5578  }
5579  arg1 = reinterpret_cast< a_mat * >(argp1);
5580  result = (a_pmat *)new a_pmat((a_mat const &)*arg1);
5581  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_pmat,0));
5582  return TCL_OK;
5583 fail:
5584  return TCL_ERROR;
5585 }
5586 
5587 
5588 SWIGINTERN int
5589 _wrap_new_a_pmat(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5590  Tcl_Obj *CONST *argv = objv+1;
5591  int argc = objc-1;
5592  if (argc == 0) {
5593  return _wrap_new_a_pmat__SWIG_0(clientData, interp, objc, argv - 1);
5594  }
5595  if (argc == 1) {
5596  int _v;
5597  void *vptr = 0;
5598  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_intern, SWIG_POINTER_NO_NULL);
5599  _v = SWIG_CheckState(res);
5600  if (_v) {
5601  return _wrap_new_a_pmat__SWIG_1(clientData, interp, objc, argv - 1);
5602  }
5603  }
5604  if (argc == 1) {
5605  int _v;
5606  void *vptr = 0;
5607  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_mat, SWIG_POINTER_NO_NULL);
5608  _v = SWIG_CheckState(res);
5609  if (_v) {
5610  return _wrap_new_a_pmat__SWIG_2(clientData, interp, objc, argv - 1);
5611  }
5612  }
5613 
5614  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'new_a_pmat'.\n"
5615  " Possible C/C++ prototypes are:\n"
5616  " a_pmat::a_pmat()\n"
5617  " a_pmat::a_pmat(a_intern const &)\n"
5618  " a_pmat::a_pmat(a_mat const &)\n", TCL_STATIC);
5619  return TCL_ERROR;
5620 }
5621 
5622 
5623 SWIGINTERN int
5624 _wrap_a_pmat_e___(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5625  a_pmat *arg1 = (a_pmat *) 0 ;
5626  a_mat *arg2 = 0 ;
5627  void *argp1 = 0 ;
5628  int res1 = 0 ;
5629  void *argp2 ;
5630  int res2 = 0 ;
5631  a_pmat *result = 0 ;
5632 
5633  if (SWIG_GetArgs(interp, objc, objv,"oo:a_pmat_= self m ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
5634  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_pmat, 0 | 0 );
5635  if (!SWIG_IsOK(res1)) {
5636  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_pmat_=" "', argument " "1"" of type '" "a_pmat *""'");
5637  }
5638  arg1 = reinterpret_cast< a_pmat * >(argp1);
5639  res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_a_mat, 0 );
5640  if (!SWIG_IsOK(res2)) {
5641  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "a_pmat_=" "', argument " "2"" of type '" "a_mat const &""'");
5642  }
5643  if (!argp2) {
5644  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_pmat_=" "', argument " "2"" of type '" "a_mat const &""'");
5645  }
5646  arg2 = reinterpret_cast< a_mat * >(argp2);
5647  result = (a_pmat *) &(arg1)->operator =((a_mat const &)*arg2);
5648  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_pmat,0));
5649  return TCL_OK;
5650 fail:
5651  return TCL_ERROR;
5652 }
5653 
5654 
5655 SWIGINTERN int
5656 _wrap_a_pmat_help(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5657  std::string result;
5658 
5659  if (SWIG_GetArgs(interp, objc, objv,":a_pmat_help ") == TCL_ERROR) SWIG_fail;
5660  result = a_pmat::help();
5661  Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
5662  return TCL_OK;
5663 fail:
5664  return TCL_ERROR;
5665 }
5666 
5667 
5668 SWIGINTERN int
5669 _wrap_a_pmat_intern(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5670  a_pmat *arg1 = (a_pmat *) 0 ;
5671  a_intern *arg2 = 0 ;
5672  void *argp1 = 0 ;
5673  int res1 = 0 ;
5674  void *argp2 ;
5675  int res2 = 0 ;
5676 
5677  if (SWIG_GetArgs(interp, objc, objv,"oo:a_pmat_intern self in ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
5678  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_pmat, 0 | 0 );
5679  if (!SWIG_IsOK(res1)) {
5680  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_pmat_intern" "', argument " "1"" of type '" "a_pmat *""'");
5681  }
5682  arg1 = reinterpret_cast< a_pmat * >(argp1);
5683  res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_a_intern, 0 );
5684  if (!SWIG_IsOK(res2)) {
5685  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "a_pmat_intern" "', argument " "2"" of type '" "a_intern const &""'");
5686  }
5687  if (!argp2) {
5688  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_pmat_intern" "', argument " "2"" of type '" "a_intern const &""'");
5689  }
5690  arg2 = reinterpret_cast< a_intern * >(argp2);
5691  (arg1)->intern((a_intern const &)*arg2);
5692 
5693  return TCL_OK;
5694 fail:
5695  return TCL_ERROR;
5696 }
5697 
5698 
5699 SWIGINTERN int
5700 _wrap_a_pmat_parallel(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5701  a_pmat *arg1 = (a_pmat *) 0 ;
5702  void *argp1 = 0 ;
5703  int res1 = 0 ;
5704 
5705  if (SWIG_GetArgs(interp, objc, objv,"o:a_pmat_parallel self ",(void *)0) == TCL_ERROR) SWIG_fail;
5706  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_pmat, 0 | 0 );
5707  if (!SWIG_IsOK(res1)) {
5708  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_pmat_parallel" "', argument " "1"" of type '" "a_pmat *""'");
5709  }
5710  arg1 = reinterpret_cast< a_pmat * >(argp1);
5711  (arg1)->parallel();
5712 
5713  return TCL_OK;
5714 fail:
5715  return TCL_ERROR;
5716 }
5717 
5718 
5719 SWIGINTERN int
5720 _wrap_a_pmat_move(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5721  a_pmat *arg1 = (a_pmat *) 0 ;
5722  a_pos *arg2 = 0 ;
5723  void *argp1 = 0 ;
5724  int res1 = 0 ;
5725  void *argp2 ;
5726  int res2 = 0 ;
5727 
5728  if (SWIG_GetArgs(interp, objc, objv,"oo:a_pmat_move self m ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
5729  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_pmat, 0 | 0 );
5730  if (!SWIG_IsOK(res1)) {
5731  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_pmat_move" "', argument " "1"" of type '" "a_pmat *""'");
5732  }
5733  arg1 = reinterpret_cast< a_pmat * >(argp1);
5734  res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_a_pos, 0 );
5735  if (!SWIG_IsOK(res2)) {
5736  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "a_pmat_move" "', argument " "2"" of type '" "a_pos const &""'");
5737  }
5738  if (!argp2) {
5739  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_pmat_move" "', argument " "2"" of type '" "a_pos const &""'");
5740  }
5741  arg2 = reinterpret_cast< a_pos * >(argp2);
5742  (arg1)->move((a_pos const &)*arg2);
5743 
5744  return TCL_OK;
5745 fail:
5746  return TCL_ERROR;
5747 }
5748 
5749 
5750 SWIGINTERN int
5751 _wrap_a_pmat_project(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5752  a_pmat *arg1 = (a_pmat *) 0 ;
5753  a_3dh *arg2 = 0 ;
5754  void *argp1 = 0 ;
5755  int res1 = 0 ;
5756  void *argp2 ;
5757  int res2 = 0 ;
5758  a_2dh result;
5759 
5760  if (SWIG_GetArgs(interp, objc, objv,"oo:a_pmat_project self p3d ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
5761  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_pmat, 0 | 0 );
5762  if (!SWIG_IsOK(res1)) {
5763  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_pmat_project" "', argument " "1"" of type '" "a_pmat const *""'");
5764  }
5765  arg1 = reinterpret_cast< a_pmat * >(argp1);
5766  res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_a_3dh, 0 );
5767  if (!SWIG_IsOK(res2)) {
5768  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "a_pmat_project" "', argument " "2"" of type '" "a_3dh const &""'");
5769  }
5770  if (!argp2) {
5771  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_pmat_project" "', argument " "2"" of type '" "a_3dh const &""'");
5772  }
5773  arg2 = reinterpret_cast< a_3dh * >(argp2);
5774  result = ((a_pmat const *)arg1)->project((a_3dh const &)*arg2);
5775  Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new a_2dh(static_cast< const a_2dh& >(result))), SWIGTYPE_p_a_2dh, SWIG_POINTER_OWN | 0 ));
5776  return TCL_OK;
5777 fail:
5778  return TCL_ERROR;
5779 }
5780 
5781 
5782 SWIGINTERN int
5783 _wrap_delete_a_pmat(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5784  a_pmat *arg1 = (a_pmat *) 0 ;
5785  void *argp1 = 0 ;
5786  int res1 = 0 ;
5787 
5788  if (SWIG_GetArgs(interp, objc, objv,"o:delete_a_pmat self ",(void *)0) == TCL_ERROR) SWIG_fail;
5789  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_pmat, SWIG_POINTER_DISOWN | 0 );
5790  if (!SWIG_IsOK(res1)) {
5791  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_a_pmat" "', argument " "1"" of type '" "a_pmat *""'");
5792  }
5793  arg1 = reinterpret_cast< a_pmat * >(argp1);
5794  delete arg1;
5795 
5796  return TCL_OK;
5797 fail:
5798  return TCL_ERROR;
5799 }
5800 
5801 
5803 a_pmat *arg1 = (a_pmat *) obj;
5804 delete arg1;
5805 }
5807  {"=", _wrap_a_pmat_e___},
5808  {"intern", _wrap_a_pmat_intern},
5809  {"parallel", _wrap_a_pmat_parallel},
5810  {"move", _wrap_a_pmat_move},
5811  {"project", _wrap_a_pmat_project},
5812  {0,0}
5813 };
5815  {0,0,0}
5816 };
5817 static swig_class *swig_a_pmat_bases[] = {0,0};
5818 static const char * swig_a_pmat_base_names[] = {"a_mat *",0};
5820 SWIGINTERN int
5821 _wrap_new_a_pos__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5822  a_pos *result = 0 ;
5823 
5824  if (SWIG_GetArgs(interp, objc, objv,":new_a_pos ") == TCL_ERROR) SWIG_fail;
5825  result = (a_pos *)new a_pos();
5826  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_pos,0));
5827  return TCL_OK;
5828 fail:
5829  return TCL_ERROR;
5830 }
5831 
5832 
5833 SWIGINTERN int
5834 _wrap_new_a_pos__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5835  a_mat *arg1 = 0 ;
5836  void *argp1 ;
5837  int res1 = 0 ;
5838  a_pos *result = 0 ;
5839 
5840  if (SWIG_GetArgs(interp, objc, objv,"o:new_a_pos m ",(void *)0) == TCL_ERROR) SWIG_fail;
5841  res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_a_mat, 0 );
5842  if (!SWIG_IsOK(res1)) {
5843  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_a_pos" "', argument " "1"" of type '" "a_mat const &""'");
5844  }
5845  if (!argp1) {
5846  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_a_pos" "', argument " "1"" of type '" "a_mat const &""'");
5847  }
5848  arg1 = reinterpret_cast< a_mat * >(argp1);
5849  result = (a_pos *)new a_pos((a_mat const &)*arg1);
5850  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_pos,0));
5851  return TCL_OK;
5852 fail:
5853  return TCL_ERROR;
5854 }
5855 
5856 
5857 SWIGINTERN int
5858 _wrap_new_a_pos(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5859  Tcl_Obj *CONST *argv = objv+1;
5860  int argc = objc-1;
5861  if (argc == 0) {
5862  return _wrap_new_a_pos__SWIG_0(clientData, interp, objc, argv - 1);
5863  }
5864  if (argc == 1) {
5865  int _v;
5866  void *vptr = 0;
5867  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_mat, SWIG_POINTER_NO_NULL);
5868  _v = SWIG_CheckState(res);
5869  if (_v) {
5870  return _wrap_new_a_pos__SWIG_1(clientData, interp, objc, argv - 1);
5871  }
5872  }
5873 
5874  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'new_a_pos'.\n"
5875  " Possible C/C++ prototypes are:\n"
5876  " a_pos::a_pos()\n"
5877  " a_pos::a_pos(a_mat const &)\n", TCL_STATIC);
5878  return TCL_ERROR;
5879 }
5880 
5881 
5882 SWIGINTERN int
5883 _wrap_a_pos_help(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5884  std::string result;
5885 
5886  if (SWIG_GetArgs(interp, objc, objv,":a_pos_help ") == TCL_ERROR) SWIG_fail;
5887  result = a_pos::help();
5888  Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
5889  return TCL_OK;
5890 fail:
5891  return TCL_ERROR;
5892 }
5893 
5894 
5895 SWIGINTERN int
5896 _wrap_a_pos_translate__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5897  a_pos *arg1 = (a_pos *) 0 ;
5898  double arg2 ;
5899  double arg3 ;
5900  double arg4 ;
5901  void *argp1 = 0 ;
5902  int res1 = 0 ;
5903  double val2 ;
5904  int ecode2 = 0 ;
5905  double val3 ;
5906  int ecode3 = 0 ;
5907  double val4 ;
5908  int ecode4 = 0 ;
5909  a_pos *result = 0 ;
5910 
5911  if (SWIG_GetArgs(interp, objc, objv,"oooo:a_pos_translate self x y z ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
5912  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_pos, 0 | 0 );
5913  if (!SWIG_IsOK(res1)) {
5914  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_pos_translate" "', argument " "1"" of type '" "a_pos *""'");
5915  }
5916  arg1 = reinterpret_cast< a_pos * >(argp1);
5917  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
5918  if (!SWIG_IsOK(ecode2)) {
5919  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_pos_translate" "', argument " "2"" of type '" "double""'");
5920  }
5921  arg2 = static_cast< double >(val2);
5922  ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
5923  if (!SWIG_IsOK(ecode3)) {
5924  SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "a_pos_translate" "', argument " "3"" of type '" "double""'");
5925  }
5926  arg3 = static_cast< double >(val3);
5927  ecode4 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
5928  if (!SWIG_IsOK(ecode4)) {
5929  SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "a_pos_translate" "', argument " "4"" of type '" "double""'");
5930  }
5931  arg4 = static_cast< double >(val4);
5932  result = (a_pos *) &(arg1)->translate(arg2,arg3,arg4);
5933  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_pos,0));
5934  return TCL_OK;
5935 fail:
5936  return TCL_ERROR;
5937 }
5938 
5939 
5940 SWIGINTERN int
5941 _wrap_a_pos_translate__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5942  a_pos *arg1 = (a_pos *) 0 ;
5943  a_point arg2 ;
5944  void *argp1 = 0 ;
5945  int res1 = 0 ;
5946  void *argp2 ;
5947  int res2 = 0 ;
5948  a_pos *result = 0 ;
5949 
5950  if (SWIG_GetArgs(interp, objc, objv,"oo:a_pos_translate self t ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
5951  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_pos, 0 | 0 );
5952  if (!SWIG_IsOK(res1)) {
5953  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_pos_translate" "', argument " "1"" of type '" "a_pos *""'");
5954  }
5955  arg1 = reinterpret_cast< a_pos * >(argp1);
5956  {
5957  res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_a_point, 0 );
5958  if (!SWIG_IsOK(res2)) {
5959  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "a_pos_translate" "', argument " "2"" of type '" "a_point""'");
5960  }
5961  if (!argp2) {
5962  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_pos_translate" "', argument " "2"" of type '" "a_point""'");
5963  } else {
5964  arg2 = *(reinterpret_cast< a_point * >(argp2));
5965  }
5966  }
5967  result = (a_pos *) &(arg1)->translate(arg2);
5968  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_pos,0));
5969  return TCL_OK;
5970 fail:
5971  return TCL_ERROR;
5972 }
5973 
5974 
5975 SWIGINTERN int
5976 _wrap_a_pos_translate(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
5977  Tcl_Obj *CONST *argv = objv+1;
5978  int argc = objc-1;
5979  if (argc == 2) {
5980  int _v;
5981  void *vptr = 0;
5982  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_pos, 0);
5983  _v = SWIG_CheckState(res);
5984  if (_v) {
5985  void *vptr = 0;
5986  int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_a_point, SWIG_POINTER_NO_NULL);
5987  _v = SWIG_CheckState(res);
5988  if (_v) {
5989  return _wrap_a_pos_translate__SWIG_1(clientData, interp, objc, argv - 1);
5990  }
5991  }
5992  }
5993  if (argc == 4) {
5994  int _v;
5995  void *vptr = 0;
5996  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_pos, 0);
5997  _v = SWIG_CheckState(res);
5998  if (_v) {
5999  {
6000  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
6001  _v = SWIG_CheckState(res);
6002  }
6003  if (_v) {
6004  {
6005  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
6006  _v = SWIG_CheckState(res);
6007  }
6008  if (_v) {
6009  {
6010  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
6011  _v = SWIG_CheckState(res);
6012  }
6013  if (_v) {
6014  return _wrap_a_pos_translate__SWIG_0(clientData, interp, objc, argv - 1);
6015  }
6016  }
6017  }
6018  }
6019  }
6020 
6021  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'a_pos_translate'.\n"
6022  " Possible C/C++ prototypes are:\n"
6023  " a_pos::translate(double,double,double)\n"
6024  " a_pos::translate(a_point)\n", TCL_STATIC);
6025  return TCL_ERROR;
6026 }
6027 
6028 
6029 SWIGINTERN int
6030 _wrap_a_pos_rotateX(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6031  a_pos *arg1 = (a_pos *) 0 ;
6032  double arg2 ;
6033  void *argp1 = 0 ;
6034  int res1 = 0 ;
6035  double val2 ;
6036  int ecode2 = 0 ;
6037  a_pos *result = 0 ;
6038 
6039  if (SWIG_GetArgs(interp, objc, objv,"oo:a_pos_rotateX self v ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
6040  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_pos, 0 | 0 );
6041  if (!SWIG_IsOK(res1)) {
6042  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_pos_rotateX" "', argument " "1"" of type '" "a_pos *""'");
6043  }
6044  arg1 = reinterpret_cast< a_pos * >(argp1);
6045  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
6046  if (!SWIG_IsOK(ecode2)) {
6047  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_pos_rotateX" "', argument " "2"" of type '" "double""'");
6048  }
6049  arg2 = static_cast< double >(val2);
6050  result = (a_pos *) &(arg1)->rotateX(arg2);
6051  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_pos,0));
6052  return TCL_OK;
6053 fail:
6054  return TCL_ERROR;
6055 }
6056 
6057 
6058 SWIGINTERN int
6059 _wrap_a_pos_rotateY(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6060  a_pos *arg1 = (a_pos *) 0 ;
6061  double arg2 ;
6062  void *argp1 = 0 ;
6063  int res1 = 0 ;
6064  double val2 ;
6065  int ecode2 = 0 ;
6066  a_pos *result = 0 ;
6067 
6068  if (SWIG_GetArgs(interp, objc, objv,"oo:a_pos_rotateY self v ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
6069  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_pos, 0 | 0 );
6070  if (!SWIG_IsOK(res1)) {
6071  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_pos_rotateY" "', argument " "1"" of type '" "a_pos *""'");
6072  }
6073  arg1 = reinterpret_cast< a_pos * >(argp1);
6074  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
6075  if (!SWIG_IsOK(ecode2)) {
6076  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_pos_rotateY" "', argument " "2"" of type '" "double""'");
6077  }
6078  arg2 = static_cast< double >(val2);
6079  result = (a_pos *) &(arg1)->rotateY(arg2);
6080  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_pos,0));
6081  return TCL_OK;
6082 fail:
6083  return TCL_ERROR;
6084 }
6085 
6086 
6087 SWIGINTERN int
6088 _wrap_a_pos_rotateZ(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6089  a_pos *arg1 = (a_pos *) 0 ;
6090  double arg2 ;
6091  void *argp1 = 0 ;
6092  int res1 = 0 ;
6093  double val2 ;
6094  int ecode2 = 0 ;
6095  a_pos *result = 0 ;
6096 
6097  if (SWIG_GetArgs(interp, objc, objv,"oo:a_pos_rotateZ self v ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
6098  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_pos, 0 | 0 );
6099  if (!SWIG_IsOK(res1)) {
6100  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_pos_rotateZ" "', argument " "1"" of type '" "a_pos *""'");
6101  }
6102  arg1 = reinterpret_cast< a_pos * >(argp1);
6103  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
6104  if (!SWIG_IsOK(ecode2)) {
6105  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_pos_rotateZ" "', argument " "2"" of type '" "double""'");
6106  }
6107  arg2 = static_cast< double >(val2);
6108  result = (a_pos *) &(arg1)->rotateZ(arg2);
6109  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_pos,0));
6110  return TCL_OK;
6111 fail:
6112  return TCL_ERROR;
6113 }
6114 
6115 
6116 SWIGINTERN int
6117 _wrap_a_pos_orient(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6118  a_pos *arg1 = (a_pos *) 0 ;
6119  a_point arg2 ;
6120  void *argp1 = 0 ;
6121  int res1 = 0 ;
6122  void *argp2 ;
6123  int res2 = 0 ;
6124  a_pos *result = 0 ;
6125 
6126  if (SWIG_GetArgs(interp, objc, objv,"oo:a_pos_orient self dir ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
6127  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_pos, 0 | 0 );
6128  if (!SWIG_IsOK(res1)) {
6129  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_pos_orient" "', argument " "1"" of type '" "a_pos *""'");
6130  }
6131  arg1 = reinterpret_cast< a_pos * >(argp1);
6132  {
6133  res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_a_point, 0 );
6134  if (!SWIG_IsOK(res2)) {
6135  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "a_pos_orient" "', argument " "2"" of type '" "a_point""'");
6136  }
6137  if (!argp2) {
6138  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_pos_orient" "', argument " "2"" of type '" "a_point""'");
6139  } else {
6140  arg2 = *(reinterpret_cast< a_point * >(argp2));
6141  }
6142  }
6143  result = (a_pos *) &(arg1)->orient(arg2);
6144  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_pos,0));
6145  return TCL_OK;
6146 fail:
6147  return TCL_ERROR;
6148 }
6149 
6150 
6151 SWIGINTERN int
6152 _wrap_a_pos_rotate(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6153  a_pos *arg1 = (a_pos *) 0 ;
6154  a_quaternion *arg2 = 0 ;
6155  void *argp1 = 0 ;
6156  int res1 = 0 ;
6157  void *argp2 ;
6158  int res2 = 0 ;
6159  a_pos *result = 0 ;
6160 
6161  if (SWIG_GetArgs(interp, objc, objv,"oo:a_pos_rotate self q ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
6162  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_pos, 0 | 0 );
6163  if (!SWIG_IsOK(res1)) {
6164  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_pos_rotate" "', argument " "1"" of type '" "a_pos *""'");
6165  }
6166  arg1 = reinterpret_cast< a_pos * >(argp1);
6167  res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_a_quaternion, 0 );
6168  if (!SWIG_IsOK(res2)) {
6169  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "a_pos_rotate" "', argument " "2"" of type '" "a_quaternion const &""'");
6170  }
6171  if (!argp2) {
6172  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_pos_rotate" "', argument " "2"" of type '" "a_quaternion const &""'");
6173  }
6174  arg2 = reinterpret_cast< a_quaternion * >(argp2);
6175  result = (a_pos *) &(arg1)->rotate((a_quaternion const &)*arg2);
6176  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_pos,0));
6177  return TCL_OK;
6178 fail:
6179  return TCL_ERROR;
6180 }
6181 
6182 
6183 SWIGINTERN int
6184 _wrap_delete_a_pos(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6185  a_pos *arg1 = (a_pos *) 0 ;
6186  void *argp1 = 0 ;
6187  int res1 = 0 ;
6188 
6189  if (SWIG_GetArgs(interp, objc, objv,"o:delete_a_pos self ",(void *)0) == TCL_ERROR) SWIG_fail;
6190  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_pos, SWIG_POINTER_DISOWN | 0 );
6191  if (!SWIG_IsOK(res1)) {
6192  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_a_pos" "', argument " "1"" of type '" "a_pos *""'");
6193  }
6194  arg1 = reinterpret_cast< a_pos * >(argp1);
6195  delete arg1;
6196 
6197  return TCL_OK;
6198 fail:
6199  return TCL_ERROR;
6200 }
6201 
6202 
6204 a_pos *arg1 = (a_pos *) obj;
6205 delete arg1;
6206 }
6208  {"translate", _wrap_a_pos_translate},
6209  {"rotateX", _wrap_a_pos_rotateX},
6210  {"rotateY", _wrap_a_pos_rotateY},
6211  {"rotateZ", _wrap_a_pos_rotateZ},
6212  {"orient", _wrap_a_pos_orient},
6213  {"rotate", _wrap_a_pos_rotate},
6214  {0,0}
6215 };
6217  {0,0,0}
6218 };
6219 static swig_class *swig_a_pos_bases[] = {0,0};
6220 static const char * swig_a_pos_base_names[] = {"a_mat *",0};
6222 SWIGINTERN int
6223 _wrap_new_a_quaternion__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6224  a_quaternion *result = 0 ;
6225 
6226  if (SWIG_GetArgs(interp, objc, objv,":new_a_quaternion ") == TCL_ERROR) SWIG_fail;
6227  result = (a_quaternion *)new a_quaternion();
6228  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_quaternion,0));
6229  return TCL_OK;
6230 fail:
6231  return TCL_ERROR;
6232 }
6233 
6234 
6235 SWIGINTERN int
6236 _wrap_new_a_quaternion__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6237  double arg1 ;
6238  double val1 ;
6239  int ecode1 = 0 ;
6240  a_quaternion *result = 0 ;
6241 
6242  if (SWIG_GetArgs(interp, objc, objv,"o:new_a_quaternion r ",(void *)0) == TCL_ERROR) SWIG_fail;
6243  ecode1 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
6244  if (!SWIG_IsOK(ecode1)) {
6245  SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_a_quaternion" "', argument " "1"" of type '" "double""'");
6246  }
6247  arg1 = static_cast< double >(val1);
6248  result = (a_quaternion *)new a_quaternion(arg1);
6249  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_quaternion,0));
6250  return TCL_OK;
6251 fail:
6252  return TCL_ERROR;
6253 }
6254 
6255 
6256 SWIGINTERN int
6257 _wrap_new_a_quaternion__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6258  double arg1 ;
6259  double arg2 ;
6260  double arg3 ;
6261  double arg4 ;
6262  double val1 ;
6263  int ecode1 = 0 ;
6264  double val2 ;
6265  int ecode2 = 0 ;
6266  double val3 ;
6267  int ecode3 = 0 ;
6268  double val4 ;
6269  int ecode4 = 0 ;
6270  a_quaternion *result = 0 ;
6271 
6272  if (SWIG_GetArgs(interp, objc, objv,"oooo:new_a_quaternion r i j k ",(void *)0,(void *)0,(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
6273  ecode1 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[1], &val1);
6274  if (!SWIG_IsOK(ecode1)) {
6275  SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_a_quaternion" "', argument " "1"" of type '" "double""'");
6276  }
6277  arg1 = static_cast< double >(val1);
6278  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
6279  if (!SWIG_IsOK(ecode2)) {
6280  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_a_quaternion" "', argument " "2"" of type '" "double""'");
6281  }
6282  arg2 = static_cast< double >(val2);
6283  ecode3 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[3], &val3);
6284  if (!SWIG_IsOK(ecode3)) {
6285  SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_a_quaternion" "', argument " "3"" of type '" "double""'");
6286  }
6287  arg3 = static_cast< double >(val3);
6288  ecode4 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[4], &val4);
6289  if (!SWIG_IsOK(ecode4)) {
6290  SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_a_quaternion" "', argument " "4"" of type '" "double""'");
6291  }
6292  arg4 = static_cast< double >(val4);
6293  result = (a_quaternion *)new a_quaternion(arg1,arg2,arg3,arg4);
6294  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_quaternion,0));
6295  return TCL_OK;
6296 fail:
6297  return TCL_ERROR;
6298 }
6299 
6300 
6301 SWIGINTERN int
6302 _wrap_new_a_quaternion__SWIG_3(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6303  a_quaternion *arg1 = 0 ;
6304  void *argp1 ;
6305  int res1 = 0 ;
6306  a_quaternion *result = 0 ;
6307 
6308  if (SWIG_GetArgs(interp, objc, objv,"o:new_a_quaternion b ",(void *)0) == TCL_ERROR) SWIG_fail;
6309  res1 = SWIG_ConvertPtr(objv[1], &argp1, SWIGTYPE_p_a_quaternion, 0 );
6310  if (!SWIG_IsOK(res1)) {
6311  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_a_quaternion" "', argument " "1"" of type '" "a_quaternion const &""'");
6312  }
6313  if (!argp1) {
6314  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_a_quaternion" "', argument " "1"" of type '" "a_quaternion const &""'");
6315  }
6316  arg1 = reinterpret_cast< a_quaternion * >(argp1);
6317  result = (a_quaternion *)new a_quaternion((a_quaternion const &)*arg1);
6318  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_quaternion,0));
6319  return TCL_OK;
6320 fail:
6321  return TCL_ERROR;
6322 }
6323 
6324 
6325 SWIGINTERN int
6326 _wrap_new_a_quaternion(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6327  Tcl_Obj *CONST *argv = objv+1;
6328  int argc = objc-1;
6329  if (argc == 0) {
6330  return _wrap_new_a_quaternion__SWIG_0(clientData, interp, objc, argv - 1);
6331  }
6332  if (argc == 1) {
6333  int _v;
6334  void *vptr = 0;
6335  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_quaternion, SWIG_POINTER_NO_NULL);
6336  _v = SWIG_CheckState(res);
6337  if (_v) {
6338  return _wrap_new_a_quaternion__SWIG_3(clientData, interp, objc, argv - 1);
6339  }
6340  }
6341  if (argc == 1) {
6342  int _v;
6343  {
6344  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
6345  _v = SWIG_CheckState(res);
6346  }
6347  if (_v) {
6348  return _wrap_new_a_quaternion__SWIG_1(clientData, interp, objc, argv - 1);
6349  }
6350  }
6351  if (argc == 4) {
6352  int _v;
6353  {
6354  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[0], NULL);
6355  _v = SWIG_CheckState(res);
6356  }
6357  if (_v) {
6358  {
6359  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
6360  _v = SWIG_CheckState(res);
6361  }
6362  if (_v) {
6363  {
6364  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[2], NULL);
6365  _v = SWIG_CheckState(res);
6366  }
6367  if (_v) {
6368  {
6369  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[3], NULL);
6370  _v = SWIG_CheckState(res);
6371  }
6372  if (_v) {
6373  return _wrap_new_a_quaternion__SWIG_2(clientData, interp, objc, argv - 1);
6374  }
6375  }
6376  }
6377  }
6378  }
6379 
6380  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'new_a_quaternion'.\n"
6381  " Possible C/C++ prototypes are:\n"
6382  " a_quaternion::a_quaternion()\n"
6383  " a_quaternion::a_quaternion(double)\n"
6384  " a_quaternion::a_quaternion(double,double,double,double)\n"
6385  " a_quaternion::a_quaternion(a_quaternion const &)\n", TCL_STATIC);
6386  return TCL_ERROR;
6387 }
6388 
6389 
6390 SWIGINTERN int
6391 _wrap_a_quaternion_r__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6392  a_quaternion *arg1 = (a_quaternion *) 0 ;
6393  void *argp1 = 0 ;
6394  int res1 = 0 ;
6395  double result;
6396 
6397  if (SWIG_GetArgs(interp, objc, objv,"o:a_quaternion_r self ",(void *)0) == TCL_ERROR) SWIG_fail;
6398  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_quaternion, 0 | 0 );
6399  if (!SWIG_IsOK(res1)) {
6400  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_quaternion_r" "', argument " "1"" of type '" "a_quaternion const *""'");
6401  }
6402  arg1 = reinterpret_cast< a_quaternion * >(argp1);
6403  result = (double)((a_quaternion const *)arg1)->r();
6404  Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
6405  return TCL_OK;
6406 fail:
6407  return TCL_ERROR;
6408 }
6409 
6410 
6411 SWIGINTERN int
6412 _wrap_a_quaternion_i__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6413  a_quaternion *arg1 = (a_quaternion *) 0 ;
6414  void *argp1 = 0 ;
6415  int res1 = 0 ;
6416  double result;
6417 
6418  if (SWIG_GetArgs(interp, objc, objv,"o:a_quaternion_i self ",(void *)0) == TCL_ERROR) SWIG_fail;
6419  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_quaternion, 0 | 0 );
6420  if (!SWIG_IsOK(res1)) {
6421  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_quaternion_i" "', argument " "1"" of type '" "a_quaternion const *""'");
6422  }
6423  arg1 = reinterpret_cast< a_quaternion * >(argp1);
6424  result = (double)((a_quaternion const *)arg1)->i();
6425  Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
6426  return TCL_OK;
6427 fail:
6428  return TCL_ERROR;
6429 }
6430 
6431 
6432 SWIGINTERN int
6433 _wrap_a_quaternion_j__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6434  a_quaternion *arg1 = (a_quaternion *) 0 ;
6435  void *argp1 = 0 ;
6436  int res1 = 0 ;
6437  double result;
6438 
6439  if (SWIG_GetArgs(interp, objc, objv,"o:a_quaternion_j self ",(void *)0) == TCL_ERROR) SWIG_fail;
6440  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_quaternion, 0 | 0 );
6441  if (!SWIG_IsOK(res1)) {
6442  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_quaternion_j" "', argument " "1"" of type '" "a_quaternion const *""'");
6443  }
6444  arg1 = reinterpret_cast< a_quaternion * >(argp1);
6445  result = (double)((a_quaternion const *)arg1)->j();
6446  Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
6447  return TCL_OK;
6448 fail:
6449  return TCL_ERROR;
6450 }
6451 
6452 
6453 SWIGINTERN int
6454 _wrap_a_quaternion_k__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6455  a_quaternion *arg1 = (a_quaternion *) 0 ;
6456  void *argp1 = 0 ;
6457  int res1 = 0 ;
6458  double result;
6459 
6460  if (SWIG_GetArgs(interp, objc, objv,"o:a_quaternion_k self ",(void *)0) == TCL_ERROR) SWIG_fail;
6461  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_quaternion, 0 | 0 );
6462  if (!SWIG_IsOK(res1)) {
6463  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_quaternion_k" "', argument " "1"" of type '" "a_quaternion const *""'");
6464  }
6465  arg1 = reinterpret_cast< a_quaternion * >(argp1);
6466  result = (double)((a_quaternion const *)arg1)->k();
6467  Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
6468  return TCL_OK;
6469 fail:
6470  return TCL_ERROR;
6471 }
6472 
6473 
6474 SWIGINTERN int
6475 _wrap_a_quaternion_r__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6476  a_quaternion *arg1 = (a_quaternion *) 0 ;
6477  double arg2 ;
6478  void *argp1 = 0 ;
6479  int res1 = 0 ;
6480  double val2 ;
6481  int ecode2 = 0 ;
6482 
6483  if (SWIG_GetArgs(interp, objc, objv,"oo:a_quaternion_r self r ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
6484  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_quaternion, 0 | 0 );
6485  if (!SWIG_IsOK(res1)) {
6486  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_quaternion_r" "', argument " "1"" of type '" "a_quaternion *""'");
6487  }
6488  arg1 = reinterpret_cast< a_quaternion * >(argp1);
6489  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
6490  if (!SWIG_IsOK(ecode2)) {
6491  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_quaternion_r" "', argument " "2"" of type '" "double""'");
6492  }
6493  arg2 = static_cast< double >(val2);
6494  (arg1)->r(arg2);
6495 
6496  return TCL_OK;
6497 fail:
6498  return TCL_ERROR;
6499 }
6500 
6501 
6502 SWIGINTERN int
6503 _wrap_a_quaternion_r(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6504  Tcl_Obj *CONST *argv = objv+1;
6505  int argc = objc-1;
6506  if (argc == 1) {
6507  int _v;
6508  void *vptr = 0;
6509  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_quaternion, 0);
6510  _v = SWIG_CheckState(res);
6511  if (_v) {
6512  return _wrap_a_quaternion_r__SWIG_0(clientData, interp, objc, argv - 1);
6513  }
6514  }
6515  if (argc == 2) {
6516  int _v;
6517  void *vptr = 0;
6518  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_quaternion, 0);
6519  _v = SWIG_CheckState(res);
6520  if (_v) {
6521  {
6522  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
6523  _v = SWIG_CheckState(res);
6524  }
6525  if (_v) {
6526  return _wrap_a_quaternion_r__SWIG_1(clientData, interp, objc, argv - 1);
6527  }
6528  }
6529  }
6530 
6531  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'a_quaternion_r'.\n"
6532  " Possible C/C++ prototypes are:\n"
6533  " a_quaternion::r() const\n"
6534  " a_quaternion::r(double)\n", TCL_STATIC);
6535  return TCL_ERROR;
6536 }
6537 
6538 
6539 SWIGINTERN int
6540 _wrap_a_quaternion_i__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6541  a_quaternion *arg1 = (a_quaternion *) 0 ;
6542  double arg2 ;
6543  void *argp1 = 0 ;
6544  int res1 = 0 ;
6545  double val2 ;
6546  int ecode2 = 0 ;
6547 
6548  if (SWIG_GetArgs(interp, objc, objv,"oo:a_quaternion_i self i ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
6549  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_quaternion, 0 | 0 );
6550  if (!SWIG_IsOK(res1)) {
6551  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_quaternion_i" "', argument " "1"" of type '" "a_quaternion *""'");
6552  }
6553  arg1 = reinterpret_cast< a_quaternion * >(argp1);
6554  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
6555  if (!SWIG_IsOK(ecode2)) {
6556  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_quaternion_i" "', argument " "2"" of type '" "double""'");
6557  }
6558  arg2 = static_cast< double >(val2);
6559  (arg1)->i(arg2);
6560 
6561  return TCL_OK;
6562 fail:
6563  return TCL_ERROR;
6564 }
6565 
6566 
6567 SWIGINTERN int
6568 _wrap_a_quaternion_i(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6569  Tcl_Obj *CONST *argv = objv+1;
6570  int argc = objc-1;
6571  if (argc == 1) {
6572  int _v;
6573  void *vptr = 0;
6574  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_quaternion, 0);
6575  _v = SWIG_CheckState(res);
6576  if (_v) {
6577  return _wrap_a_quaternion_i__SWIG_0(clientData, interp, objc, argv - 1);
6578  }
6579  }
6580  if (argc == 2) {
6581  int _v;
6582  void *vptr = 0;
6583  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_quaternion, 0);
6584  _v = SWIG_CheckState(res);
6585  if (_v) {
6586  {
6587  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
6588  _v = SWIG_CheckState(res);
6589  }
6590  if (_v) {
6591  return _wrap_a_quaternion_i__SWIG_1(clientData, interp, objc, argv - 1);
6592  }
6593  }
6594  }
6595 
6596  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'a_quaternion_i'.\n"
6597  " Possible C/C++ prototypes are:\n"
6598  " a_quaternion::i() const\n"
6599  " a_quaternion::i(double)\n", TCL_STATIC);
6600  return TCL_ERROR;
6601 }
6602 
6603 
6604 SWIGINTERN int
6605 _wrap_a_quaternion_j__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6606  a_quaternion *arg1 = (a_quaternion *) 0 ;
6607  double arg2 ;
6608  void *argp1 = 0 ;
6609  int res1 = 0 ;
6610  double val2 ;
6611  int ecode2 = 0 ;
6612 
6613  if (SWIG_GetArgs(interp, objc, objv,"oo:a_quaternion_j self j ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
6614  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_quaternion, 0 | 0 );
6615  if (!SWIG_IsOK(res1)) {
6616  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_quaternion_j" "', argument " "1"" of type '" "a_quaternion *""'");
6617  }
6618  arg1 = reinterpret_cast< a_quaternion * >(argp1);
6619  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
6620  if (!SWIG_IsOK(ecode2)) {
6621  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_quaternion_j" "', argument " "2"" of type '" "double""'");
6622  }
6623  arg2 = static_cast< double >(val2);
6624  (arg1)->j(arg2);
6625 
6626  return TCL_OK;
6627 fail:
6628  return TCL_ERROR;
6629 }
6630 
6631 
6632 SWIGINTERN int
6633 _wrap_a_quaternion_j(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6634  Tcl_Obj *CONST *argv = objv+1;
6635  int argc = objc-1;
6636  if (argc == 1) {
6637  int _v;
6638  void *vptr = 0;
6639  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_quaternion, 0);
6640  _v = SWIG_CheckState(res);
6641  if (_v) {
6642  return _wrap_a_quaternion_j__SWIG_0(clientData, interp, objc, argv - 1);
6643  }
6644  }
6645  if (argc == 2) {
6646  int _v;
6647  void *vptr = 0;
6648  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_quaternion, 0);
6649  _v = SWIG_CheckState(res);
6650  if (_v) {
6651  {
6652  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
6653  _v = SWIG_CheckState(res);
6654  }
6655  if (_v) {
6656  return _wrap_a_quaternion_j__SWIG_1(clientData, interp, objc, argv - 1);
6657  }
6658  }
6659  }
6660 
6661  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'a_quaternion_j'.\n"
6662  " Possible C/C++ prototypes are:\n"
6663  " a_quaternion::j() const\n"
6664  " a_quaternion::j(double)\n", TCL_STATIC);
6665  return TCL_ERROR;
6666 }
6667 
6668 
6669 SWIGINTERN int
6670 _wrap_a_quaternion_k__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6671  a_quaternion *arg1 = (a_quaternion *) 0 ;
6672  double arg2 ;
6673  void *argp1 = 0 ;
6674  int res1 = 0 ;
6675  double val2 ;
6676  int ecode2 = 0 ;
6677 
6678  if (SWIG_GetArgs(interp, objc, objv,"oo:a_quaternion_k self k ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
6679  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_quaternion, 0 | 0 );
6680  if (!SWIG_IsOK(res1)) {
6681  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_quaternion_k" "', argument " "1"" of type '" "a_quaternion *""'");
6682  }
6683  arg1 = reinterpret_cast< a_quaternion * >(argp1);
6684  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
6685  if (!SWIG_IsOK(ecode2)) {
6686  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_quaternion_k" "', argument " "2"" of type '" "double""'");
6687  }
6688  arg2 = static_cast< double >(val2);
6689  (arg1)->k(arg2);
6690 
6691  return TCL_OK;
6692 fail:
6693  return TCL_ERROR;
6694 }
6695 
6696 
6697 SWIGINTERN int
6698 _wrap_a_quaternion_k(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6699  Tcl_Obj *CONST *argv = objv+1;
6700  int argc = objc-1;
6701  if (argc == 1) {
6702  int _v;
6703  void *vptr = 0;
6704  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_quaternion, 0);
6705  _v = SWIG_CheckState(res);
6706  if (_v) {
6707  return _wrap_a_quaternion_k__SWIG_0(clientData, interp, objc, argv - 1);
6708  }
6709  }
6710  if (argc == 2) {
6711  int _v;
6712  void *vptr = 0;
6713  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_quaternion, 0);
6714  _v = SWIG_CheckState(res);
6715  if (_v) {
6716  {
6717  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
6718  _v = SWIG_CheckState(res);
6719  }
6720  if (_v) {
6721  return _wrap_a_quaternion_k__SWIG_1(clientData, interp, objc, argv - 1);
6722  }
6723  }
6724  }
6725 
6726  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'a_quaternion_k'.\n"
6727  " Possible C/C++ prototypes are:\n"
6728  " a_quaternion::k() const\n"
6729  " a_quaternion::k(double)\n", TCL_STATIC);
6730  return TCL_ERROR;
6731 }
6732 
6733 
6734 SWIGINTERN int
6735 _wrap_a_quaternion_norm(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6736  a_quaternion *arg1 = (a_quaternion *) 0 ;
6737  void *argp1 = 0 ;
6738  int res1 = 0 ;
6739  double result;
6740 
6741  if (SWIG_GetArgs(interp, objc, objv,"o:a_quaternion_norm self ",(void *)0) == TCL_ERROR) SWIG_fail;
6742  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_quaternion, 0 | 0 );
6743  if (!SWIG_IsOK(res1)) {
6744  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_quaternion_norm" "', argument " "1"" of type '" "a_quaternion const *""'");
6745  }
6746  arg1 = reinterpret_cast< a_quaternion * >(argp1);
6747  result = (double)((a_quaternion const *)arg1)->norm();
6748  Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
6749  return TCL_OK;
6750 fail:
6751  return TCL_ERROR;
6752 }
6753 
6754 
6755 SWIGINTERN int
6756 _wrap_a_quaternion_abs(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6757  a_quaternion *arg1 = (a_quaternion *) 0 ;
6758  void *argp1 = 0 ;
6759  int res1 = 0 ;
6760  double result;
6761 
6762  if (SWIG_GetArgs(interp, objc, objv,"o:a_quaternion_abs self ",(void *)0) == TCL_ERROR) SWIG_fail;
6763  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_quaternion, 0 | 0 );
6764  if (!SWIG_IsOK(res1)) {
6765  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_quaternion_abs" "', argument " "1"" of type '" "a_quaternion const *""'");
6766  }
6767  arg1 = reinterpret_cast< a_quaternion * >(argp1);
6768  result = (double)((a_quaternion const *)arg1)->abs();
6769  Tcl_SetObjResult(interp,SWIG_From_double(static_cast< double >(result)));
6770  return TCL_OK;
6771 fail:
6772  return TCL_ERROR;
6773 }
6774 
6775 
6776 SWIGINTERN int
6777 _wrap_a_quaternion_negate(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6778  a_quaternion *arg1 = (a_quaternion *) 0 ;
6779  void *argp1 = 0 ;
6780  int res1 = 0 ;
6781  a_quaternion *result = 0 ;
6782 
6783  if (SWIG_GetArgs(interp, objc, objv,"o:a_quaternion_negate self ",(void *)0) == TCL_ERROR) SWIG_fail;
6784  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_quaternion, 0 | 0 );
6785  if (!SWIG_IsOK(res1)) {
6786  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_quaternion_negate" "', argument " "1"" of type '" "a_quaternion *""'");
6787  }
6788  arg1 = reinterpret_cast< a_quaternion * >(argp1);
6789  result = (a_quaternion *) &(arg1)->negate();
6790  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_quaternion,0));
6791  return TCL_OK;
6792 fail:
6793  return TCL_ERROR;
6794 }
6795 
6796 
6797 SWIGINTERN int
6798 _wrap_a_quaternion_conjugate(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6799  a_quaternion *arg1 = (a_quaternion *) 0 ;
6800  void *argp1 = 0 ;
6801  int res1 = 0 ;
6802  a_quaternion *result = 0 ;
6803 
6804  if (SWIG_GetArgs(interp, objc, objv,"o:a_quaternion_conjugate self ",(void *)0) == TCL_ERROR) SWIG_fail;
6805  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_quaternion, 0 | 0 );
6806  if (!SWIG_IsOK(res1)) {
6807  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_quaternion_conjugate" "', argument " "1"" of type '" "a_quaternion *""'");
6808  }
6809  arg1 = reinterpret_cast< a_quaternion * >(argp1);
6810  result = (a_quaternion *) &(arg1)->conjugate();
6811  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_quaternion,0));
6812  return TCL_OK;
6813 fail:
6814  return TCL_ERROR;
6815 }
6816 
6817 
6818 SWIGINTERN int
6819 _wrap_a_quaternion_square(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6820  a_quaternion *arg1 = (a_quaternion *) 0 ;
6821  void *argp1 = 0 ;
6822  int res1 = 0 ;
6823  a_quaternion *result = 0 ;
6824 
6825  if (SWIG_GetArgs(interp, objc, objv,"o:a_quaternion_square self ",(void *)0) == TCL_ERROR) SWIG_fail;
6826  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_quaternion, 0 | 0 );
6827  if (!SWIG_IsOK(res1)) {
6828  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_quaternion_square" "', argument " "1"" of type '" "a_quaternion *""'");
6829  }
6830  arg1 = reinterpret_cast< a_quaternion * >(argp1);
6831  result = (a_quaternion *) &(arg1)->square();
6832  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_quaternion,0));
6833  return TCL_OK;
6834 fail:
6835  return TCL_ERROR;
6836 }
6837 
6838 
6839 SWIGINTERN int
6840 _wrap_a_quaternion_invert(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6841  a_quaternion *arg1 = (a_quaternion *) 0 ;
6842  void *argp1 = 0 ;
6843  int res1 = 0 ;
6844  a_quaternion *result = 0 ;
6845 
6846  if (SWIG_GetArgs(interp, objc, objv,"o:a_quaternion_invert self ",(void *)0) == TCL_ERROR) SWIG_fail;
6847  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_quaternion, 0 | 0 );
6848  if (!SWIG_IsOK(res1)) {
6849  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_quaternion_invert" "', argument " "1"" of type '" "a_quaternion *""'");
6850  }
6851  arg1 = reinterpret_cast< a_quaternion * >(argp1);
6852  result = (a_quaternion *) &(arg1)->invert();
6853  Tcl_SetObjResult(interp, SWIG_NewInstanceObj( SWIG_as_voidptr(result), SWIGTYPE_p_a_quaternion,0));
6854  return TCL_OK;
6855 fail:
6856  return TCL_ERROR;
6857 }
6858 
6859 
6860 SWIGINTERN int
6861 _wrap_a_quaternion_a___(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6862  a_quaternion *arg1 = (a_quaternion *) 0 ;
6863  a_quaternion *arg2 = 0 ;
6864  void *argp1 = 0 ;
6865  int res1 = 0 ;
6866  void *argp2 ;
6867  int res2 = 0 ;
6868  a_quaternion result;
6869 
6870  if (SWIG_GetArgs(interp, objc, objv,"oo:a_quaternion_+ self b ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
6871  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_quaternion, 0 | 0 );
6872  if (!SWIG_IsOK(res1)) {
6873  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_quaternion_+" "', argument " "1"" of type '" "a_quaternion *""'");
6874  }
6875  arg1 = reinterpret_cast< a_quaternion * >(argp1);
6876  res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_a_quaternion, 0 );
6877  if (!SWIG_IsOK(res2)) {
6878  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "a_quaternion_+" "', argument " "2"" of type '" "a_quaternion const &""'");
6879  }
6880  if (!argp2) {
6881  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_quaternion_+" "', argument " "2"" of type '" "a_quaternion const &""'");
6882  }
6883  arg2 = reinterpret_cast< a_quaternion * >(argp2);
6884  result = (arg1)->operator +((a_quaternion const &)*arg2);
6885  Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new a_quaternion(static_cast< const a_quaternion& >(result))), SWIGTYPE_p_a_quaternion, SWIG_POINTER_OWN | 0 ));
6886  return TCL_OK;
6887 fail:
6888  return TCL_ERROR;
6889 }
6890 
6891 
6892 SWIGINTERN int
6893 _wrap_a_quaternion_s___(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6894  a_quaternion *arg1 = (a_quaternion *) 0 ;
6895  a_quaternion *arg2 = 0 ;
6896  void *argp1 = 0 ;
6897  int res1 = 0 ;
6898  void *argp2 ;
6899  int res2 = 0 ;
6900  a_quaternion result;
6901 
6902  if (SWIG_GetArgs(interp, objc, objv,"oo:a_quaternion_- self b ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
6903  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_quaternion, 0 | 0 );
6904  if (!SWIG_IsOK(res1)) {
6905  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_quaternion_-" "', argument " "1"" of type '" "a_quaternion *""'");
6906  }
6907  arg1 = reinterpret_cast< a_quaternion * >(argp1);
6908  res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_a_quaternion, 0 );
6909  if (!SWIG_IsOK(res2)) {
6910  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "a_quaternion_-" "', argument " "2"" of type '" "a_quaternion const &""'");
6911  }
6912  if (!argp2) {
6913  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_quaternion_-" "', argument " "2"" of type '" "a_quaternion const &""'");
6914  }
6915  arg2 = reinterpret_cast< a_quaternion * >(argp2);
6916  result = (arg1)->operator -((a_quaternion const &)*arg2);
6917  Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new a_quaternion(static_cast< const a_quaternion& >(result))), SWIGTYPE_p_a_quaternion, SWIG_POINTER_OWN | 0 ));
6918  return TCL_OK;
6919 fail:
6920  return TCL_ERROR;
6921 }
6922 
6923 
6924 SWIGINTERN int
6925 _wrap_a_quaternion_m_____SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6926  a_quaternion *arg1 = (a_quaternion *) 0 ;
6927  double arg2 ;
6928  void *argp1 = 0 ;
6929  int res1 = 0 ;
6930  double val2 ;
6931  int ecode2 = 0 ;
6932  a_quaternion result;
6933 
6934  if (SWIG_GetArgs(interp, objc, objv,"oo:a_quaternion_* self b ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
6935  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_quaternion, 0 | 0 );
6936  if (!SWIG_IsOK(res1)) {
6937  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_quaternion_*" "', argument " "1"" of type '" "a_quaternion *""'");
6938  }
6939  arg1 = reinterpret_cast< a_quaternion * >(argp1);
6940  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
6941  if (!SWIG_IsOK(ecode2)) {
6942  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_quaternion_*" "', argument " "2"" of type '" "double""'");
6943  }
6944  arg2 = static_cast< double >(val2);
6945  result = (arg1)->operator *(arg2);
6946  Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new a_quaternion(static_cast< const a_quaternion& >(result))), SWIGTYPE_p_a_quaternion, SWIG_POINTER_OWN | 0 ));
6947  return TCL_OK;
6948 fail:
6949  return TCL_ERROR;
6950 }
6951 
6952 
6953 SWIGINTERN int
6954 _wrap_a_quaternion_d_____SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6955  a_quaternion *arg1 = (a_quaternion *) 0 ;
6956  double arg2 ;
6957  void *argp1 = 0 ;
6958  int res1 = 0 ;
6959  double val2 ;
6960  int ecode2 = 0 ;
6961  a_quaternion result;
6962 
6963  if (SWIG_GetArgs(interp, objc, objv,"oo:a_quaternion_/ self b ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
6964  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_quaternion, 0 | 0 );
6965  if (!SWIG_IsOK(res1)) {
6966  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_quaternion_/" "', argument " "1"" of type '" "a_quaternion *""'");
6967  }
6968  arg1 = reinterpret_cast< a_quaternion * >(argp1);
6969  ecode2 = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(objv[2], &val2);
6970  if (!SWIG_IsOK(ecode2)) {
6971  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "a_quaternion_/" "', argument " "2"" of type '" "double""'");
6972  }
6973  arg2 = static_cast< double >(val2);
6974  result = (arg1)->operator /(arg2);
6975  Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new a_quaternion(static_cast< const a_quaternion& >(result))), SWIGTYPE_p_a_quaternion, SWIG_POINTER_OWN | 0 ));
6976  return TCL_OK;
6977 fail:
6978  return TCL_ERROR;
6979 }
6980 
6981 
6982 SWIGINTERN int
6983 _wrap_a_quaternion_m_____SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
6984  a_quaternion *arg1 = (a_quaternion *) 0 ;
6985  a_quaternion *arg2 = 0 ;
6986  void *argp1 = 0 ;
6987  int res1 = 0 ;
6988  void *argp2 ;
6989  int res2 = 0 ;
6990  a_quaternion result;
6991 
6992  if (SWIG_GetArgs(interp, objc, objv,"oo:a_quaternion_* self b ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
6993  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_quaternion, 0 | 0 );
6994  if (!SWIG_IsOK(res1)) {
6995  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_quaternion_*" "', argument " "1"" of type '" "a_quaternion *""'");
6996  }
6997  arg1 = reinterpret_cast< a_quaternion * >(argp1);
6998  res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_a_quaternion, 0 );
6999  if (!SWIG_IsOK(res2)) {
7000  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "a_quaternion_*" "', argument " "2"" of type '" "a_quaternion const &""'");
7001  }
7002  if (!argp2) {
7003  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_quaternion_*" "', argument " "2"" of type '" "a_quaternion const &""'");
7004  }
7005  arg2 = reinterpret_cast< a_quaternion * >(argp2);
7006  result = (arg1)->operator *((a_quaternion const &)*arg2);
7007  Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new a_quaternion(static_cast< const a_quaternion& >(result))), SWIGTYPE_p_a_quaternion, SWIG_POINTER_OWN | 0 ));
7008  return TCL_OK;
7009 fail:
7010  return TCL_ERROR;
7011 }
7012 
7013 
7014 SWIGINTERN int
7015 _wrap_a_quaternion_m___(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
7016  Tcl_Obj *CONST *argv = objv+1;
7017  int argc = objc-1;
7018  if (argc == 2) {
7019  int _v;
7020  void *vptr = 0;
7021  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_quaternion, 0);
7022  _v = SWIG_CheckState(res);
7023  if (_v) {
7024  void *vptr = 0;
7025  int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_a_quaternion, SWIG_POINTER_NO_NULL);
7026  _v = SWIG_CheckState(res);
7027  if (_v) {
7028  return _wrap_a_quaternion_m_____SWIG_1(clientData, interp, objc, argv - 1);
7029  }
7030  }
7031  }
7032  if (argc == 2) {
7033  int _v;
7034  void *vptr = 0;
7035  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_quaternion, 0);
7036  _v = SWIG_CheckState(res);
7037  if (_v) {
7038  {
7039  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
7040  _v = SWIG_CheckState(res);
7041  }
7042  if (_v) {
7043  return _wrap_a_quaternion_m_____SWIG_0(clientData, interp, objc, argv - 1);
7044  }
7045  }
7046  }
7047 
7048  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'a_quaternion_*'.\n"
7049  " Possible C/C++ prototypes are:\n"
7050  " a_quaternion::operator *(double const)\n"
7051  " a_quaternion::operator *(a_quaternion const &)\n", TCL_STATIC);
7052  return TCL_ERROR;
7053 }
7054 
7055 
7056 SWIGINTERN int
7057 _wrap_a_quaternion_d_____SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
7058  a_quaternion *arg1 = (a_quaternion *) 0 ;
7059  a_quaternion *arg2 = 0 ;
7060  void *argp1 = 0 ;
7061  int res1 = 0 ;
7062  void *argp2 ;
7063  int res2 = 0 ;
7064  a_quaternion result;
7065 
7066  if (SWIG_GetArgs(interp, objc, objv,"oo:a_quaternion_/ self b ",(void *)0,(void *)0) == TCL_ERROR) SWIG_fail;
7067  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_quaternion, 0 | 0 );
7068  if (!SWIG_IsOK(res1)) {
7069  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_quaternion_/" "', argument " "1"" of type '" "a_quaternion *""'");
7070  }
7071  arg1 = reinterpret_cast< a_quaternion * >(argp1);
7072  res2 = SWIG_ConvertPtr(objv[2], &argp2, SWIGTYPE_p_a_quaternion, 0 );
7073  if (!SWIG_IsOK(res2)) {
7074  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "a_quaternion_/" "', argument " "2"" of type '" "a_quaternion const &""'");
7075  }
7076  if (!argp2) {
7077  SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "a_quaternion_/" "', argument " "2"" of type '" "a_quaternion const &""'");
7078  }
7079  arg2 = reinterpret_cast< a_quaternion * >(argp2);
7080  result = (arg1)->operator /((a_quaternion const &)*arg2);
7081  Tcl_SetObjResult(interp,SWIG_NewInstanceObj((new a_quaternion(static_cast< const a_quaternion& >(result))), SWIGTYPE_p_a_quaternion, SWIG_POINTER_OWN | 0 ));
7082  return TCL_OK;
7083 fail:
7084  return TCL_ERROR;
7085 }
7086 
7087 
7088 SWIGINTERN int
7089 _wrap_a_quaternion_d___(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
7090  Tcl_Obj *CONST *argv = objv+1;
7091  int argc = objc-1;
7092  if (argc == 2) {
7093  int _v;
7094  void *vptr = 0;
7095  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_quaternion, 0);
7096  _v = SWIG_CheckState(res);
7097  if (_v) {
7098  void *vptr = 0;
7099  int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_a_quaternion, SWIG_POINTER_NO_NULL);
7100  _v = SWIG_CheckState(res);
7101  if (_v) {
7102  return _wrap_a_quaternion_d_____SWIG_1(clientData, interp, objc, argv - 1);
7103  }
7104  }
7105  }
7106  if (argc == 2) {
7107  int _v;
7108  void *vptr = 0;
7109  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_a_quaternion, 0);
7110  _v = SWIG_CheckState(res);
7111  if (_v) {
7112  {
7113  int res = SWIG_AsVal_double SWIG_TCL_CALL_ARGS_2(argv[1], NULL);
7114  _v = SWIG_CheckState(res);
7115  }
7116  if (_v) {
7117  return _wrap_a_quaternion_d_____SWIG_0(clientData, interp, objc, argv - 1);
7118  }
7119  }
7120  }
7121 
7122  Tcl_SetResult(interp,(char *) "Wrong number or type of arguments for overloaded function 'a_quaternion_/'.\n"
7123  " Possible C/C++ prototypes are:\n"
7124  " a_quaternion::operator /(double const)\n"
7125  " a_quaternion::operator /(a_quaternion const &)\n", TCL_STATIC);
7126  return TCL_ERROR;
7127 }
7128 
7129 
7130 SWIGINTERN int
7131 _wrap_a_quaternion_print(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
7132  a_quaternion *arg1 = (a_quaternion *) 0 ;
7133  void *argp1 = 0 ;
7134  int res1 = 0 ;
7135  std::string result;
7136 
7137  if (SWIG_GetArgs(interp, objc, objv,"o:a_quaternion_print self ",(void *)0) == TCL_ERROR) SWIG_fail;
7138  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_quaternion, 0 | 0 );
7139  if (!SWIG_IsOK(res1)) {
7140  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "a_quaternion_print" "', argument " "1"" of type '" "a_quaternion *""'");
7141  }
7142  arg1 = reinterpret_cast< a_quaternion * >(argp1);
7143  result = a_quaternion_print(arg1);
7144  Tcl_SetObjResult(interp,SWIG_From_std_string(static_cast< std::string >(result)));
7145  return TCL_OK;
7146 fail:
7147  return TCL_ERROR;
7148 }
7149 
7150 
7151 SWIGINTERN int
7152 _wrap_delete_a_quaternion(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) {
7153  a_quaternion *arg1 = (a_quaternion *) 0 ;
7154  void *argp1 = 0 ;
7155  int res1 = 0 ;
7156 
7157  if (SWIG_GetArgs(interp, objc, objv,"o:delete_a_quaternion self ",(void *)0) == TCL_ERROR) SWIG_fail;
7158  res1 = SWIG_ConvertPtr(objv[1], &argp1,SWIGTYPE_p_a_quaternion, SWIG_POINTER_DISOWN | 0 );
7159  if (!SWIG_IsOK(res1)) {
7160  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_a_quaternion" "', argument " "1"" of type '" "a_quaternion *""'");
7161  }
7162  arg1 = reinterpret_cast< a_quaternion * >(argp1);
7163  delete arg1;
7164 
7165  return TCL_OK;
7166 fail:
7167  return TCL_ERROR;
7168 }
7169 
7170 
7172 a_quaternion *arg1 = (a_quaternion *) obj;
7173 delete arg1;
7174 }
7176  {"r", _wrap_a_quaternion_r},
7177  {"i", _wrap_a_quaternion_i},
7178  {"j", _wrap_a_quaternion_j},
7179  {"k", _wrap_a_quaternion_k},
7180  {"norm", _wrap_a_quaternion_norm},
7181  {"abs", _wrap_a_quaternion_abs},
7182  {"negate", _wrap_a_quaternion_negate},
7183  {"conjugate", _wrap_a_quaternion_conjugate},
7184  {"square", _wrap_a_quaternion_square},
7185  {"invert", _wrap_a_quaternion_invert},
7186  {"+", _wrap_a_quaternion_a___},
7187  {"-", _wrap_a_quaternion_s___},
7188  {"*", _wrap_a_quaternion_m___},
7189  {"/", _wrap_a_quaternion_d___},
7190  {"print", _wrap_a_quaternion_print},
7191  {0,0}
7192 };
7194  {0,0,0}
7195 };
7197 static const char * swig_a_quaternion_base_names[] = {0};
7199 
7201  { SWIG_prefix "a_base_classname", (swig_wrapper_func) _wrap_a_base_classname, NULL},
7202  { SWIG_prefix "a_base_help", (swig_wrapper_func) _wrap_a_base_help, NULL},
7203  { SWIG_prefix "a_base_small", (swig_wrapper_func) _wrap_a_base_small, NULL},
7204  { SWIG_prefix "a_base_print", (swig_wrapper_func) _wrap_a_base_print, NULL},
7205  { SWIG_prefix "new_a_base", (swig_wrapper_func) _wrap_new_a_base, NULL},
7206  { SWIG_prefix "delete_a_base", (swig_wrapper_func) _wrap_delete_a_base, NULL},
7208  { SWIG_prefix "a_mat_base_classname", (swig_wrapper_func) _wrap_a_mat_base_classname, NULL},
7209  { SWIG_prefix "a_mat_base_help", (swig_wrapper_func) _wrap_a_mat_base_help, NULL},
7210  { SWIG_prefix "new_a_mat_base", (swig_wrapper_func) _wrap_new_a_mat_base, NULL},
7211  { SWIG_prefix "delete_a_mat_base", (swig_wrapper_func) _wrap_delete_a_mat_base, NULL},
7213  { SWIG_prefix "new_a_mat", (swig_wrapper_func) _wrap_new_a_mat, NULL},
7214  { SWIG_prefix "delete_a_mat", (swig_wrapper_func) _wrap_delete_a_mat, NULL},
7215  { SWIG_prefix "a_mat_maxi", (swig_wrapper_func) _wrap_a_mat_maxi, NULL},
7216  { SWIG_prefix "a_mat_maxj", (swig_wrapper_func) _wrap_a_mat_maxj, NULL},
7217  { SWIG_prefix "a_mat_size", (swig_wrapper_func) _wrap_a_mat_size, NULL},
7218  { SWIG_prefix "a_mat_=", (swig_wrapper_func) _wrap_a_mat_e___, NULL},
7219  { SWIG_prefix "a_mat_-", (swig_wrapper_func) _wrap_a_mat_s___, NULL},
7220  { SWIG_prefix "a_mat_+", (swig_wrapper_func) _wrap_a_mat_a___, NULL},
7221  { SWIG_prefix "a_mat_*", (swig_wrapper_func) _wrap_a_mat_m___, NULL},
7222  { SWIG_prefix "a_mat_/", (swig_wrapper_func) _wrap_a_mat_d___, NULL},
7223  { SWIG_prefix "a_mat_transpose", (swig_wrapper_func) _wrap_a_mat_transpose, NULL},
7224  { SWIG_prefix "a_mat_swapc", (swig_wrapper_func) _wrap_a_mat_swapc, NULL},
7225  { SWIG_prefix "a_mat_swapr", (swig_wrapper_func) _wrap_a_mat_swapr, NULL},
7226  { SWIG_prefix "a_mat_sub_matrix", (swig_wrapper_func) _wrap_a_mat_sub_matrix, NULL},
7228  { SWIG_prefix "new_a_mat_c", (swig_wrapper_func) _wrap_new_a_mat_c, NULL},
7229  { SWIG_prefix "a_mat_c_=", (swig_wrapper_func) _wrap_a_mat_c_e___, NULL},
7230  { SWIG_prefix "a_mat_c_sumsq", (swig_wrapper_func) _wrap_a_mat_c_sumsq, NULL},
7231  { SWIG_prefix "a_mat_c_norm", (swig_wrapper_func) _wrap_a_mat_c_norm, NULL},
7232  { SWIG_prefix "a_mat_c_normalise", (swig_wrapper_func) _wrap_a_mat_c_normalise, NULL},
7233  { SWIG_prefix "delete_a_mat_c", (swig_wrapper_func) _wrap_delete_a_mat_c, NULL},
7235  { SWIG_prefix "cross", (swig_wrapper_func) _wrap_cross, NULL},
7236  { SWIG_prefix "new_a_2dh", (swig_wrapper_func) _wrap_new_a_2dh, NULL},
7237  { SWIG_prefix "a_2dh_help", (swig_wrapper_func) _wrap_a_2dh_help, NULL},
7238  { SWIG_prefix "a_2dh_set", (swig_wrapper_func) _wrap_a_2dh_set, NULL},
7239  { SWIG_prefix "a_2dh_point2", (swig_wrapper_func) _wrap_a_2dh_point2, NULL},
7240  { SWIG_prefix "a_2dh_X", (swig_wrapper_func) _wrap_a_2dh_X, NULL},
7241  { SWIG_prefix "a_2dh_Y", (swig_wrapper_func) _wrap_a_2dh_Y, NULL},
7242  { SWIG_prefix "a_2dh_T", (swig_wrapper_func) _wrap_a_2dh_T, NULL},
7243  { SWIG_prefix "a_2dh_x", (swig_wrapper_func) _wrap_a_2dh_x, NULL},
7244  { SWIG_prefix "a_2dh_y", (swig_wrapper_func) _wrap_a_2dh_y, NULL},
7245  { SWIG_prefix "a_2dh_print", (swig_wrapper_func) _wrap_a_2dh_print, NULL},
7246  { SWIG_prefix "delete_a_2dh", (swig_wrapper_func) _wrap_delete_a_2dh, NULL},
7248  { SWIG_prefix "new_a_3dh", (swig_wrapper_func) _wrap_new_a_3dh, NULL},
7249  { SWIG_prefix "a_3dh_help", (swig_wrapper_func) _wrap_a_3dh_help, NULL},
7250  { SWIG_prefix "a_3dh_X", (swig_wrapper_func) _wrap_a_3dh_X, NULL},
7251  { SWIG_prefix "a_3dh_Y", (swig_wrapper_func) _wrap_a_3dh_Y, NULL},
7252  { SWIG_prefix "a_3dh_Z", (swig_wrapper_func) _wrap_a_3dh_Z, NULL},
7253  { SWIG_prefix "a_3dh_T", (swig_wrapper_func) _wrap_a_3dh_T, NULL},
7254  { SWIG_prefix "a_3dh_x", (swig_wrapper_func) _wrap_a_3dh_x, NULL},
7255  { SWIG_prefix "a_3dh_y", (swig_wrapper_func) _wrap_a_3dh_y, NULL},
7256  { SWIG_prefix "a_3dh_z", (swig_wrapper_func) _wrap_a_3dh_z, NULL},
7257  { SWIG_prefix "a_3dh_set", (swig_wrapper_func) _wrap_a_3dh_set, NULL},
7258  { SWIG_prefix "a_3dh_point", (swig_wrapper_func) _wrap_a_3dh_point, NULL},
7259  { SWIG_prefix "a_3dh_print", (swig_wrapper_func) _wrap_a_3dh_print, NULL},
7260  { SWIG_prefix "delete_a_3dh", (swig_wrapper_func) _wrap_delete_a_3dh, NULL},
7262  { SWIG_prefix "new_a_intern", (swig_wrapper_func) _wrap_new_a_intern, NULL},
7263  { SWIG_prefix "a_intern_help", (swig_wrapper_func) _wrap_a_intern_help, NULL},
7264  { SWIG_prefix "a_intern_s", (swig_wrapper_func) _wrap_a_intern_s, NULL},
7265  { SWIG_prefix "a_intern_sx", (swig_wrapper_func) _wrap_a_intern_sx, NULL},
7266  { SWIG_prefix "a_intern_sy", (swig_wrapper_func) _wrap_a_intern_sy, NULL},
7267  { SWIG_prefix "a_intern_stheta", (swig_wrapper_func) _wrap_a_intern_stheta, NULL},
7268  { SWIG_prefix "a_intern_u0", (swig_wrapper_func) _wrap_a_intern_u0, NULL},
7269  { SWIG_prefix "a_intern_v0", (swig_wrapper_func) _wrap_a_intern_v0, NULL},
7270  { SWIG_prefix "delete_a_intern", (swig_wrapper_func) _wrap_delete_a_intern, NULL},
7272  { SWIG_prefix "new_a_pmat", (swig_wrapper_func) _wrap_new_a_pmat, NULL},
7273  { SWIG_prefix "a_pmat_=", (swig_wrapper_func) _wrap_a_pmat_e___, NULL},
7274  { SWIG_prefix "a_pmat_help", (swig_wrapper_func) _wrap_a_pmat_help, NULL},
7275  { SWIG_prefix "a_pmat_intern", (swig_wrapper_func) _wrap_a_pmat_intern, NULL},
7276  { SWIG_prefix "a_pmat_parallel", (swig_wrapper_func) _wrap_a_pmat_parallel, NULL},
7277  { SWIG_prefix "a_pmat_move", (swig_wrapper_func) _wrap_a_pmat_move, NULL},
7278  { SWIG_prefix "a_pmat_project", (swig_wrapper_func) _wrap_a_pmat_project, NULL},
7279  { SWIG_prefix "delete_a_pmat", (swig_wrapper_func) _wrap_delete_a_pmat, NULL},
7281  { SWIG_prefix "new_a_pos", (swig_wrapper_func) _wrap_new_a_pos, NULL},
7282  { SWIG_prefix "a_pos_help", (swig_wrapper_func) _wrap_a_pos_help, NULL},
7283  { SWIG_prefix "a_pos_translate", (swig_wrapper_func) _wrap_a_pos_translate, NULL},
7284  { SWIG_prefix "a_pos_rotateX", (swig_wrapper_func) _wrap_a_pos_rotateX, NULL},
7285  { SWIG_prefix "a_pos_rotateY", (swig_wrapper_func) _wrap_a_pos_rotateY, NULL},
7286  { SWIG_prefix "a_pos_rotateZ", (swig_wrapper_func) _wrap_a_pos_rotateZ, NULL},
7287  { SWIG_prefix "a_pos_orient", (swig_wrapper_func) _wrap_a_pos_orient, NULL},
7288  { SWIG_prefix "a_pos_rotate", (swig_wrapper_func) _wrap_a_pos_rotate, NULL},
7289  { SWIG_prefix "delete_a_pos", (swig_wrapper_func) _wrap_delete_a_pos, NULL},
7291  { SWIG_prefix "new_a_quaternion", (swig_wrapper_func) _wrap_new_a_quaternion, NULL},
7292  { SWIG_prefix "a_quaternion_r", (swig_wrapper_func) _wrap_a_quaternion_r, NULL},
7293  { SWIG_prefix "a_quaternion_i", (swig_wrapper_func) _wrap_a_quaternion_i, NULL},
7294  { SWIG_prefix "a_quaternion_j", (swig_wrapper_func) _wrap_a_quaternion_j, NULL},
7295  { SWIG_prefix "a_quaternion_k", (swig_wrapper_func) _wrap_a_quaternion_k, NULL},
7296  { SWIG_prefix "a_quaternion_norm", (swig_wrapper_func) _wrap_a_quaternion_norm, NULL},
7297  { SWIG_prefix "a_quaternion_abs", (swig_wrapper_func) _wrap_a_quaternion_abs, NULL},
7298  { SWIG_prefix "a_quaternion_negate", (swig_wrapper_func) _wrap_a_quaternion_negate, NULL},
7299  { SWIG_prefix "a_quaternion_conjugate", (swig_wrapper_func) _wrap_a_quaternion_conjugate, NULL},
7300  { SWIG_prefix "a_quaternion_square", (swig_wrapper_func) _wrap_a_quaternion_square, NULL},
7301  { SWIG_prefix "a_quaternion_invert", (swig_wrapper_func) _wrap_a_quaternion_invert, NULL},
7302  { SWIG_prefix "a_quaternion_+", (swig_wrapper_func) _wrap_a_quaternion_a___, NULL},
7303  { SWIG_prefix "a_quaternion_-", (swig_wrapper_func) _wrap_a_quaternion_s___, NULL},
7304  { SWIG_prefix "a_quaternion_*", (swig_wrapper_func) _wrap_a_quaternion_m___, NULL},
7305  { SWIG_prefix "a_quaternion_/", (swig_wrapper_func) _wrap_a_quaternion_d___, NULL},
7306  { SWIG_prefix "a_quaternion_print", (swig_wrapper_func) _wrap_a_quaternion_print, NULL},
7307  { SWIG_prefix "delete_a_quaternion", (swig_wrapper_func) _wrap_delete_a_quaternion, NULL},
7309  {0, 0, 0}
7310 };
7311 
7313  {0,0,0,0}
7314 };
7315 
7317  {0,0,0,0,0,0}
7318 };
7319 
7320 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
7321 
7322 static void *_p_a_2dhTo_p_a_mat(void *x, int *SWIGUNUSEDPARM(newmemory)) {
7323  return (void *)((a_mat *) (a_mat_c *) ((a_2dh *) x));
7324 }
7325 static void *_p_a_mat_cTo_p_a_mat(void *x, int *SWIGUNUSEDPARM(newmemory)) {
7326  return (void *)((a_mat *) ((a_mat_c *) x));
7327 }
7328 static void *_p_a_3dhTo_p_a_mat(void *x, int *SWIGUNUSEDPARM(newmemory)) {
7329  return (void *)((a_mat *) (a_mat_c *) ((a_3dh *) x));
7330 }
7331 static void *_p_a_internTo_p_a_mat(void *x, int *SWIGUNUSEDPARM(newmemory)) {
7332  return (void *)((a_mat *) ((a_intern *) x));
7333 }
7334 static void *_p_a_pmatTo_p_a_mat(void *x, int *SWIGUNUSEDPARM(newmemory)) {
7335  return (void *)((a_mat *) ((a_pmat *) x));
7336 }
7337 static void *_p_a_posTo_p_a_mat(void *x, int *SWIGUNUSEDPARM(newmemory)) {
7338  return (void *)((a_mat *) ((a_pos *) x));
7339 }
7340 static void *_p_a_matTo_p_a_base(void *x, int *SWIGUNUSEDPARM(newmemory)) {
7341  return (void *)((a_base *) (a_mat_base *) ((a_mat *) x));
7342 }
7343 static void *_p_a_2dhTo_p_a_base(void *x, int *SWIGUNUSEDPARM(newmemory)) {
7344  return (void *)((a_base *) (a_mat_base *)(a_mat *)(a_mat_c *) ((a_2dh *) x));
7345 }
7346 static void *_p_a_mat_cTo_p_a_base(void *x, int *SWIGUNUSEDPARM(newmemory)) {
7347  return (void *)((a_base *) (a_mat_base *)(a_mat *) ((a_mat_c *) x));
7348 }
7349 static void *_p_a_3dhTo_p_a_base(void *x, int *SWIGUNUSEDPARM(newmemory)) {
7350  return (void *)((a_base *) (a_mat_base *)(a_mat *)(a_mat_c *) ((a_3dh *) x));
7351 }
7352 static void *_p_a_internTo_p_a_base(void *x, int *SWIGUNUSEDPARM(newmemory)) {
7353  return (void *)((a_base *) (a_mat_base *)(a_mat *) ((a_intern *) x));
7354 }
7355 static void *_p_a_mat_baseTo_p_a_base(void *x, int *SWIGUNUSEDPARM(newmemory)) {
7356  return (void *)((a_base *) ((a_mat_base *) x));
7357 }
7358 static void *_p_a_pmatTo_p_a_base(void *x, int *SWIGUNUSEDPARM(newmemory)) {
7359  return (void *)((a_base *) (a_mat_base *)(a_mat *) ((a_pmat *) x));
7360 }
7361 static void *_p_a_posTo_p_a_base(void *x, int *SWIGUNUSEDPARM(newmemory)) {
7362  return (void *)((a_base *) (a_mat_base *)(a_mat *) ((a_pos *) x));
7363 }
7364 static void *_p_a_2dhTo_p_a_mat_c(void *x, int *SWIGUNUSEDPARM(newmemory)) {
7365  return (void *)((a_mat_c *) ((a_2dh *) x));
7366 }
7367 static void *_p_a_3dhTo_p_a_mat_c(void *x, int *SWIGUNUSEDPARM(newmemory)) {
7368  return (void *)((a_mat_c *) ((a_3dh *) x));
7369 }
7370 static void *_p_a_matTo_p_a_mat_base(void *x, int *SWIGUNUSEDPARM(newmemory)) {
7371  return (void *)((a_mat_base *) ((a_mat *) x));
7372 }
7373 static void *_p_a_2dhTo_p_a_mat_base(void *x, int *SWIGUNUSEDPARM(newmemory)) {
7374  return (void *)((a_mat_base *) (a_mat *)(a_mat_c *) ((a_2dh *) x));
7375 }
7376 static void *_p_a_mat_cTo_p_a_mat_base(void *x, int *SWIGUNUSEDPARM(newmemory)) {
7377  return (void *)((a_mat_base *) (a_mat *) ((a_mat_c *) x));
7378 }
7379 static void *_p_a_3dhTo_p_a_mat_base(void *x, int *SWIGUNUSEDPARM(newmemory)) {
7380  return (void *)((a_mat_base *) (a_mat *)(a_mat_c *) ((a_3dh *) x));
7381 }
7382 static void *_p_a_internTo_p_a_mat_base(void *x, int *SWIGUNUSEDPARM(newmemory)) {
7383  return (void *)((a_mat_base *) (a_mat *) ((a_intern *) x));
7384 }
7385 static void *_p_a_pmatTo_p_a_mat_base(void *x, int *SWIGUNUSEDPARM(newmemory)) {
7386  return (void *)((a_mat_base *) (a_mat *) ((a_pmat *) x));
7387 }
7388 static void *_p_a_posTo_p_a_mat_base(void *x, int *SWIGUNUSEDPARM(newmemory)) {
7389  return (void *)((a_mat_base *) (a_mat *) ((a_pos *) x));
7390 }
7391 static swig_type_info _swigt__p_UI = {"_p_UI", "UI *", 0, 0, (void*)0, 0};
7392 static swig_type_info _swigt__p_a_2dh = {"_p_a_2dh", "a_2dh *", 0, 0, (void*)&_wrap_class_a_2dh, 0};
7393 static swig_type_info _swigt__p_a_3dh = {"_p_a_3dh", "a_3dh *", 0, 0, (void*)&_wrap_class_a_3dh, 0};
7394 static swig_type_info _swigt__p_a_base = {"_p_a_base", "a_base *", 0, 0, (void*)&_wrap_class_a_base, 0};
7395 static swig_type_info _swigt__p_a_intern = {"_p_a_intern", "a_intern *", 0, 0, (void*)&_wrap_class_a_intern, 0};
7396 static swig_type_info _swigt__p_a_mat = {"_p_a_mat", "a_mat *", 0, 0, (void*)&_wrap_class_a_mat, 0};
7397 static swig_type_info _swigt__p_a_mat_base = {"_p_a_mat_base", "a_mat_base *", 0, 0, (void*)&_wrap_class_a_mat_base, 0};
7398 static swig_type_info _swigt__p_a_mat_c = {"_p_a_mat_c", "a_mat_c *", 0, 0, (void*)&_wrap_class_a_mat_c, 0};
7399 static swig_type_info _swigt__p_a_pmat = {"_p_a_pmat", "a_pmat *", 0, 0, (void*)&_wrap_class_a_pmat, 0};
7400 static swig_type_info _swigt__p_a_point = {"_p_a_point", "a_point *", 0, 0, (void*)0, 0};
7401 static swig_type_info _swigt__p_a_point2 = {"_p_a_point2", "a_point2 *", 0, 0, (void*)0, 0};
7402 static swig_type_info _swigt__p_a_pos = {"_p_a_pos", "a_pos *", 0, 0, (void*)&_wrap_class_a_pos, 0};
7403 static swig_type_info _swigt__p_a_quaternion = {"_p_a_quaternion", "a_quaternion *", 0, 0, (void*)&_wrap_class_a_quaternion, 0};
7404 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
7405 static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
7406 
7408  &_swigt__p_UI,
7409  &_swigt__p_a_2dh,
7410  &_swigt__p_a_3dh,
7413  &_swigt__p_a_mat,
7419  &_swigt__p_a_pos,
7421  &_swigt__p_char,
7423 };
7424 
7425 static swig_cast_info _swigc__p_UI[] = { {&_swigt__p_UI, 0, 0, 0},{0, 0, 0, 0}};
7426 static swig_cast_info _swigc__p_a_2dh[] = { {&_swigt__p_a_2dh, 0, 0, 0},{0, 0, 0, 0}};
7427 static swig_cast_info _swigc__p_a_3dh[] = { {&_swigt__p_a_3dh, 0, 0, 0},{0, 0, 0, 0}};
7429 static swig_cast_info _swigc__p_a_intern[] = { {&_swigt__p_a_intern, 0, 0, 0},{0, 0, 0, 0}};
7433 static swig_cast_info _swigc__p_a_pmat[] = { {&_swigt__p_a_pmat, 0, 0, 0},{0, 0, 0, 0}};
7434 static swig_cast_info _swigc__p_a_point[] = { {&_swigt__p_a_point, 0, 0, 0},{0, 0, 0, 0}};
7435 static swig_cast_info _swigc__p_a_point2[] = { {&_swigt__p_a_point2, 0, 0, 0},{0, 0, 0, 0}};
7436 static swig_cast_info _swigc__p_a_pos[] = { {&_swigt__p_a_pos, 0, 0, 0},{0, 0, 0, 0}};
7437 static swig_cast_info _swigc__p_a_quaternion[] = { {&_swigt__p_a_quaternion, 0, 0, 0},{0, 0, 0, 0}};
7438 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
7439 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
7440 
7442  _swigc__p_UI,
7457 };
7458 
7459 
7460 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
7461 
7462 #ifdef __cplusplus
7463 }
7464 #endif
7465 /* -----------------------------------------------------------------------------
7466  * Type initialization:
7467  * This problem is tough by the requirement that no dynamic
7468  * memory is used. Also, since swig_type_info structures store pointers to
7469  * swig_cast_info structures and swig_cast_info structures store pointers back
7470  * to swig_type_info structures, we need some lookup code at initialization.
7471  * The idea is that swig generates all the structures that are needed.
7472  * The runtime then collects these partially filled structures.
7473  * The SWIG_InitializeModule function takes these initial arrays out of
7474  * swig_module, and does all the lookup, filling in the swig_module.types
7475  * array with the correct data and linking the correct swig_cast_info
7476  * structures together.
7477  *
7478  * The generated swig_type_info structures are assigned statically to an initial
7479  * array. We just loop through that array, and handle each type individually.
7480  * First we lookup if this type has been already loaded, and if so, use the
7481  * loaded structure instead of the generated one. Then we have to fill in the
7482  * cast linked list. The cast data is initially stored in something like a
7483  * two-dimensional array. Each row corresponds to a type (there are the same
7484  * number of rows as there are in the swig_type_initial array). Each entry in
7485  * a column is one of the swig_cast_info structures for that type.
7486  * The cast_initial array is actually an array of arrays, because each row has
7487  * a variable number of columns. So to actually build the cast linked list,
7488  * we find the array of casts associated with the type, and loop through it
7489  * adding the casts to the list. The one last trick we need to do is making
7490  * sure the type pointer in the swig_cast_info struct is correct.
7491  *
7492  * First off, we lookup the cast->type name to see if it is already loaded.
7493  * There are three cases to handle:
7494  * 1) If the cast->type has already been loaded AND the type we are adding
7495  * casting info to has not been loaded (it is in this module), THEN we
7496  * replace the cast->type pointer with the type pointer that has already
7497  * been loaded.
7498  * 2) If BOTH types (the one we are adding casting info to, and the
7499  * cast->type) are loaded, THEN the cast info has already been loaded by
7500  * the previous module so we just ignore it.
7501  * 3) Finally, if cast->type has not already been loaded, then we add that
7502  * swig_cast_info to the linked list (because the cast->type) pointer will
7503  * be correct.
7504  * ----------------------------------------------------------------------------- */
7505 
7506 #ifdef __cplusplus
7507 extern "C" {
7508 #if 0
7509 } /* c-mode */
7510 #endif
7511 #endif
7512 
7513 #if 0
7514 #define SWIGRUNTIME_DEBUG
7515 #endif
7516 
7517 
7518 SWIGRUNTIME void
7519 SWIG_InitializeModule(void *clientdata) {
7520  size_t i;
7521  swig_module_info *module_head, *iter;
7522  int init;
7523 
7524  /* check to see if the circular list has been setup, if not, set it up */
7525  if (swig_module.next==0) {
7526  /* Initialize the swig_module */
7530  init = 1;
7531  } else {
7532  init = 0;
7533  }
7534 
7535  /* Try and load any already created modules */
7536  module_head = SWIG_GetModule(clientdata);
7537  if (!module_head) {
7538  /* This is the first module loaded for this interpreter */
7539  /* so set the swig module into the interpreter */
7540  SWIG_SetModule(clientdata, &swig_module);
7541  } else {
7542  /* the interpreter has loaded a SWIG module, but has it loaded this one? */
7543  iter=module_head;
7544  do {
7545  if (iter==&swig_module) {
7546  /* Our module is already in the list, so there's nothing more to do. */
7547  return;
7548  }
7549  iter=iter->next;
7550  } while (iter!= module_head);
7551 
7552  /* otherwise we must add our module into the list */
7553  swig_module.next = module_head->next;
7554  module_head->next = &swig_module;
7555  }
7556 
7557  /* When multiple interpreters are used, a module could have already been initialized in
7558  a different interpreter, but not yet have a pointer in this interpreter.
7559  In this case, we do not want to continue adding types... everything should be
7560  set up already */
7561  if (init == 0) return;
7562 
7563  /* Now work on filling in swig_module.types */
7564 #ifdef SWIGRUNTIME_DEBUG
7565  printf("SWIG_InitializeModule: size %lu\n", (unsigned long)swig_module.size);
7566 #endif
7567  for (i = 0; i < swig_module.size; ++i) {
7568  swig_type_info *type = 0;
7569  swig_type_info *ret;
7570  swig_cast_info *cast;
7571 
7572 #ifdef SWIGRUNTIME_DEBUG
7573  printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
7574 #endif
7575 
7576  /* if there is another module already loaded */
7577  if (swig_module.next != &swig_module) {
7579  }
7580  if (type) {
7581  /* Overwrite clientdata field */
7582 #ifdef SWIGRUNTIME_DEBUG
7583  printf("SWIG_InitializeModule: found type %s\n", type->name);
7584 #endif
7587 #ifdef SWIGRUNTIME_DEBUG
7588  printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
7589 #endif
7590  }
7591  } else {
7592  type = swig_module.type_initial[i];
7593  }
7594 
7595  /* Insert casting types */
7596  cast = swig_module.cast_initial[i];
7597  while (cast->type) {
7598  /* Don't need to add information already in the list */
7599  ret = 0;
7600 #ifdef SWIGRUNTIME_DEBUG
7601  printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
7602 #endif
7603  if (swig_module.next != &swig_module) {
7605 #ifdef SWIGRUNTIME_DEBUG
7606  if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
7607 #endif
7608  }
7609  if (ret) {
7610  if (type == swig_module.type_initial[i]) {
7611 #ifdef SWIGRUNTIME_DEBUG
7612  printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
7613 #endif
7614  cast->type = ret;
7615  ret = 0;
7616  } else {
7617  /* Check for casting already in the list */
7618  swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
7619 #ifdef SWIGRUNTIME_DEBUG
7620  if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
7621 #endif
7622  if (!ocast) ret = 0;
7623  }
7624  }
7625 
7626  if (!ret) {
7627 #ifdef SWIGRUNTIME_DEBUG
7628  printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
7629 #endif
7630  if (type->cast) {
7631  type->cast->prev = cast;
7632  cast->next = type->cast;
7633  }
7634  type->cast = cast;
7635  }
7636  cast++;
7637  }
7638  /* Set entry in modules->types array equal to the type */
7639  swig_module.types[i] = type;
7640  }
7641  swig_module.types[i] = 0;
7642 
7643 #ifdef SWIGRUNTIME_DEBUG
7644  printf("**** SWIG_InitializeModule: Cast List ******\n");
7645  for (i = 0; i < swig_module.size; ++i) {
7646  int j = 0;
7648  printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
7649  while (cast->type) {
7650  printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
7651  cast++;
7652  ++j;
7653  }
7654  printf("---- Total casts: %d\n",j);
7655  }
7656  printf("**** SWIG_InitializeModule: Cast List ******\n");
7657 #endif
7658 }
7659 
7660 /* This function will propagate the clientdata field of type to
7661 * any new swig_type_info structures that have been added into the list
7662 * of equivalent types. It is like calling
7663 * SWIG_TypeClientData(type, clientdata) a second time.
7664 */
7665 SWIGRUNTIME void
7667  size_t i;
7668  swig_cast_info *equiv;
7669  static int init_run = 0;
7670 
7671  if (init_run) return;
7672  init_run = 1;
7673 
7674  for (i = 0; i < swig_module.size; i++) {
7675  if (swig_module.types[i]->clientdata) {
7676  equiv = swig_module.types[i]->cast;
7677  while (equiv) {
7678  if (!equiv->converter) {
7679  if (equiv->type && !equiv->type->clientdata)
7681  }
7682  equiv = equiv->next;
7683  }
7684  }
7685  }
7686 }
7687 
7688 #ifdef __cplusplus
7689 #if 0
7690 {
7691  /* c-mode */
7692 #endif
7693 }
7694 #endif
7695 
7696 
7697 #ifdef __cplusplus
7698 extern "C" {
7699 #endif
7700 
7701  /* -----------------------------------------------------------------------------
7702  * constants/methods manipulation
7703  * ----------------------------------------------------------------------------- */
7704 
7705  /* Install Constants */
7706 
7707  SWIGINTERN void
7708  SWIG_Tcl_InstallConstants(Tcl_Interp *interp, swig_const_info constants[]) {
7709  size_t i;
7710  Tcl_Obj *obj;
7711 
7712  if (!swigconstTableinit) {
7713  Tcl_InitHashTable(&swigconstTable, TCL_STRING_KEYS);
7714  swigconstTableinit = 1;
7715  }
7716  for (i = 0; constants[i].type; i++) {
7717  switch(constants[i].type) {
7718  case SWIG_TCL_POINTER:
7719  obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
7720  break;
7721  case SWIG_TCL_BINARY:
7722  obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
7723  break;
7724  default:
7725  obj = 0;
7726  break;
7727  }
7728  if (obj) {
7729  SWIG_Tcl_SetConstantObj(interp, constants[i].name, obj);
7730  }
7731  }
7732  }
7733 
7734  /* Create fast method lookup tables */
7735 
7736  SWIGINTERN void
7738  size_t i;
7739 
7740  for (i = 0; i < swig_module.size; ++i) {
7742  if (type->clientdata) {
7743  swig_class* klass = (swig_class*) type->clientdata;
7744  swig_method* meth;
7745  Tcl_InitHashTable(&(klass->hashtable), TCL_STRING_KEYS);
7746  for (meth = klass->methods; meth && meth->name; ++meth) {
7747  int newEntry;
7748  Tcl_HashEntry* hashentry = Tcl_CreateHashEntry(&(klass->hashtable), meth->name, &newEntry);
7749  Tcl_SetHashValue(hashentry, (ClientData)meth->method);
7750  }
7751  }
7752  }
7753  }
7754 
7755 #ifdef __cplusplus
7756 }
7757 #endif
7758 
7759 /* -----------------------------------------------------------------------------*
7760  * Partial Init method
7761  * -----------------------------------------------------------------------------*/
7762 
7763 SWIGEXPORT int SWIG_init(Tcl_Interp *interp) {
7764  size_t i;
7765  if (interp == 0) return TCL_ERROR;
7766 #ifdef USE_TCL_STUBS
7767  /* (char*) cast is required to avoid compiler warning/error for Tcl < 8.4. */
7768  if (Tcl_InitStubs(interp, (char*)SWIG_TCL_STUBS_VERSION, 0) == NULL) {
7769  return TCL_ERROR;
7770  }
7771 #endif
7772 #ifdef USE_TK_STUBS
7773  /* (char*) cast is required to avoid compiler warning/error. */
7774  if (Tk_InitStubs(interp, (char*)SWIG_TCL_STUBS_VERSION, 0) == NULL) {
7775  return TCL_ERROR;
7776  }
7777 #endif
7778 
7779  Tcl_PkgProvide(interp, (char*)SWIG_name, (char*)SWIG_version);
7780 
7781 #ifdef SWIG_namespace
7782  Tcl_Eval(interp, "namespace eval " SWIG_namespace " { }");
7783 #endif
7784 
7785  SWIG_InitializeModule((void *) interp);
7787 
7788  for (i = 0; swig_commands[i].name; i++) {
7789  Tcl_CreateObjCommand(interp, (char *) swig_commands[i].name, (swig_wrapper_func) swig_commands[i].wrapper,
7790  swig_commands[i].clientdata, NULL);
7791  }
7792  for (i = 0; swig_variables[i].name; i++) {
7793  Tcl_SetVar(interp, (char *) swig_variables[i].name, (char *) "", TCL_GLOBAL_ONLY);
7794  Tcl_TraceVar(interp, (char *) swig_variables[i].name, TCL_TRACE_READS | TCL_GLOBAL_ONLY,
7795  (Tcl_VarTraceProc *) swig_variables[i].get, (ClientData) swig_variables[i].addr);
7796  Tcl_TraceVar(interp, (char *) swig_variables[i].name, TCL_TRACE_WRITES | TCL_GLOBAL_ONLY,
7797  (Tcl_VarTraceProc *) swig_variables[i].set, (ClientData) swig_variables[i].addr);
7798  }
7799 
7802 
7803 
7804 
7805  printf("Points&forces a_mat module.\n");
7806  //printf("Type a_mat_base_help for an introduction.\n");
7807 
7808  return TCL_OK;
7809 }
7810 SWIGEXPORT int A_mat_SafeInit(Tcl_Interp *interp) {
7811  return SWIG_init(interp);
7812 }
7813 
unsigned int UI
Definition: a_mat.h:23
static swig_type_info _swigt__p_UI
static swig_class * swig_a_mat_bases[]
SWIGRUNTIME char * SWIG_PackData(char *c, void *ptr, size_t sz)
static swig_var_info swig_variables[]
SWIGINTERN int _wrap_new_a_mat__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_3dh_Z__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_class _wrap_class_a_mat_c
SWIGINTERNINLINE Tcl_Obj * SWIG_From_std_string(const std::string &s)
SWIGINTERN int _wrap_a_mat_c_sumsq(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_type_info * swig_types[16]
static swig_cast_info * swig_cast_initial[]
SWIGINTERN int _wrap_a_pos_orient(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_new_a_pmat__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_class * swig_a_pos_bases[]
SWIGRUNTIME int SWIG_Tcl_ObjectConstructor(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_mat_size(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static const char * swig_a_3dh_base_names[]
static void * _p_a_posTo_p_a_mat(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN int _wrap_a_2dh_T__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_quaternion_d___(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGRUNTIME char * SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz)
SWIGINTERN int _wrap_a_intern_v0__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_attribute swig_a_mat_base_attributes[]
SWIGINTERN int _wrap_a_3dh_T__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_MakePtr(c, ptr, ty, flags)
SWIGINTERN int _wrap_new_a_2dh__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_class * swig_a_mat_c_bases[]
SWIGINTERN int _wrap_a_mat_a___(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_2dh_x(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_mat_base_help(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_new_a_mat__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_new_a_3dh__SWIG_5(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_cast_info _swigc__p_a_3dh[]
SWIGINTERN void SWIG_Tcl_InstallConstants(Tcl_Interp *interp, swig_const_info constants[])
SWIGINTERN int _wrap_delete_a_mat_c(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_class _wrap_class_a_pos
static swig_class * swig_a_pmat_bases[]
static swig_attribute swig_a_quaternion_attributes[]
#define SWIG_POINTER_OWN
#define SWIGTYPE_p_a_point2
static swig_const_info swig_constants[]
SWIGINTERN int _wrap_a_quaternion_r__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_2dh_T__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_SyntaxError
SWIGINTERN void swig_delete_a_pmat(void *obj)
#define SWIG_ConvertPtr(oc, ptr, ty, flags)
static void * _p_a_pmatTo_p_a_base(void *x, int *SWIGUNUSEDPARM(newmemory))
static swig_cast_info _swigc__p_UI[]
#define SWIG_CheckState(r)
static swig_class * swig_a_mat_base_bases[]
static swig_attribute swig_a_mat_attributes[]
SWIGINTERN int _wrap_a_mat_s___(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGRUNTIME void SWIG_Tcl_Acquire(void *ptr)
SWIGINTERN int _wrap_new_a_quaternion(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGRUNTIME int SWIG_TypeEquiv(const char *nb, const char *tb)
SWIGINTERN int _wrap_a_pmat_intern(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_new_a_mat_base(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_quaternion_norm(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN std::string a_base_print(a_base *self)
SWIGINTERN int _wrap_delete_a_2dh(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static void * _p_a_3dhTo_p_a_mat(void *x, int *SWIGUNUSEDPARM(newmemory))
#define SWIG_BUFFER_SIZE
struct swig_instance swig_instance
#define SWIG_TypeError
SWIGINTERN void swig_delete_a_mat(void *obj)
SWIGINTERN int _wrap_a_intern_u0__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static void * _p_a_internTo_p_a_mat(void *x, int *SWIGUNUSEDPARM(newmemory))
static swig_method swig_a_pmat_methods[]
static swig_cast_info _swigc__p_double[]
SWIGINTERN int _wrap_a_pos_rotateY(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_pmat_help(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_type_info _swigt__p_a_mat_c
SWIGINTERNINLINE void SWIG_Tcl_AddErrorMsg(Tcl_Interp *interp, const char *mesg)
SWIGINTERN void SWIG_Tcl_SetErrorMsg(Tcl_Interp *interp, const char *ctype, const char *mesg)
static swig_class _wrap_class_a_3dh
struct swig_cast_info swig_cast_info
#define SWIG_init
SWIGINTERN int _wrap_new_a_3dh__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGRUNTIME Tcl_Obj * SWIG_Tcl_NewPackedObj(void *ptr, int sz, swig_type_info *type)
SWIGINTERN int _wrap_a_2dh_set__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGRUNTIME int SWIG_Tcl_MethodCommand(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST _objv[])
SWIGINTERN int _wrap_a_quaternion_k__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGRUNTIME int SWIG_TypeNameComp(const char *f1, const char *l1, const char *f2, const char *l2)
SWIGINTERN void swig_delete_a_mat_base(void *obj)
SWIGINTERN int _wrap_new_a_3dh__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static void * _p_a_internTo_p_a_mat_base(void *x, int *SWIGUNUSEDPARM(newmemory))
static swig_method swig_a_2dh_methods[]
SWIGINTERN int _wrap_a_2dh_set__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_new_a_pmat(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_attribute swig_a_intern_attributes[]
SWIGINTERN int _wrap_a_mat_maxi(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGRUNTIMEINLINE void * SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory)
SWIGINTERN int _wrap_a_mat_base_classname(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_2dh_Y__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN void swig_delete_a_3dh(void *obj)
SWIGINTERN int _wrap_a_quaternion_d_____SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_RuntimeError
SWIGINTERN int _wrap_a_intern_v0__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_intern_v0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_GetArgs
SWIGINTERN int _wrap_a_base_help(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static void * _p_a_pmatTo_p_a_mat_base(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN std::string a_3dh_print(a_3dh *self)
static swig_command_info swig_commands[]
static void * _p_a_2dhTo_p_a_mat_c(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN int _wrap_delete_a_intern(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static void * _p_a_2dhTo_p_a_mat(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN int _wrap_a_quaternion_k__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_3dh_X__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_base_small__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_3dh_T(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_quaternion_m_____SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static void * _p_a_3dhTo_p_a_mat_c(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN int _wrap_a_3dh_X__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
int(* swig_wrapper_func)(ClientData, Tcl_Interp *, int, Tcl_Obj *CONST[])
SWIGINTERN const char * SWIG_Tcl_ErrorType(int code)
static void * _p_a_matTo_p_a_base(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGRUNTIME const char * SWIG_TypePrettyName(const swig_type_info *type)
SWIGEXPORT int A_mat_SafeInit(Tcl_Interp *interp)
static void * _p_a_mat_cTo_p_a_mat_base(void *x, int *SWIGUNUSEDPARM(newmemory))
static swig_class _wrap_class_a_quaternion
SWIGINTERN int _wrap_new_a_2dh(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_method swig_a_mat_base_methods[]
SWIGINTERN int _wrap_a_quaternion_negate(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_method swig_a_base_methods[]
#define SWIGRUNTIME
SWIGINTERN int _wrap_new_a_pos__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_class _wrap_class_a_intern
static swig_type_info _swigt__p_a_mat
SWIGINTERN int _wrap_a_mat_maxj(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static void * _p_a_mat_cTo_p_a_base(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN int _wrap_new_a_mat__SWIG_4(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_version
#define SWIG_RUNTIME_VERSION
SWIGINTERN int _wrap_new_a_mat(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_mat_m___(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_cast_info _swigc__p_a_mat_base[]
SWIGINTERN void SWIG_Tcl_SetErrorObj(Tcl_Interp *interp, const char *ctype, Tcl_Obj *obj)
SWIGRUNTIME void SWIG_TypeClientData(swig_type_info *ti, void *clientdata)
static Tcl_HashTable swigconstTable
SWIGINTERN int _wrap_new_a_pmat__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_MethodCommand
SWIGINTERN int _wrap_a_pos_translate__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_ValueError
SWIGRUNTIME int SWIG_Tcl_GetArgs(Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[], const char *fmt,...)
SWIGINTERN std::string a_2dh_print(a_2dh *self)
SWIGINTERN int _wrap_new_a_intern__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_2dh_X__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_3dh_set__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_2dh_X__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_AddCast(r)
SWIGINTERN int _wrap_a_quaternion_m_____SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_new_a_2dh__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_method swig_a_mat_methods[]
static swig_method swig_a_3dh_methods[]
SWIGINTERN int _wrap_a_3dh_Y__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_new_a_pos__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_intern_stheta__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_class * swig_a_2dh_bases[]
SWIGINTERN int _wrap_new_a_mat_c__SWIG_3(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_quaternion_conjugate(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIGTYPE_p_a_mat
#define SWIG_exception_fail(code, msg)
SWIGINTERN int _wrap_a_3dh_set__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_base_small(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_intern_u0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static const char * swig_a_intern_base_names[]
SWIGRUNTIME swig_type_info * SWIG_TypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name)
static swig_cast_info _swigc__p_a_base[]
#define SWIG_AttributeError
static swig_cast_info _swigc__p_a_2dh[]
SWIGINTERN int _wrap_delete_a_quaternion(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_2dh_print(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_type_info _swigt__p_a_3dh
SWIGINTERN int _wrap_a_intern_s(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_module_info swig_module
static void * _p_a_2dhTo_p_a_mat_base(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN int _wrap_a_base_small__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIGTYPE_p_a_mat_c
SWIGINTERN int _wrap_new_a_mat_c__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_type_info _swigt__p_a_mat_base
static swig_type_info _swigt__p_double
SWIGINTERN int _wrap_new_a_3dh__SWIG_4(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_method swig_a_mat_c_methods[]
#define SWIG_SetModule(clientdata, pointer)
SWIGINTERN int _wrap_a_quaternion_i(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_class * swig_a_quaternion_bases[]
SWIGINTERN int _wrap_a_quaternion_k(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_new_a_2dh__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGRUNTIMEINLINE const char * SWIG_TypeName(const swig_type_info *ty)
static swig_class _wrap_class_a_mat
SWIGINTERN int _wrap_a_3dh_Y(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_type_info _swigt__p_a_point2
SWIGINTERN int _wrap_new_a_quaternion__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_intern_sx__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIGUNUSEDPARM(p)
SWIGINTERN int _wrap_a_2dh_T(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_new_a_base(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
struct swig_class swig_class
#define SWIG_as_voidptr(a)
SWIGINTERN int _wrap_a_3dh_x(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_cast_info _swigc__p_a_quaternion[]
SWIGINTERN int _wrap_a_mat_c_normalise(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIGUNUSED
static swig_type_info _swigt__p_a_pos
SWIGINTERN int _wrap_new_a_2dh__SWIG_4(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN void swig_delete_a_base(void *obj)
SWIGRUNTIME void SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata)
SWIGINTERN int _wrap_a_pos_rotateX(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static void * _p_a_pmatTo_p_a_mat(void *x, int *SWIGUNUSEDPARM(newmemory))
static void * _p_a_posTo_p_a_base(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGRUNTIME void SWIG_Tcl_SetModule(Tcl_Interp *interp, swig_module_info *module)
SWIGINTERN int _wrap_delete_a_pos(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGRUNTIME int SWIG_TypeCmp(const char *nb, const char *tb)
SWIGRUNTIMEINLINE int SWIG_Tcl_ConvertPtr(Tcl_Interp *interp, Tcl_Obj *oc, void **ptr, swig_type_info *ty, int flags)
SWIGINTERN int _wrap_a_pmat_e___(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_new_a_quaternion__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
struct swig_const_info swig_const_info
static swig_type_info _swigt__p_a_intern
static swig_attribute swig_a_mat_c_attributes[]
static swig_class * swig_a_intern_bases[]
SWIGINTERN int _wrap_new_a_3dh__SWIG_3(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_2dh_Y__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_mat_transpose(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_pmat_parallel(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_attribute swig_a_2dh_attributes[]
SWIGINTERN int _wrap_a_quaternion_j__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGRUNTIME int SWIG_Tcl_Thisown(void *ptr)
SWIGINTERN int _wrap_a_quaternion_i__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGRUNTIME void SWIG_InitializeModule(void *clientdata)
SWIGINTERN int _wrap_a_intern_sy__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_2dh_set__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGRUNTIME const char * SWIG_UnpackData(const char *c, void *ptr, size_t sz)
#define SWIGTYPE_p_a_mat_base
static swig_type_info _swigt__p_a_point
SWIGINTERN void SWIG_Tcl_SetConstantObj(Tcl_Interp *interp, const char *name, Tcl_Obj *obj)
static swig_type_info _swigt__p_a_2dh
static const char * swig_a_quaternion_base_names[]
static swig_class _wrap_class_a_2dh
static swig_method swig_a_pos_methods[]
SWIGINTERN void swig_delete_a_pos(void *obj)
SWIGINTERN int _wrap_a_3dh_y(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_mat_sub_matrix(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGRUNTIMEINLINE Tcl_Obj * SWIG_Tcl_NewPointerObj(void *ptr, swig_type_info *type, int flags)
SWIGINTERN void swig_delete_a_intern(void *obj)
static swig_attribute swig_a_pos_attributes[]
static swig_cast_info _swigc__p_char[]
static swig_cast_info _swigc__p_a_point2[]
SWIGRUNTIME swig_cast_info * SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty)
SWIGINTERN int _wrap_a_base_print(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIGINTERN
SWIGINTERN int _wrap_new_a_2dh__SWIG_3(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_mat_c_norm(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_From_double
SWIGINTERN void swig_delete_a_2dh(void *obj)
#define SWIG_ArgError(r)
#define SWIG_NewPointerObj(ptr, type, flags)
SWIGINTERN int _wrap_new_a_mat_c(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_quaternion_r__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_Thisown(ptr)
SWIGINTERN int _wrap_a_intern_help(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGRUNTIME const char * SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name)
SWIGINTERN int _wrap_new_a_3dh(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_3dh_set__SWIG_3(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_intern_sx(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
void *(* swig_converter_func)(void *, int *)
#define SWIG_POINTER_NO_NULL
SWIGINTERN int _wrap_a_mat_e___(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static const char * swig_a_mat_base_names[]
static void * _p_a_matTo_p_a_mat_base(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN int _wrap_a_intern_sy(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIGTYPE_p_a_2dh
static void * _p_a_3dhTo_p_a_base(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGINTERN std::string a_quaternion_print(a_quaternion *self)
#define SWIG_IOError
SWIGRUNTIME Tcl_Obj * SWIG_Tcl_NewInstanceObj(Tcl_Interp *interp, void *thisvalue, swig_type_info *type, int flags)
SWIGINTERN int _wrap_delete_a_mat_base(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_NullReferenceError
SWIGINTERN int _wrap_a_quaternion_j(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_delete_a_base(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN void swig_delete_a_quaternion(void *obj)
SWIGINTERN int _wrap_a_3dh_print(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_pos_translate(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_pos_rotateZ(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_POINTER_DISOWN
struct swig_type_info swig_type_info
SWIGINTERN int _wrap_cross(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIGTYPE_p_a_quaternion
SWIGINTERN int _wrap_new_a_mat_c__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_3dh_Z(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_quaternion_print(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_3dh_Z__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_cast_info _swigc__p_a_intern[]
SWIGRUNTIME char * SWIG_Tcl_PointerTypeFromString(char *c)
SWIGINTERN int _wrap_new_a_quaternion__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_cast_info _swigc__p_a_pmat[]
SWIGINTERN int _wrap_new_a_mat__SWIG_3(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_attribute swig_a_3dh_attributes[]
SWIGINTERN int _wrap_a_pos_rotate(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_quaternion_m___(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGRUNTIME int SWIG_Tcl_Disown(void *ptr)
SWIGINTERN int _wrap_a_intern_sy__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_pos_translate__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIGTYPE_p_UI
#define SWIG_ObjectDelete
SWIGINTERN int _wrap_a_quaternion_a___(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_3dh_point(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_NewPackedObj(ptr, sz, type)
SWIGINTERN int _wrap_a_intern_stheta(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_mat_swapc(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_delete_a_3dh(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static void * _p_a_posTo_p_a_mat_base(void *x, int *SWIGUNUSEDPARM(newmemory))
#define SWIG_GetModule(clientdata)
static swig_method swig_a_intern_methods[]
SWIGINTERN int _wrap_a_mat_c_e___(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_quaternion_d_____SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_fail
SWIGINTERN int _wrap_a_3dh_T__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGRUNTIME void SWIG_PropagateClientData(void)
SWIGRUNTIME swig_cast_info * SWIG_TypeCheck(const char *c, swig_type_info *ty)
static swig_cast_info _swigc__p_a_point[]
static swig_method swig_a_quaternion_methods[]
SWIGINTERN Tcl_Obj * SWIG_Tcl_GetConstantObj(const char *key)
static const char * swig_a_pmat_base_names[]
SWIGINTERN int _wrap_a_pmat_project(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIGTYPE_p_a_point
SWIGINTERN int _wrap_new_a_mat__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERNINLINE Tcl_Obj * SWIG_FromCharPtrAndSize(const char *carray, size_t size)
static swig_type_info _swigt__p_a_quaternion
static const char * swig_a_mat_base_base_names[]
static const char * swig_a_mat_c_base_names[]
SWIGINTERN int _wrap_a_2dh_X(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_TYPE_TABLE_NAME
SWIGRUNTIME swig_type_info * SWIG_MangledTypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name)
SWIGINTERN int _wrap_a_intern_sx__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_base_classname(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_2dh_y(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIGTYPE_p_a_base
static const char * swig_a_base_base_names[]
SWIGRUNTIME swig_module_info * SWIG_Tcl_GetModule(Tcl_Interp *interp)
struct swig_module_info swig_module_info
#define SWIG_TCL_POINTER
static swig_class _wrap_class_a_base
SWIGINTERN int _wrap_new_a_pmat__SWIG_2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_Acquire(ptr)
SWIGRUNTIME void SWIG_Tcl_ObjectDelete(ClientData clientData)
SWIGINTERN int _wrap_a_quaternion_square(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_ERROR
#define SWIG_TCL_HASHTABLE_INIT
SWIGINTERN int _wrap_a_2dh_point2(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_name
SWIGRUNTIME int SWIG_Tcl_ConvertPacked(Tcl_Interp *SWIGUNUSEDPARM(interp), Tcl_Obj *obj, void *ptr, int sz, swig_type_info *ty)
static swig_cast_info _swigc__p_a_mat[]
SWIGINTERN int _wrap_a_intern_stheta__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIGTYPE_p_a_intern
#define SWIG_ObjectConstructor
static swig_type_info _swigt__p_a_base
#define SWIG_NewInstanceObj(thisvalue, type, flags)
#define SWIG_Disown(ptr)
SWIGINTERN int _wrap_a_3dh_Y__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_quaternion_invert(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_quaternion_s___(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_class * swig_a_3dh_bases[]
static swig_type_info * swig_type_initial[]
SWIGINTERN int _wrap_a_2dh_Y(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_3dh_set(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static void * _p_a_2dhTo_p_a_base(void *x, int *SWIGUNUSEDPARM(newmemory))
#define SWIGTYPE_p_a_3dh
static const char * swig_a_2dh_base_names[]
static void * _p_a_3dhTo_p_a_mat_base(void *x, int *SWIGUNUSEDPARM(newmemory))
static int swigconstTableinit
struct swig_attribute swig_attribute
static void * _p_a_mat_cTo_p_a_mat(void *x, int *SWIGUNUSEDPARM(newmemory))
static const char * swig_a_pos_base_names[]
SWIGINTERN int _wrap_new_a_pos(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
void(* swig_delete_func)(ClientData)
SWIGRUNTIME Tcl_HashTable * SWIG_Tcl_ObjectTable(void)
SWIGINTERN int _wrap_a_mat_swapr(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGRUNTIME int SWIG_Tcl_ConvertPtrFromString(Tcl_Interp *interp, const char *c, void **ptr, swig_type_info *ty, int flags)
SWIGRUNTIME swig_type_info * SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr)
SWIGINTERN int _wrap_delete_a_mat(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_cast_info _swigc__p_a_mat_c[]
static swig_class _wrap_class_a_mat_base
#define SWIGTYPE_p_a_pos
SWIGINTERN int _wrap_a_2dh_help(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_pos_help(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_MemoryError
static swig_attribute swig_a_pmat_attributes[]
SWIGINTERN int _wrap_a_pmat_move(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIGTYPE_p_a_pmat
SWIGINTERN void swig_delete_a_mat_c(void *obj)
SWIGRUNTIME const char * SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name)
#define SWIG_SystemError
#define SWIG_DivisionByZero
SWIGINTERN int _wrap_a_quaternion_j__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_delete_a_pmat(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIGTYPE_p_double
static void * _p_a_mat_baseTo_p_a_base(void *x, int *SWIGUNUSEDPARM(newmemory))
static swig_type_info _swigt__p_char
struct swig_method swig_method
#define SWIG_TCL_DECL_ARGS_2(arg1, arg2)
SWIGINTERN int _wrap_new_a_intern(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_quaternion_i__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_OverflowError
#define SWIGEXPORT
#define SWIG_IsOK(r)
static swig_type_info _swigt__p_a_pmat
SWIGINTERN int _wrap_new_a_intern__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_new_a_3dh__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
int(* swig_wrapper)(ClientData, Tcl_Interp *, int, Tcl_Obj *CONST[])
SWIGINTERN int _wrap_a_3dh_X(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_new_a_mat_c__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGRUNTIME void SWIG_Tcl_MakePtr(char *c, void *ptr, swig_type_info *ty, int SWIGUNUSEDPARM(flags))
struct swig_type_info *(* swig_dycast_func)(void **)
SWIGINTERN int _wrap_a_3dh_z(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_TCL_CALL_ARGS_2(arg1, arg2)
SWIGINTERN int _wrap_a_3dh_set__SWIG_1(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_3dh_help(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_class * swig_a_base_bases[]
#define SWIG_IndexError
SWIGINTERN void SWIG_Tcl_InstallMethodLookupTables(void)
#define SWIG_TCL_STUBS_VERSION
#define SWIG_prefix
SWIGINTERN int _wrap_a_quaternion_abs(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_2dh_set(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_quaternion_r(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
#define SWIG_TCL_BINARY
static void * _p_a_internTo_p_a_base(void *x, int *SWIGUNUSEDPARM(newmemory))
SWIGRUNTIME char * SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz)
#define SWIG_OK
static swig_class _wrap_class_a_pmat
#define SWIGINTERNINLINE
static swig_attribute swig_a_base_attributes[]
SWIGINTERN int _wrap_a_mat_d___(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_new_a_quaternion__SWIG_3(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
SWIGINTERN int _wrap_a_intern_u0__SWIG_0(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
static swig_cast_info _swigc__p_a_pos[]
#define SWIGRUNTIMEINLINE
a_point cross(const a_point &a, const a_point &b)
Definition: a_point.cxx:284
an homogeneous 2d matrix class
Definition: a_2dh.h:30
static const std::string help()
Definition: a_2dh.cxx:4
an homogeneous 3d matrix class
Definition: a_3dh.h:30
static const std::string help()
Definition: a_3dh.cxx:19
Definition: a_base.h:28
static const std::string help()
Definition: a_base.cxx:21
intern calibration matrix
Definition: a_intern.h:29
void sy(double v)
Definition: a_intern.h:36
void sx(double v)
Definition: a_intern.h:35
void v0(double v)
Definition: a_intern.h:39
static const std::string help()
Definition: a_intern.cxx:19
void u0(double v)
Definition: a_intern.h:38
void stheta(double v)
Definition: a_intern.h:37
static const std::string help()
Definition: a_mat_base.cxx:21
a column matrix unit
Definition: a_mat_c.h:29
Definition: a_mat.h:42
UI size() const
Definition: a_mat.h:51
UI maxi() const
Definition: a_mat.h:49
UI maxj() const
Definition: a_mat.h:50
a projection matrix
Definition: a_pmat.h:32
static const std::string help()
Definition: a_pmat.cxx:20
position matrix
Definition: a_pos.h:31
a_pos & rotateY(double v)
Definition: a_pos.cxx:72
static const std::string help()
Definition: a_pos.cxx:19
a_pos & orient(a_point dir)
Definition: a_pos.cxx:94
a_pos & translate(double x, double y, double z)
Definition: a_pos.cxx:47
a_pos & rotateX(double v)
Definition: a_pos.cxx:61
a_pos & rotate(const a_quaternion &q)
Definition: a_pos.cxx:126
a_pos & rotateZ(double v)
Definition: a_pos.cxx:83
a_quaternion & conjugate()
a_quaternion & invert()
a_quaternion & square()
a_quaternion & negate()
char buf[256]
Definition: copy.h:17
int val
swig_type_info * type
struct swig_cast_info * prev
struct swig_cast_info * next
swig_converter_func converter
swig_method * methods
swig_type_info ** type
Tcl_HashTable hashtable
struct swig_class ** bases
swig_module_info * module
void(* destructor)(void *)
swig_wrapper constructor
swig_attribute * attributes
const char ** base_names
swig_type_info ** ptype
swig_type_info ** types
swig_cast_info ** cast_initial
swig_type_info ** type_initial
struct swig_module_info * next
swig_dycast_func dcast
struct swig_cast_info * cast