3D arc passing through 3 points

Version 1.0.2 (1.84 KB) by Max
Compute the center, radii, angle and the reference frame of the arc passing through 3 points
79 Downloads
Updated 12 Nov 2023

View License

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));

Cite As

Max (2026). 3D arc passing through 3 points (https://in.mathworks.com/matlabcentral/fileexchange/123050-3d-arc-passing-through-3-points), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2022b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.0.2

Reference to the original article fixed

1.0.1

Reference to the original article fixed

1.0.0