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

Definition of the MneTriangle Class. More...

#include "mne_triangle.h"
Include dependency graph for mne_triangle.cpp:

Go to the source code of this file.

Macros

#define X_50   0
 
#define Y_50   1
 
#define Z_50   2
 
#define VEC_DOT_50(x, y)   ((x)[X_50]*(y)[X_50] + (x)[Y_50]*(y)[Y_50] + (x)[Z_50]*(y)[Z_50])
 
#define VEC_LEN_50(x)   sqrt(VEC_DOT_50(x,x))
 
#define VEC_DIFF_50(from, to, diff)
 
#define CROSS_PRODUCT_50(x, y, xy)
 

Detailed Description

Definition of the MneTriangle 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
January, 2017

LICENSE

Copyright (C) 2017, 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 mne_triangle.cpp.

Macro Definition Documentation

◆ CROSS_PRODUCT_50

#define CROSS_PRODUCT_50 (   x,
  y,
  xy 
)
Value:
{\
(xy)[X_50] = (x)[Y_50]*(y)[Z_50]-(y)[Y_50]*(x)[Z_50];\
(xy)[Y_50] = -((x)[X_50]*(y)[Z_50]-(y)[X_50]*(x)[Z_50]);\
(xy)[Z_50] = (x)[X_50]*(y)[Y_50]-(y)[X_50]*(x)[Y_50];\
}

Definition at line 56 of file mne_triangle.cpp.

◆ VEC_DIFF_50

#define VEC_DIFF_50 (   from,
  to,
  diff 
)
Value:
{\
(diff)[X_50] = (to)[X_50] - (from)[X_50];\
(diff)[Y_50] = (to)[Y_50] - (from)[Y_50];\
(diff)[Z_50] = (to)[Z_50] - (from)[Z_50];\
}

Definition at line 50 of file mne_triangle.cpp.