Sha256: 1a2d52c19fb7f597f4a70d4cd81ad9026d5d6464dd36eb82de95b995a5575998

Contents?: true

Size: 274 Bytes

Versions: 1

Compression:

Stored size: 274 Bytes

Contents

#! /usr/bin/env ruby
# coding: utf-8

require "mageo/vector3d.rb"

#
# 球を表現するクラス。
#
class Sphere
  attr_reader :position, :radius

  # 座標と半径
  def initialize(position, radius)
    @position = Vector3D[*position]
    @radius = radius
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mageo-0.0.1 lib/mageo/sphere.rb