Sha256: a4334ad59050632491e3a666f73a6294e006ed4277e96e13647681fb0753e58a

Contents?: true

Size: 393 Bytes

Versions: 3

Compression:

Stored size: 393 Bytes

Contents

# -*- coding: utf-8 -*-

##
# Accessors for #x, #y, #z.
#
module Indexable
  module XYZ

    # Get x.
    def x
      self[0]
    end

    # Set x.
    def x=(x)
      self[0]=x
    end

    # Get y.
    def y
      self[1]
    end

    # Set y.
    def y=(y)
      self[1]=y
    end

    # Get z.
    def z
      self[2]
    end

    # Set z.
    def z=(z)
      self[2]=z
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sixarm_ruby_geometry-4.0.0 lib/sixarm_ruby_geometry/indexable/xyz.rb
sixarm_ruby_geometry-3.1.1 lib/sixarm_ruby_geometry/indexable/xyz.rb
sixarm_ruby_geometry-3.0.0 lib/sixarm_ruby_geometry/indexable/xyz.rb