Method: Geometry::Transformation#translate
- Defined in:
- lib/geometry/transformation.rb
#translate(point) ⇒ Transformation
Update the translation property with the given Point
118 119 120 121 122 123 124 125 |
# File 'lib/geometry/transformation.rb', line 118 def translate(point) if translation @translation += Point[point] else @translation = Point[point] end self end |