Table of Contents

Method ReverseSelect

Namespace
Gamelogic.Grids2
Assembly
Gamelogic.Grids2.dll

ReverseSelect<TPoint>(IImplicitShape<TPoint>, Func<TPoint, TPoint>)

Returns a new implicit shape that projects points before testing them for membership.

[Version(2, 3, 0)]
public static IImplicitShape<TPoint> ReverseSelect<TPoint>(this IImplicitShape<TPoint> shape, Func<TPoint, TPoint> projection)

Parameters

shape IImplicitShape<TPoint>
projection Func<TPoint, TPoint>

Returns

IImplicitShape<TPoint>

Type Parameters

TPoint

Remarks

If a point p belongs to this shape, and projection(q) equals p, then q belongs to the returned shape. For example, to get a shape that is translated by (4, 0), you need to pass the projection point => point - new GridPoint(4, 0)