Skip to content

Commit

Permalink
Comment clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
gkaguirre committed Feb 11, 2021
1 parent 5e8fd4c commit dfb1ed4
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
3 changes: 3 additions & 0 deletions quadric/convert/+quadric/vecToFunc.m
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
% S - 1x10 vector or 4x4 matrix of the quadric
% surface.
%
% Outputs:
% F - Hanndle to polynomial function
%

% If the quadric surface was passed in matrix form, convert to vec
if isequal(size(v),[4 4])
Expand Down
8 changes: 4 additions & 4 deletions quadric/properties/+quadric/mostAnteriorPoint.m
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
error('quadric:mostAnteriorPoint','Can only find the most anterior point for an ellipsoid');
end

% An anonymoys function that returns the area of an ellipse that is in the
% An anonymous function that returns the area of an ellipse that is in the
% cross-sectional plane at a given position along the x axis.
myFun = @(x) ellipseAreaAtX(S,x);

Expand Down Expand Up @@ -60,8 +60,8 @@
% Obtain the variables for the quadric
[A, B, C, D, E, F, G, H, I, K] = quadric.matrixToVars(S);

% Map the ellipsid parameters into the parameters into the implicit
% parameters of an ellipse at the specfied x-axis position
% Map the ellipsoid parameters into the implicit parameters of an ellipse
% at the specfied x-axis position
a = B;
b = F;
c = C;
Expand All @@ -82,7 +82,7 @@
return
end

% Conver the ellipse parameters from implicit to transparent format, and
% Convert the ellipse parameters from implicit to transparent format, and
% extract the area and ellipse center
transparent = ellipse_ex2transparent(ellipse_im2ex([a 2*b c 2*d 2*f g]));
area = transparent(3);
Expand Down
2 changes: 1 addition & 1 deletion quadric/properties/+quadric/radii.m
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
r = r .* sgns;

% The radius values are at this stage in canonical order (smallest to
% largest). Now re-order the valus so that the correspond to the actual
% largest). Now re-order the valus so that they correspond to the actual
% x,y,z dimensions of the quadric.
dimensionRank = quadric.dimensionSizeRank(S);
r = r(dimensionRank);
Expand Down
2 changes: 1 addition & 1 deletion quadric/relations/+quadric/distancePointRay.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
%
% Inputs:
% p - 3x1 vector that specifies a point
% R -- 3x2 matrix that specifies a vector of the form
% R - 3x2 matrix that specifies a vector of the form
% [p; u], corresponding to
% R = p + t*u
% where p is vector origin, u is the direction
Expand Down
2 changes: 1 addition & 1 deletion quadric/relations/+quadric/reflectRay.m
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
% Obtain the direction vector of the surface normal
q = N(:,2);

% Place the surface intersection point as the origin of the refracted ray
% Place the surface intersection point as the origin of the reflected ray
Rr(:,1) = N(:,1);

% Obtain the direction of the reflected ray
Expand Down

0 comments on commit dfb1ed4

Please sign in to comment.