Circles of given radius through two points: Difference between revisions
Content deleted Content added
Updated D entry |
m →{{header|Ruby}}: comment; spaces |
||
Line 629:
end
# Demo:
ar = [[Pt.new(0.1234, 0.9876), Pt.new(0.8765, 0.2345), 2.0],
[Pt.new(0.0000, 2.0000), Pt.new(0.0000, 0.0000), 1.0],
Line 636:
[Pt.new(0.1234, 0.9876), Pt.new(0.1234, 0.9876), 0.0]]
ar.each do |(p1, p2, r)|
puts "Given points:\n #{p1.values},\n #{p2.values}"
begin
Line 675:
[#<struct Circle x=0.1234, y=0.9876, r=0.0>]
</pre>
=={{header|Tcl}}==
{{trans|Python}}
|