Exemple #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));
        }
Exemple #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);
        }