Skip to content

Commit 7f0c955

Browse files
committed
make circumcenter private
1 parent 94f79f1 commit 7f0c955

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/math_demo/circumcircle.rb

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# Circumcircle from 3 points
22
require_relative './pbisector'
33

4-
Vect = Struct.new(:x, :y, :z)
5-
64
class Circumcircle
75
attr_reader :center, :radius, :points
86
def initialize(points)
@@ -16,6 +14,10 @@ def calculate
1614
@radius = center.dist(points[2]) # points[2] = c
1715
end
1816

17+
private
18+
19+
Vect = Struct.new(:x, :y, :z)
20+
1921
def circumcenter(pb1, pb2)
2022
# equation of the first bisector (ax - y = -b)
2123
a0 = Math.tan pb1.angle

0 commit comments

Comments
 (0)