title: How do I give the correct parameters without "&" or "*" to the called method?
body: <p>I am new here quite new to writing code in c++ and currently run into following problem:</p>
  
  <p>I use the library wykobi which deals with geometry and solved many of my prior problems, but now I want to create a triangle using it and cant figure out how to call the required method correctly.</p>
  
  <pre><code>std::string x_str(argv[2]);
  std::string y_str(argv[3]);
  double x = atof(x_str.c_str());
  double y = atof(y_str.c_str());
  </code></pre>
  
  <p>[...]</p>
  
  <pre><code>double x2;
  x2 = double(orientation.direction.x)+angleRightx;
  double y2;
  y2 = double(orientation.direction.y)+angleRighty;
  double x3;
  x3 = double(orientation.direction.x)+angleLeftx;
  double y3;
  y3 = double(orientation.direction.y)+angleLefty;
  
  wykobi::triangle&lt;wykobi::Float,2&gt; clip_boundry = wykobi::make_triangle&lt;wykobi::Float,2&gt;(&amp;x,&amp;y, &amp;x2,&amp;y2, &amp;x3,&amp;y3);
  wykobi::polygon&lt;wykobi::Float,2&gt; clipped_polygon;
  wykobi::algorithm::sutherland_hodgman_polygon_clipper&lt;wykobi::point2d&lt;wykobi::Float&gt; &gt;(clip_boundry,wykPG,clipped_polygon);
  </code></pre>
  
  <p>I tried something similar before creating a circle, which worked perfectly fine:</p>
  
  <pre><code>wykobi::circle&lt;wykobi::Float&gt; circle;
  circle.x = x;
  circle.y = y;
  circle.radius = dist;
  wykobi::polygon&lt;wykobi::Float,2&gt; clip_boundry = wykobi::make_polygon&lt;wykobi::Float&gt;(circle,100);
  wykobi::polygon&lt;wykobi::Float,2&gt; clipped_polygon;
  wykobi::algorithm::sutherland_hodgman_polygon_clipper&lt;wykobi::point2d&lt;wykobi::Float&gt; &gt;(clip_boundry,wykPG,clipped_polygon);
  </code></pre>
  
  <p>Now the problem on compiling is:</p>
  
  <p>error: no matching function for call to 'make_triangle(double*, double*, double*, double*, double*, double*)'</p>
  
  <p>When I remove the ampersands:</p>
  
  <pre><code>wykobi::triangle&lt;wykobi::Float,2&gt; clip_boundry = wykobi::make_triangle&lt;wykobi::Float,2&gt;(x,y, x2,y2, x3,y3);
  </code></pre>
  
  <p>The error on comiling is:</p>
  
  <p>error: no matching function for call to 'make_triangle(double&amp;, double&amp;, double&amp;, double&amp;, double&amp;, double&amp;)'</p>
  
  <p>And finally the method I call looks like this:</p>
  
  <pre><code>template&lt;typename T&gt; inline triangle&lt;T,2&gt; make_triangle(const T&amp; x1, const T&amp; y1, const T&amp; x2, const T&amp; y2, const T&amp; x3, const T&amp; y3);
  </code></pre>
  
  <p>So I wonder what do I have to change to give the correct parameters?</p>
  
  <p>Thanks in advance!</p>