Esempio n. 1
0
 private static void ComputeLength(PropertyNode[] items, int start, int end)
 {
     var x = (double)items [start + 0].Value;
     var y = (double)items [start + 1].Value;
     var length = Math.Sqrt (x * x + y * y);
     items [start + 2].Value = length;
 }
Esempio n. 2
0
 private static void ComputeEllipse(PropertyNode[] items, int start, int end)
 {
     var x = (double)items [start + 0].Value;
     var y = (double)items [start + 1].Value;
     var width = (double)items [start + 2].Value;
     var height = (double)items [start + 3].Value;
     items [start + 4].Value = new Rectangle () {
         X = x, Y = y, Width = width, Height = height
     };
 }