Sha256: 8ff024fd4b70f937d6967872f504281b6787b7f84f77bbe8f6faf64bad8aaea3

Contents?: true

Size: 267 Bytes

Versions: 1

Compression:

Stored size: 267 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.0 lib/mageo/sphere.rb