Class: DXF::Spline
Direct Known Subclasses
Constant Summary
Constants inherited from Entity
Instance Attribute Summary collapse
-
#degree ⇒ Object
readonly
Returns the value of attribute degree.
-
#knots ⇒ Object
readonly
Returns the value of attribute knots.
-
#points ⇒ Object
readonly
Returns the value of attribute points.
Attributes inherited from Entity
Instance Method Summary collapse
-
#initialize(degree: nil, knots: [], points: nil) ⇒ Spline
constructor
A new instance of Spline.
Methods inherited from Entity
Methods included from ClusterFactory
Constructor Details
#initialize(degree: nil, knots: [], points: nil) ⇒ Spline
Returns a new instance of Spline.
126 127 128 129 130 |
# File 'lib/dxf/entity.rb', line 126 def initialize(degree:nil, knots:[], points:nil) @degree = degree @knots = knots || [] @points = points || [] end |
Instance Attribute Details
#degree ⇒ Object (readonly)
Returns the value of attribute degree.
122 123 124 |
# File 'lib/dxf/entity.rb', line 122 def degree @degree end |
#knots ⇒ Object (readonly)
Returns the value of attribute knots.
123 124 125 |
# File 'lib/dxf/entity.rb', line 123 def knots @knots end |
#points ⇒ Object (readonly)
Returns the value of attribute points.
124 125 126 |
# File 'lib/dxf/entity.rb', line 124 def points @points end |