Home > Applications > SpinW > m_files > sw_mirror.m

iFit/sw_mirror

PURPOSE ^

mirrors a 3D vector

SYNOPSIS ^

function [V, mirM] = sw_mirror(n, V)

DESCRIPTION ^

 mirrors a 3D vector

 [V, mirM] = SW_MIRROR(n, {V}) 

 It mirrors the vectors in V to the mirror plane that is defined by its
 normal vector mNorm.

 Input:

 n         Vector, normal to the mirror plane, dimensions are [1 3].
 V         Matrix of 3D vectors, dimensions are [3 N], optional.

 Output:

 V         Mirrored vectors, dimensions are [3 N].
 mirM      Matrix of the mirror operation, dimensions are [3 3].

 To mirror any column vector use the following:
   vp = mirM * v;

 To apply mirror plane operation on tensors (3x3 matrices) use the
 following command:
   Ap = mirM * A * mirM';

 See also SW.GENMAGSTR, SW_ROT.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Mon 26-Nov-2018 15:08:42 by m2html © 2005. iFit (c) E.Farhi/ILL EUPL 1.1