Exemplo n.º 1
0
        public override Value Evaluate(FSharpList <Value> args)
        {
            PointList points = new PointList();
            var       input  = (args[0] as Value.List).Item;

            foreach (Value v in input)
            {
                Point p = ((Value.Container)v).Item as Point;
                points.Add(p);
            }

            _polygon = Polygon.by_vertices(points);

            return(Value.NewContainer(_polygon));
        }
Exemplo n.º 2
0
        public override Value Evaluate(FSharpList<Value> args)
        {
            PointList points = new PointList();
            var input = (args[0] as Value.List).Item;

            foreach (Value v in input)
            {
                Point p = ((Value.Container)v).Item as Point;
                points.Add(p);
            }

            _polygon = Polygon.by_vertices(points);

            return Value.NewContainer(_polygon);
        }