Class: Geom::NumberUV

Inherits:
Object
  • Object
show all
Defined in:
lib/geom/number.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(u = 0, v = 0) ⇒ NumberUV

Returns a new instance of NumberUV.



102
103
104
105
# File 'lib/geom/number.rb', line 102

def initialize(u=0,v=0)
  @u = u
  @v = v
end

Instance Attribute Details

#uObject

Returns the value of attribute u.



100
101
102
# File 'lib/geom/number.rb', line 100

def u
  @u
end

#vObject

Returns the value of attribute v.



100
101
102
# File 'lib/geom/number.rb', line 100

def v
  @v
end

Instance Method Details

#cloneObject



107
108
109
# File 'lib/geom/number.rb', line 107

def clone
  NumberUV.new(u,v)
end