title: ILnumerics c# draw line
body: <p>How can I add line, like I drew in Paint with ILNumerics?
  My scene is building with that code:</p>
  
  <pre><code> ilPanel1.Scene = new ILScene()
   {
       new ILPlotCube(twoDMode: false)
      {
          new ILSurface(func,
                       xmin: (float)xmin,
                       xmax: (float)xmax,
                       ymin: (float)ymin,
                       ymax: (float)ymax,
                       xlen: 200,
                       ylen: 200,
                       colormap: Colormaps.ILNumerics),
      }
  };
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/7VY7c.png" alt="http://i.imgur.com/7BTMmDd.png"></p>
  
  <p>edited:</p>
  
  <pre><code>var line = ilPanel1.Scene.Camera.Add(Shapes.Line);
  ILArray&lt;float&gt; angles = ILMath.linspace&lt;float&gt;(0, 6, 6);
  ILArray&lt;float&gt; pos = ILMath.zeros&lt;float&gt;(1,1,1);
  pos["0;:"] = (float)xt; pos["1;:"] = (float)yt;
  pos["2;:"] = 0f;
  line.Positions = pos;
  line.Color = Color.Black;
  </code></pre>