Class: Floorplanner::XML::Line

Inherits:
Object
  • Object
show all
Includes:
ROXML
Defined in:
lib/floorplanner/xml.rb

Constant Summary collapse

DEFAULT_HEIGHT =
2.4

Instance Method Summary collapse

Instance Method Details

#heightObject



31
32
33
34
# File 'lib/floorplanner/xml.rb', line 31

def height
  height_str ? height_str.to_f : (
    vertices[3] ? vertices[3].z : DEFAULT_HEIGHT)
end

#thicknessObject



36
37
38
# File 'lib/floorplanner/xml.rb', line 36

def thickness
  thickness_str.to_f
end

#typeObject



27
28
29
# File 'lib/floorplanner/xml.rb', line 27

def type
  type_str.to_sym
end

#verticesObject



40
41
42
# File 'lib/floorplanner/xml.rb', line 40

def vertices
  @vertices ||= Floorplanner::XML.parse_points(points)
end