Method: HyperSphere#initialize

Defined in:
lib/zadt/AbstractDataTypes/Geometrics/hypersphere.rb

#initialize(radius = 1, center = [0,0,0,0], pct_error = 1) ⇒ HyperSphere

Returns a new instance of HyperSphere.



7
8
9
10
11
# File 'lib/zadt/AbstractDataTypes/Geometrics/hypersphere.rb', line 7

def initialize(radius = 1, center = [0,0,0,0], pct_error = 1)
  @radius = radius
  @center = Point.new(center)
  @pct_error = pct_error
end