⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 getfn_plane.m

📁 J-linkage 算法
💻 M
字号:
%------------------------------------------------------------------------
% Function to define a plane given 3 data points. The plane is defined directly by
% the three points.
function P = getfn_plane(X)
    n = cross(X(:,2)-X(:,1), X(:,3)-X(:,1)); % Plane normal.
    d = - (n(1) * X(1,1)) - (n(2) * X(2,1)) - (n(3) * X(3,1)); 
    normN = norm(n);                           % Make it a unit vector
    n = n/normN;
    d = d/normN;
    P = [n' d];
end 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -