Method IsEquivalentUnderTranslation
IsEquivalentUnderTranslation<TPoint>(IEnumerable<TPoint>, IEnumerable<TPoint>, Func<IEnumerable<TPoint>, IEnumerable<TPoint>>)
Applies a function to the shapes and then checks if the results are equivalent.
public static bool IsEquivalentUnderTranslation<TPoint>(IEnumerable<TPoint> shape1, IEnumerable<TPoint> shape2, Func<IEnumerable<TPoint>, IEnumerable<TPoint>> toCanonicalPosition)Parameters
- shape1IEnumerable<TPoint>
- List of points of the shape1. 
- shape2IEnumerable<TPoint>
- List of points of the shape2. 
- toCanonicalPositionFunc<IEnumerable<TPoint>, IEnumerable<TPoint>>
- This function is used to translate the points of the shapes. 
Returns
Type Parameters
- TPoint
- The type of point of the shapes.