<< CL_gm_betaEclipse Geometry and events CL_gm_eclipse >>

celestlab >> Geometry and events > CL_gm_circumCircle

CL_gm_circumCircle

Circle passing through 3 points

Calling Sequence

[cen, r, normal] = CL_gm_circumCircle(P1, P2, P3)

Description

Parameters

P1, P2, P3 :

Three points in cartesian coordinates (3xN or 3x1)

cen :

Center of the circle - cartesian coordinates (3xN)

r :

Radius of the circle (1xN)

normal :

Normal direction (unit vector) (3xN)

Authors

Examples

P1 = 2 * [-1; 0; 0];
P2 = 2 * [1; 0; 0];
P3 = 2 * [0; 1; 0];
[cen, r, normal] = CL_gm_circumCircle(P1, P2, P3)

Report an issue
<< CL_gm_betaEclipse Geometry and events CL_gm_eclipse >>