class MapPoint::PointBuilder

Point builder class

Attributes

point[R]

Public Class Methods

new() click to toggle source
# File lib/map/point.rb, line 41
def initialize()
  @point = Point.new()
end

Public Instance Methods

add_x(x) click to toggle source
# File lib/map/point.rb, line 54
def add_x(x)
  @point.x = x
end
add_y(y) click to toggle source
# File lib/map/point.rb, line 58
def add_y(y)
  @point.y = y
end
add_z(z) click to toggle source
# File lib/map/point.rb, line 62
def add_z(z)
  @point.z = z
end
build_point(x, y, z) click to toggle source

Builds the point of a node

# File lib/map/point.rb, line 48
def build_point(x, y, z)
  add_x(x.to_i)
  add_y(y.to_i)
  add_z(z.to_i)
end