Home > vbmeg > functions > plotfunc > subdirectory > vb_plot_normal.m

vb_plot_normal

PURPOSE ^

法線ベクトル プロット

SYNOPSIS ^

function vb_plot_normal(V,xx,nlength,ltype)

DESCRIPTION ^

 法線ベクトル プロット

 Copyright (C) 2011, ATR All Rights Reserved.
 License : New BSD License(see VBMEG_LICENSE.txt)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function    vb_plot_normal(V,xx,nlength,ltype)
0002 % 法線ベクトル プロット
0003 %
0004 % Copyright (C) 2011, ATR All Rights Reserved.
0005 % License : New BSD License(see VBMEG_LICENSE.txt)
0006 
0007 %  V(Npoint,3) : 座標点
0008 % xx(Npoint,3) : 法線ベクトル
0009 
0010 if nargin<3, nlength = 1; end;
0011 if nargin<4, ltype = 'b-'; end;
0012 
0013 d = V + nlength * xx;
0014 
0015 plot3([V(:,1),d(:,1)]',[V(:,2),d(:,2)]',[V(:,3),d(:,3)]',ltype);

Generated on Mon 22-May-2023 06:53:56 by m2html © 2005