Class: Sevgi::Sundries::Grid::Axis::Query Private
- Inherits:
-
Object
- Object
- Sevgi::Sundries::Grid::Axis::Query
- Defined in:
- lib/sevgi/sundries/grid.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Memoized grid line query for an axis.
Instance Method Summary collapse
-
#initialize(this, other) ⇒ void
constructor
private
Creates a query.
-
#lines ⇒ Array<Sevgi::Geometry::Line>
private
Returns generated grid lines.
-
#points ⇒ Array<Array<Sevgi::Geometry::Point>>
private
Returns grid line endpoints as points.
-
#xys ⇒ Array<Array<Array<Float>>>
private
Returns grid line endpoints as coordinate pairs.
Constructor Details
#initialize(this, other) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Creates a query.
87 |
# File 'lib/sevgi/sundries/grid.rb', line 87 def initialize(this, other) = (@this, @other = this, other) |
Instance Method Details
#lines ⇒ Array<Sevgi::Geometry::Line>
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns generated grid lines.
99 |
# File 'lib/sevgi/sundries/grid.rb', line 99 def lines = @lines ||= lines! |
#points ⇒ Array<Array<Sevgi::Geometry::Point>>
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns grid line endpoints as points.
95 |
# File 'lib/sevgi/sundries/grid.rb', line 95 def points = @points ||= lines.map { it.points(true) } |
#xys ⇒ Array<Array<Array<Float>>>
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns grid line endpoints as coordinate pairs.
91 |
# File 'lib/sevgi/sundries/grid.rb', line 91 def xys = @xys ||= lines.map { it.points(true).map(&:deconstruct) } |