示例#1
0
 public Vector2 Transform(Vector2 position) => _transformer.InverseTransform(position);
示例#2
0
 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()));
 }
示例#3
0
 public bool ContainsPoint(Vector2 point) => _shape.ContainsPoint(_transformation.InverseTransform(point));
示例#4
0
 static public Quad InverseTransform(this ITransformer transformer, Quad quad)
 {
     return(new Quad(transformer.InverseTransform(quad.P0), transformer.InverseTransform(quad.P1), transformer.InverseTransform(quad.P2)));
 }
示例#5
0
 static public Quad InverseTransform(this ITransformer transformer, CenteredRectangle centeredRectangle)
 {
     return(new Quad(transformer.InverseTransform(centeredRectangle.Position), transformer.InverseTransform(centeredRectangle.P1), transformer.InverseTransform(centeredRectangle.P2)));
 }
示例#6
0
 static public Quad InverseTransform(this ITransformer transformer, TopLeftRectangle topLeftRectangle)
 {
     return(new Quad(transformer.InverseTransform(topLeftRectangle.Position), transformer.InverseTransform(topLeftRectangle.P1), transformer.InverseTransform(topLeftRectangle.P2)));
 }
示例#7
0
 static public Triangle InverseTransform(this ITransformer transformer, Triangle triangle)
 {
     return(new Triangle(transformer.InverseTransform(triangle.P0), transformer.InverseTransform(triangle.P1), transformer.InverseTransform(triangle.P2)));
 }
示例#8
0
 static public Segment InverseTransform(this ITransformer transformer, Segment segment)
 {
     return(new Segment(transformer.InverseTransform(segment.P0), transformer.InverseTransform(segment.P1)));
 }