class McBlocky::Location
Public Instance Methods
+(other)
click to toggle source
# File lib/mcblocky/location.rb, line 3 def +(other) if other.is_relative? Location.new(x + other.x, y + other.y, z + other.z) else RelativeLocation.new(x + other.x, y + other.y, z + other.z) end end
-(other)
click to toggle source
# File lib/mcblocky/location.rb, line 11 def -(other) if other.is_relative? Location.new(x - other.x, y - other.y, z - other.z) else RelativeLocation.new(x - other.x, y - other.y, z - other.z) end end
is_relative?()
click to toggle source
# File lib/mcblocky/location.rb, line 19 def is_relative? false end