OSDN Git Service

sll
[psychlops/silverlight.git] / dev4 / psychlops / core / graphic / canvas.cs
index 7f0267b..e67c6ae 100644 (file)
@@ -730,6 +730,16 @@ namespace Psychlops
                {\r
                        return new System.Windows.Point(d.x, d.y);\r
                }\r
+\r
+\r
+               public Point datum { get { return this; } set { this = value; } }\r
+               public Point shift(Point p) { this = this + p; return this; }\r
+               public Point centering(Point p) { this = p; return this; }\r
+               public Point getDatum() { return this; }\r
+               public Point setDatum(Point p) { this = p; return p; }\r
+               public Point shift(double x, double y, double z = 0.0) { return shift(new Point(x, y, z)); }\r
+               public Point centering() { return centering(Main.drawable.getCenter()); }\r
+               public Point centering(double x, double y, double z = 0.0) { return centering(new Point(x, y, z)); }\r
        }\r
 \r
        partial struct Color\r