Method: Geometry::Rotation#transform

Defined in:
lib/aurora-geometry/rotation.rb

#transform(point) ⇒ Point

Transform and return a new Point

Parameters:

  • point (Point)

    the Point to rotate into the parent coordinate frame

Returns:



107
108
109
110
# File 'lib/aurora-geometry/rotation.rb', line 107

def transform(point)
    m = matrix
    m ? Point[m * Point[point]] : point
end