| 
    NAMD
    
   | 
 
#include <tcl.h>#include <stdlib.h>#include <string.h>#include <math.h>Go to the source code of this file.
Macros | |
| #define | VMD_PI 3.14159265358979323846 | 
| #define | VMD_TWOPI (2.0 * VMD_PI) | 
| #define | DEGTORAD(a) (a*VMD_PI/180.0) | 
| #define | RADTODEG(a) (a*180.0/VMD_PI) | 
Functions | |
| static int | obj_vecadd (ClientData, Tcl_Interp *interp, int argc, Tcl_Obj *const objv[]) | 
| static int | obj_vecsub (ClientData, Tcl_Interp *interp, int argc, Tcl_Obj *const objv[]) | 
| static int | obj_vecscale (ClientData, Tcl_Interp *interp, int argc, Tcl_Obj *const objv[]) | 
| int | tcl_get_matrix (const char *fctn, Tcl_Interp *interp, Tcl_Obj *s, double *mat) | 
| Given a string with a matrix in it, return the matrix.  More... | |
| void | tcl_append_matrix (Tcl_Interp *interp, const double *mat) | 
| static int | obj_vectrans (ClientData, Tcl_Interp *interp, int argc, Tcl_Obj *const objv[]) | 
| static int | obj_transmult (ClientData, Tcl_Interp *interp, int argc, Tcl_Obj *const objv[]) | 
| static int | obj_transvec (ClientData, Tcl_Interp *interp, int argc, Tcl_Obj *const objv[]) | 
| static int | obj_transvecinv (ClientData, Tcl_Interp *interp, int argc, Tcl_Obj *const objv[]) | 
| static int | obj_transabout (ClientData, Tcl_Interp *interp, int argc, Tcl_Obj *const objv[]) | 
| static int | obj_veclength (ClientData, Tcl_Interp *interp, int argc, Tcl_Obj *const objv[]) | 
| static double * | obj_getdoublearray (Tcl_Interp *interp, Tcl_Obj *const objv[], int *len) | 
| static int | obj_vecsum (ClientData, Tcl_Interp *interp, int argc, Tcl_Obj *const objv[]) | 
| static int | obj_vecmean (ClientData, Tcl_Interp *interp, int argc, Tcl_Obj *const objv[]) | 
| static int | obj_vecstddev (ClientData, Tcl_Interp *interp, int argc, Tcl_Obj *const objv[]) | 
| int | Vec_Init (Tcl_Interp *interp) | 
| #define DEGTORAD | ( | a | ) | (a*VMD_PI/180.0) | 
Definition at line 34 of file TclVec.C.
Referenced by obj_transabout().
| #define VMD_PI 3.14159265358979323846 | 
Definition at line 32 of file TclVec.C.
Referenced by obj_transabout().
      
  | 
  static | 
Definition at line 537 of file TclVec.C.
Referenced by obj_vecmean(), obj_vecstddev(), and obj_vecsum().
      
  | 
  static | 
Definition at line 448 of file TclVec.C.
References DEGTORAD, Matrix4::mat, Matrix4::rotate_axis(), tcl_append_matrix(), and VMD_PI.
Referenced by Vec_Init().
      
  | 
  static | 
Definition at line 351 of file TclVec.C.
References tcl_append_matrix(), and tcl_get_matrix().
Referenced by Vec_Init().
      
  | 
  static | 
Definition at line 387 of file TclVec.C.
References Matrix4::mat, tcl_append_matrix(), and Matrix4::transvec().
Referenced by Vec_Init().
      
  | 
  static | 
Definition at line 415 of file TclVec.C.
References Matrix4::mat, tcl_append_matrix(), and Matrix4::transvecinv().
Referenced by Vec_Init().
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
Definition at line 587 of file TclVec.C.
References obj_getdoublearray().
Referenced by Vec_Init().
      
  | 
  static | 
      
  | 
  static | 
Definition at line 611 of file TclVec.C.
References obj_getdoublearray().
Referenced by Vec_Init().
      
  | 
  static | 
      
  | 
  static | 
Definition at line 564 of file TclVec.C.
References obj_getdoublearray().
Referenced by Vec_Init().
      
  | 
  static | 
Definition at line 288 of file TclVec.C.
References tcl_get_matrix().
Referenced by Vec_Init().
| void tcl_append_matrix | ( | Tcl_Interp * | interp, | 
| const double * | mat | ||
| ) | 
Definition at line 274 of file TclVec.C.
Referenced by obj_transabout(), obj_transmult(), obj_transvec(), and obj_transvecinv().
| int tcl_get_matrix | ( | const char * | fctn, | 
| Tcl_Interp * | interp, | ||
| Tcl_Obj * | s, | ||
| double * | mat | ||
| ) | 
Given a string with a matrix in it, return the matrix.
Definition at line 197 of file TclVec.C.
Referenced by obj_transmult(), and obj_vectrans().
| int Vec_Init | ( | Tcl_Interp * | interp | ) | 
Definition at line 643 of file TclVec.C.
References obj_transabout(), obj_transmult(), obj_transvec(), obj_transvecinv(), obj_vecadd(), obj_veclength(), obj_vecmean(), obj_vecscale(), obj_vecstddev(), obj_vecsub(), obj_vecsum(), and obj_vectrans().
Referenced by tcl_vector_math_init().
 1.8.14