Method: Coords::Cartesian2d#reflect
- Defined in:
- lib/coords/cartesian2d.rb
#reflect(type = 'origin') ⇒ Object
63 64 65 66 67 |
# File 'lib/coords/cartesian2d.rb', line 63 def reflect(type = 'origin') reflected_point = Cartesian2d.new(x, y) reflected_point.reflect!(type) reflected_point end |