I am trying to get the curvature of a curve in 3D (I just have a bunch of data points). I wanted to test it on a simple known case of a helix.
s = 0:20/300:20;
x = 1.3*cos(s);
y = 1.3*sin(s);
z = 1*s;
and then get the tangent vectors at each point:
xtan = -1.3*sin(s);
ytan = 1.3*cos(s);
ztan = 1*ones(1,length(ytan));
Now with this information, I am trying to find out the angle it makes with the central Z axis.
Tangent = [xtan; ytan ;ztan];
CentralAxis = [0 0 1];
for i = 1:length(Tangent)
% Measure angle between two 3D vectors
angleTan(i) = atan2d(norm(cross(Tangent(:,i),CentralAxis)),dot(Tangent(:,i),CentralAxis));
end
HelixCur = 1.3/(1.3^2+1^2);% curvature of helix which is $\kappa_N$
R_HelixCur = 1/HelixCur;
From Meusnier's theorem we know $\kappa_N = \kappa cos\alpha$. I am trying to verify this and I am not getting it right. Where am I going wrong?
I know the value of $\kappa$ which would be $1/1.3$ (in this example)