Class: Sumi::Sundries::Grid::Axis::Query
- Inherits:
-
Object
- Object
- Sumi::Sundries::Grid::Axis::Query
- Defined in:
- sundries/lib/sumi/sundries/grid.rb
Overview
Grid line query for an axis.
Instance Method Summary collapse
-
#lines ⇒ Array<Sumi::Geometry::Line>
Returns exact generated grid lines.
-
#points ⇒ Array<Array<Sumi::Geometry::Point>>
Returns grid line endpoints as points at the active F precision.
-
#xys ⇒ Array<Array<Array<Float>>>
Returns grid line endpoints as coordinate pairs at the active F precision.
Instance Method Details
#lines ⇒ Array<Sumi::Geometry::Line>
157 |
# File 'sundries/lib/sumi/sundries/grid.rb', line 157 def lines = @lines ||= build.freeze |
#points ⇒ Array<Array<Sumi::Geometry::Point>>
Returns grid line endpoints as points at the active F precision. Each call reads the current thread precision. The outer and nested collections are frozen.
152 |
# File 'sundries/lib/sumi/sundries/grid.rb', line 152 def points = lines.map { it.points(true).freeze }.freeze |
#xys ⇒ Array<Array<Array<Float>>>
Returns grid line endpoints as coordinate pairs at the active F precision. Each call reads the current thread precision. The outer and nested collections are frozen.
147 |
# File 'sundries/lib/sumi/sundries/grid.rb', line 147 def xys = lines.map { it.points(true).map { |point| point.deconstruct.freeze }.freeze }.freeze |