public Vector2 Transform(Vector2 position) => _transformer.InverseTransform(position);
static public Circle InverseTransform(this ITransformer transformer, Circle circle) { return(new Circle(transformer.InverseTransform(circle.Center), transformer.InverseTransform(circle.Center + Vector2.UnitX * circle.Radius).Length())); }
public bool ContainsPoint(Vector2 point) => _shape.ContainsPoint(_transformation.InverseTransform(point));
static public Quad InverseTransform(this ITransformer transformer, Quad quad) { return(new Quad(transformer.InverseTransform(quad.P0), transformer.InverseTransform(quad.P1), transformer.InverseTransform(quad.P2))); }
static public Quad InverseTransform(this ITransformer transformer, CenteredRectangle centeredRectangle) { return(new Quad(transformer.InverseTransform(centeredRectangle.Position), transformer.InverseTransform(centeredRectangle.P1), transformer.InverseTransform(centeredRectangle.P2))); }
static public Quad InverseTransform(this ITransformer transformer, TopLeftRectangle topLeftRectangle) { return(new Quad(transformer.InverseTransform(topLeftRectangle.Position), transformer.InverseTransform(topLeftRectangle.P1), transformer.InverseTransform(topLeftRectangle.P2))); }
static public Triangle InverseTransform(this ITransformer transformer, Triangle triangle) { return(new Triangle(transformer.InverseTransform(triangle.P0), transformer.InverseTransform(triangle.P1), transformer.InverseTransform(triangle.P2))); }
static public Segment InverseTransform(this ITransformer transformer, Segment segment) { return(new Segment(transformer.InverseTransform(segment.P0), transformer.InverseTransform(segment.P1))); }