3D arc passing through 3 points

版本 1.0.2 (1.8 KB) 作者: Max
Compute the center, radii, angle and the reference frame of the arc passing through 3 points
79.0 次下载
更新时间 2023/11/12

查看许可证

Compute the center, radii, angle and the reference frame of the arc passing through 3 points
Input:
  • p1, p2, p3: row 3-vectors representing 3d space points, the arc starts at p1 goes trough p2 and finishes at p3
Output:
  • r: calculated radii
  • p: raw 3-vector representing the center of the arc
  • al3: the final angle of the arc
  • X, Y: row unit 3-vectors representing the reference frame of the plane where the arc lies, X vector is pointing to the p1 so the starting angle is always 0
Examples:
Plot random arc:
  • arc3(rand(1, 3), rand(1, 3), rand(1, 3));
Calculate without plotting:
  • [r, p, al, X, Y] = arc3(rand(1, 3), rand(1, 3), rand(1, 3));

引用格式

Max (2026). 3D arc passing through 3 points (https://ww2.mathworks.cn/matlabcentral/fileexchange/123050-3d-arc-passing-through-3-points), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2022b
兼容任何版本
平台兼容性
Windows macOS Linux
版本 已发布 发行说明
1.0.2

Reference to the original article fixed

1.0.1

Reference to the original article fixed

1.0.0