MNE-CPP  0.1.9
A Framework for Electrophysiology
Macros
fwd_coil_set.cpp File Reference

Definition of the FwdCoilSet Class. More...

#include "fwd_coil_set.h"
#include "fwd_coil.h"
#include <fiff/fiff_ch_info.h>
#include <QDebug>
Include dependency graph for fwd_coil_set.cpp:

Go to the source code of this file.

Macros

#define MAXWORD   1000
 
#define BIG   0.5
 
#define TRUE   1
 
#define FALSE   0
 
#define FAIL   -1
 
#define OK   0
 
#define MALLOC_6(x, t)   (t *)malloc((x)*sizeof(t))
 
#define REALLOC_6(x, y, t)   (t *)((x == NULL) ? malloc((y)*sizeof(t)) : realloc((x),(y)*sizeof(t)))
 
#define FREE_6(x)   if ((char *)(x) != NULL) free((char *)(x))
 
#define FIFFV_COORD_UNKNOWN   0
 
#define X_6   0
 
#define Y_6   1
 
#define Z_6   2
 
#define VEC_DOT_6(x, y)   ((x)[X_6]*(y)[X_6] + (x)[Y_6]*(y)[Y_6] + (x)[Z_6]*(y)[Z_6])
 
#define VEC_LEN_6(x)   sqrt(VEC_DOT_6(x,x))
 
#define VEC_COPY_6(to, from)
 

Detailed Description

Definition of the FwdCoilSet Class.

Author
Lorenz Esch lesch.nosp@m.@mgh.nosp@m..harv.nosp@m.ard..nosp@m.edu; Matti Hamalainen msh@n.nosp@m.mr.m.nosp@m.gh.ha.nosp@m.rvar.nosp@m.d.edu; Christoph Dinh chdin.nosp@m.h@nm.nosp@m.r.mgh.nosp@m..har.nosp@m.vard..nosp@m.edu
Since
0.1.0
Date
December, 2016

LICENSE

Copyright (C) 2016, Lorenz Esch, Matti Hamalainen, Christoph Dinh. All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file fwd_coil_set.cpp.

Macro Definition Documentation

◆ VEC_COPY_6

#define VEC_COPY_6 (   to,
  from 
)
Value:
{\
(to)[X_6] = (from)[X_6];\
(to)[Y_6] = (from)[Y_6];\
(to)[Z_6] = (from)[Z_6];\
}

Definition at line 92 of file fwd_coil_set.cpp.