public PxPoint Reflect(PxPoint mirror) { var dx = Math.Abs(mirror.X - X); var dy = Math.Abs(mirror.Y - Y); return(new PxPoint( mirror.X + (mirror.X >= X? dx:-dx), mirror.Y + (mirror.Y >= Y? dy:-dy) )); }
public PxPoint Add(PxPoint pt) { return(new PxPoint(X + pt.X, Y + pt.Y)); }
public static PxMatrix Translate(PxPoint pt) { return(new PxMatrix(1, 0, 0, 1, pt.X, pt.Y)); }