lib/mageo/sphere.rb in mageo-0.0.0 vs lib/mageo/sphere.rb in mageo-0.0.1
- old
+ new
@@ -5,15 +5,14 @@
#
# 球を表現するクラス。
#
class Sphere
- attr_reader :position, :radius
+ attr_reader :position, :radius
- # 座標と半径
- def initialize(position, radius)
- @position = Vector3D[*position]
- @radius = radius
- end
-
+ # 座標と半径
+ def initialize(position, radius)
+ @position = Vector3D[*position]
+ @radius = radius
+ end
end