Browse files

Updated comments.

  • Loading branch information...
1 parent 8710356 commit 0580301f1ecce00c16d66b36be43a790a62a8fb6 Jean-Francois Lalonde committed Nov 2, 2012
Showing with 8 additions and 12 deletions.
  1. +8 −12 envmapSkyAngular2World.m
View
20 envmapSkyAngular2World.m
@@ -1,23 +1,19 @@
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-% function [dx,dy,dz] = envmapSkyAngular2World(dim)
-% Converts an environment map from the sky angular format to the [x,y,z] world directions
+function [dx,dy,dz,valid] = envmapSkyAngular2World(dim)
+% Converts from the sky angular format to the [x,y,z] world directions
+%
+% [dx,dy,dz,valid] = envmapSkyAngular2World(dim)
+%
%
% Input parameters:
% - dim: the sky angular environment dimensions
%
% Output parameters:
% - [dx,dy,dz]: world directions
%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-function [dx,dy,dz,valid] = envmapSkyAngular2World(dim)
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-% Copyright 2006-2009 Jean-Francois Lalonde
-% Carnegie Mellon University
-% Do not distribute
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
+% ----------
+% Jean-Francois Lalonde
-%% Get the desired world coordinates from the output angular map
+% Get the desired world coordinates from the output angular map
[u,v] = meshgrid(0:1/(dim-1):1, 0:1/(dim-1):1);
thetaAngular = atan2(-2.*v+1, 2.*u-1); % azimuth

0 comments on commit 0580301

Please sign in to comment.