Centre and radius of a circle passing through 3 points in a plane: Difference between revisions
Centre and radius of a circle passing through 3 points in a plane (view source)
Revision as of 22:40, 20 February 2024
, 4 months ago→{{header|Wren}}: No need for second paragraph of preamble now.
m (replaced the 22.82 in task description with 22.83, since that's what all 3 entries are currently using.) |
m (→{{header|Wren}}: No need for second paragraph of preamble now.) |
||
Line 50:
=={{header|Wren}}==
This follows the lines of the C++ code [https://www.geeksforgeeks.org/equation-of-circle-when-three-points-on-the-circle-are-given/ here].
<syntaxhighlight lang="wren">var findCircle = Fn.new { |x1, y1, x2, y2, x3, y3|
var x12 = x1 - x2
|