Class: Moon::MatrixLike::Cursor

Inherits:
Object
  • Object
show all
Defined in:
lib/moon/packages/data_bags/matrix_like/cursor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(src) ⇒ Cursor

Returns a new instance of Cursor.

Parameters:


10
11
12
13
# File 'lib/moon/packages/data_bags/matrix_like/cursor.rb', line 10

def initialize(src)
  @position = Vector3.zero
  @src = src
end

Instance Attribute Details

#positionMoon::Vector3

Returns:


7
8
9
# File 'lib/moon/packages/data_bags/matrix_like/cursor.rb', line 7

def position
  @position
end

#srcMoon::DataMatrix (readonly)

Returns:


5
6
7
# File 'lib/moon/packages/data_bags/matrix_like/cursor.rb', line 5

def src
  @src
end