Method: Ray::Vector2#pretty_print
- Defined in:
- lib/ray/vector.rb
#pretty_print(q) ⇒ Object
144 145 146 147 148 149 150 |
# File 'lib/ray/vector.rb', line 144 def pretty_print(q) q.text "(" q.pp(("%g" % x).to_f) # hides simple-precision inacurracy q.text ", " q.pp(("%g" % y).to_f) q.text ")" end |