Method: Geometry::Transformation#transform

Defined in:
lib/geometry/transformation.rb

#transform(point) ⇒ Point

Transform and return a new Point. Rotation is applied before translation.

Parameters:

  • point (Point)

    the Point to transform into the parent coordinate frame

Returns:



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