Class: Floorplanner::XML::Line
- Inherits:
-
Object
- Object
- Floorplanner::XML::Line
- Includes:
- ROXML
- Defined in:
- lib/floorplanner/xml.rb
Constant Summary collapse
- DEFAULT_HEIGHT =
2.4
Instance Method Summary collapse
Instance Method Details
#height ⇒ Object
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 |
#thickness ⇒ Object
36 37 38 |
# File 'lib/floorplanner/xml.rb', line 36 def thickness thickness_str.to_f end |
#type ⇒ Object
27 28 29 |
# File 'lib/floorplanner/xml.rb', line 27 def type type_str.to_sym end |
#vertices ⇒ Object
40 41 42 |
# File 'lib/floorplanner/xml.rb', line 40 def vertices @vertices ||= Floorplanner::XML.parse_points(points) end |