Class: Waxy::Geometry::Orientation
- Inherits:
-
Object
- Object
- Waxy::Geometry::Orientation
- Defined in:
- lib/waxy/geometry/orientation.rb
Constant Summary collapse
- LAYOUT_POINTY =
Orientation.new( Math.sqrt(3.0), Math.sqrt(3.0) / 2.0, 0.0, 3.0 / 2.0, Math.sqrt(3.0) / 3.0, -1.0 / 3.0, 0.0, 2.0 / 3.0, 0.5 )
- LAYOUT_FLAT =
Orientation.new( 3.0 / 2.0, 0.0, Math.sqrt(3.0) / 2.0, Math.sqrt(3.0), 2.0 / 3.0, 0.0, -1.0 / 3.0, Math.sqrt(3.0) / 3.0, 0.0 )
Instance Attribute Summary collapse
-
#b0 ⇒ Object
Returns the value of attribute b0.
-
#b1 ⇒ Object
Returns the value of attribute b1.
-
#b2 ⇒ Object
Returns the value of attribute b2.
-
#b3 ⇒ Object
Returns the value of attribute b3.
-
#f0 ⇒ Object
Returns the value of attribute f0.
-
#f1 ⇒ Object
Returns the value of attribute f1.
-
#f2 ⇒ Object
Returns the value of attribute f2.
-
#f3 ⇒ Object
Returns the value of attribute f3.
-
#start_angle ⇒ Object
Returns the value of attribute start_angle.
Instance Method Summary collapse
-
#initialize(_f0, _f1, _f2, _f3, _b0, _b1, _b2, _b3, _start_angle) ⇒ Orientation
constructor
A new instance of Orientation.
Constructor Details
#initialize(_f0, _f1, _f2, _f3, _b0, _b1, _b2, _b3, _start_angle) ⇒ Orientation
Returns a new instance of Orientation.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/waxy/geometry/orientation.rb', line 9 def initialize(_f0, _f1, _f2, _f3, _b0, _b1, _b2, _b3, _start_angle) @f0 = _f0 @f1 = _f1 @f2 = _f2 @f3 = _f3 @b0 = _b0 @b1 = _b1 @b2 = _b2 @b3 = _b3 @start_angle = _start_angle end |
Instance Attribute Details
#b0 ⇒ Object
Returns the value of attribute b0.
5 6 7 |
# File 'lib/waxy/geometry/orientation.rb', line 5 def b0 @b0 end |
#b1 ⇒ Object
Returns the value of attribute b1.
5 6 7 |
# File 'lib/waxy/geometry/orientation.rb', line 5 def b1 @b1 end |
#b2 ⇒ Object
Returns the value of attribute b2.
5 6 7 |
# File 'lib/waxy/geometry/orientation.rb', line 5 def b2 @b2 end |
#b3 ⇒ Object
Returns the value of attribute b3.
5 6 7 |
# File 'lib/waxy/geometry/orientation.rb', line 5 def b3 @b3 end |
#f0 ⇒ Object
Returns the value of attribute f0.
5 6 7 |
# File 'lib/waxy/geometry/orientation.rb', line 5 def f0 @f0 end |
#f1 ⇒ Object
Returns the value of attribute f1.
5 6 7 |
# File 'lib/waxy/geometry/orientation.rb', line 5 def f1 @f1 end |
#f2 ⇒ Object
Returns the value of attribute f2.
5 6 7 |
# File 'lib/waxy/geometry/orientation.rb', line 5 def f2 @f2 end |
#f3 ⇒ Object
Returns the value of attribute f3.
5 6 7 |
# File 'lib/waxy/geometry/orientation.rb', line 5 def f3 @f3 end |
#start_angle ⇒ Object
Returns the value of attribute start_angle.
5 6 7 |
# File 'lib/waxy/geometry/orientation.rb', line 5 def start_angle @start_angle end |