Home > FR3DSource > zAngle.m

zAngle

PURPOSE ^

zAngle(A,B,C) computes the angle at B made by vectors BA and BC

SYNOPSIS ^

function [theta] = zAngle(A,B,C)

DESCRIPTION ^

 zAngle(A,B,C) computes the angle at B made by vectors BA and BC

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % zAngle(A,B,C) computes the angle at B made by vectors BA and BC
0002 
0003 function [theta] = zAngle(A,B,C)
0004 
0005 d = A-B;
0006 e = C-B;
0007 
0008 theta = 180*acos(d*e'/(norm(d)*norm(e)))/pi;
0009

Generated on Fri 03-Apr-2009 09:52:35 by m2html © 2003