@@ -34,12 +34,8 @@ def circle_from_points(a, b, c):
3434
3535 Returns
3636 -------
37- [float, float, float]
38- Center of the circle.
39- float
40- Radius of the circle.
41- [float, float, float]
42- Normal of the plane containing the circle.
37+ ([float, float, float], [float, float, float]), float
38+ Center, normal and radius of the circle respectively.
4339
4440 Notes
4541 -----
@@ -71,7 +67,7 @@ def circle_from_points(a, b, c):
7167 Cc = scale_vector (c , C )
7268 center = sum_vectors ([Aa , Bb , Cc ])
7369 radius = length_vector (subtract_vectors (a , center ))
74- return center , radius , normal
70+ return ( center , normal ), radius
7571
7672
7773def circle_from_points_xy (a , b , c ):
@@ -88,12 +84,8 @@ def circle_from_points_xy(a, b, c):
8884
8985 Returns
9086 -------
91- [float, float, 0.0]
92- Center of the circle in the XY plane.
93- float
94- Radius of the circle.
95- [0.0, 0.0, 1.0]
96- Normal of the plane containing the circle.
87+ ([float, float, float], [float, float, float]), float
88+ Center, normal and radius of the circle respectively.
9789
9890 Notes
9991 -----
@@ -124,4 +116,4 @@ def circle_from_points_xy(a, b, c):
124116 centerx = (d * e - b * f ) / g
125117 centery = (a * f - c * e ) / g
126118 radius = sqrt ((ax - centerx ) ** 2 + (ay - centery ) ** 2 )
127- return [centerx , centery , 0.0 ], radius , [0.0 , 0.0 , 1.0 ]
119+ return ( [centerx , centery , 0.0 ], [0.0 , 0.0 , 1.0 ]), radius
0 commit comments