Method: Informers::Utils.center_to_corners_format
- Defined in:
- lib/informers/processors.rb
.center_to_corners_format(v) ⇒ Object
658 659 660 661 662 663 664 665 666 |
# File 'lib/informers/processors.rb', line 658 def self.center_to_corners_format(v) centerX, centerY, width, height = v [ centerX - width / 2.0, centerY - height / 2.0, centerX + width / 2.0, centerY + height / 2.0 ] end |