Transform and return a new Point. Rotation is applied before translation.
Parameters:
the Point to transform into the parent coordinate frame
Returns:
The transformed Point
178 179 180 181
# File 'lib/geometry/transformation.rb', line 178 def transform(point) point = @rotation.transform(point) if @rotation @translation ? (@translation + point) : point end