Home > freetb4matlab > plot > specular.m

specular

PURPOSE ^

% Calculate specular reflection strength of a surface defined by the normal

SYNOPSIS ^

function retval = specular (sx, sy, sz, lv, vv, se)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {} specular (@var{sx}, @var{sy}, @var{sz}, @var{l}, @var{v})
% @deftypefnx {Function File} {} specular (@var{sx}, @var{sy}, @var{sz}, @var{l}, @var{v}, @var{se})
% Calculate specular reflection strength of a surface defined by the normal
% vector elements @var{sx}, @var{sy}, @var{sz} using Phong's approximation. 
% The light and view vectors can be specified using parameter @var{L} and @var{V} respectively.
% Both can be given as 2-element vectors [azimuth, elevation] in degrees or as 3-element
% vector [x, y, z].  An optional 6th argument describes the specular exponent (spread) @var{se}.
% @seealso{surfl, diffuse}
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Sat 16-May-2009 00:04:49 by m2html © 2003