Class: Sumi::Sundries::Grid::Y
- Defined in:
- sundries/lib/sumi/sundries/grid.rb
Overview
Vertical grid axis.
Instance Attribute Summary
Attributes inherited from Axis
Attributes inherited from Ruler
Attributes inherited from Interval
Instance Method Summary collapse
-
#line ⇒ Sumi::Geometry::Line
Returns the base vertical line for this axis.
-
#line_at(x) ⇒ Sumi::Geometry::Line
Returns a vertical line translated to an x coordinate.
Methods inherited from Ruler
#expand, #margins, #ms, #sd, #sn, #su, #waste
Methods inherited from Interval
[], #[], #count, #d, #ds, #h, #hs, #nds, #nhs
Instance Method Details
#line ⇒ Sumi::Geometry::Line
Returns the base vertical line for this axis.
209 |
# File 'sundries/lib/sumi/sundries/grid.rb', line 209 def line = @line ||= Geometry::Line[d, 90.0] |
#line_at(x) ⇒ Sumi::Geometry::Line
Returns a vertical line translated to an x coordinate.
214 |
# File 'sundries/lib/sumi/sundries/grid.rb', line 214 def line_at(x) = line.at([x, 0.0]) |