Home > ISET > utility > ieShape.m

ieShape

PURPOSE ^

Return x,y,z values of a shape

SYNOPSIS ^

function [x,y,z] = ieShape(type,nSamp,varargin)

DESCRIPTION ^

Return x,y,z values of a shape

   [x,y,z] = ieShape(type,nSamp,varargin)

We calculate shapes like circles, ellipses, maybe other stuff later.

Example:

  Positions of the Airy disk zero crossing for an f# 5.6 lens at 550 nm.
  The units of x,y are meters
  fNumber = 2.0; wavelength = 550;
  radius = (2.44*fNumber*wavelength*10^-9);
  [x,y] = ieShape('circle',200, radius); plot(x,y,'.'); 
  axis equal; grid on

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Sun 14-Jan-2007 10:24:23 by m2html © 2003