class UIC::Property::VectorValue

Attributes

b[R]
g[R]
r[R]
x[R]
y[R]
z[R]

Public Class Methods

new(asset,property,slide,str) click to toggle source
# File lib/ruic/attributes.rb, line 151
def initialize(asset,property,slide,str)
        @asset    = asset
        @property = property
        @slide    = slide
        @x, @y, @z = str.split(/\s+/).map(&:to_f)
end

Public Instance Methods

b=(n)
Alias for: z=
g=(n)
Alias for: y=
inspect() click to toggle source
# File lib/ruic/attributes.rb, line 169
def inspect
        "<#{@asset.path}.#{@property.name}: #{self}>"
end
r=(n)
Alias for: x=
setall() click to toggle source
# File lib/ruic/attributes.rb, line 157
def setall
        @property.set( @asset, to_s, @slide )
end
to_a() click to toggle source
# File lib/ruic/attributes.rb, line 175
def to_a
        [x,y,z]
end
to_s() click to toggle source
# File lib/ruic/attributes.rb, line 172
def to_s
        to_a.join(' ')
end
x=(n) click to toggle source
# File lib/ruic/attributes.rb, line 160
def x=(n); @x=n; setall end
Also aliased as: r=
y=(n) click to toggle source
# File lib/ruic/attributes.rb, line 161
def y=(n); @y=n; setall end
Also aliased as: g=
z=(n) click to toggle source
# File lib/ruic/attributes.rb, line 162
def z=(n); @z=n; setall end
Also aliased as: b=