Class: DxfIO::Entity::Arc
Constant Summary collapse
- ADDITIONAL_GROUP_CODES =
{radius: 40, start_angle: 50, end_angle: 51}.freeze
Constants inherited from Other
Other::END_POINT_GROUP_NUMS, Other::GROUP_CODES, Other::START_POINT_GROUP_NUMS, Other::TYPE_NAME_VALUE_MAPPING, Other::X_COORDINATE_GROUP_NUMS, Other::Y_COORDINATE_GROUP_NUMS, Other::Z_COORDINATE_GROUP_NUMS
Instance Method Summary collapse
Methods inherited from Other
#-, #bordering_xs, #bordering_ys, #frame?, #height, #left_down_point, #move_to!, #points, #to_a, #to_h, #width, #xs, #ys
Instance Method Details
#bordering_points ⇒ Object
20 21 22 23 24 25 |
# File 'lib/dxf_io/entity/arc.rb', line 20 def bordering_points [point_by_angle(start_angle, point_type: :start), point_by_angle(end_angle, point_type: :end)] end |
#center ⇒ Object
16 17 18 |
# File 'lib/dxf_io/entity/arc.rb', line 16 def center points.first end |