Exemple #1
0
        public override Value Evaluate(FSharpList <Value> args)
        {
            double x, y, z;

            x = ((Value.Number)args[0]).Item;
            y = ((Value.Number)args[1]).Item;
            z = ((Value.Number)args[2]).Item;

            _point = Point.by_coordinates(x, y, z);

            return(Value.NewContainer(_point));
        }
Exemple #2
0
        public override Value Evaluate(FSharpList <Value> args)
        {
            double x, y;

            x = ((Value.Number)args[0]).Item;
            y = ((Value.Number)args[1]).Item;

            if (_point == null)
            {
                _point = Point.by_coordinates(x, y);
            }
            else
            {
                _point.set_x(x);
                _point.set_y(y);
            }

            return(Value.NewContainer(_point));
        }
Exemple #3
0
 public static Point XyzToPoint(XYZ xyz)
 {
     return(Point.by_coordinates(xyz.X, xyz.Y, xyz.Z));
 }