<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Koordinaten berechnen]]></title><description><![CDATA[<p>Hi zusammen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /> ,</p>
<p>Also ich habe die Funktion f(x)<br />
Jetzt setzte ich in diese Funktion Werte ein (for-Schleife), welche anschließend in ein Koordianten System gezeichnet werden sollen... mein Problem ist das ich nicht weiß wie ich die Punkte umrechnen soll...</p>
<p>PS das Koordinatensystem ist über die GDI gezeichnet (also n paar mal LineTo und MoveToEx ...)</p>
<p>danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/147783/koordinaten-berechnen</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Jul 2026 00:10:43 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/147783.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 19 May 2006 21:59:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Koordinaten berechnen on Fri, 19 May 2006 21:59:20 GMT]]></title><description><![CDATA[<p>Hi zusammen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /> ,</p>
<p>Also ich habe die Funktion f(x)<br />
Jetzt setzte ich in diese Funktion Werte ein (for-Schleife), welche anschließend in ein Koordianten System gezeichnet werden sollen... mein Problem ist das ich nicht weiß wie ich die Punkte umrechnen soll...</p>
<p>PS das Koordinatensystem ist über die GDI gezeichnet (also n paar mal LineTo und MoveToEx ...)</p>
<p>danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1061309</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1061309</guid><dc:creator><![CDATA[Mr.Hut]]></dc:creator><pubDate>Fri, 19 May 2006 21:59:20 GMT</pubDate></item><item><title><![CDATA[Reply to Koordinaten berechnen on Sat, 20 May 2006 11:27:27 GMT]]></title><description><![CDATA[<p>Mit SetWindowOrgEx kannst du einen Punkt als Ursprung angeben, sodass du die Punkte nicht mehr umzurechnen brauchst.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1061503</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1061503</guid><dc:creator><![CDATA[qasdfgh]]></dc:creator><pubDate>Sat, 20 May 2006 11:27:27 GMT</pubDate></item><item><title><![CDATA[Reply to Koordinaten berechnen on Sat, 20 May 2006 12:41:26 GMT]]></title><description><![CDATA[<p>hmm ok danke erstmal für die hilfe...aber irgend wie funktioniert das hier nicht:</p>
<pre><code class="language-cpp">// unter WM_PAINT
// hdcBackBuffer ist der gültige Zeichenkontext
// iXGraphField ist die horizontale Größe des Graphen
// iYGraphField ist die vertikale Größe des Graphen
// ptPrevOrg soll den ursprünglichen Koordinatenbasispunkt speichern
    SetWindowOrgEx(hdcBackBuffer, iXGraphField / 2, iYGraphField / 2, &amp;ptPrevOrg);

    MoveToEx(hdcBackBuffer, 0, 0, NULL);
    LineTo(hdcBackBuffer, 10, 10); // Linie von der Mitte (0,0) bis (10,10)

    SetWindowOrgEx(hdcBackBuffer, ptPrevOrg.x, ptPrevOrg.y, NULL); // zurücksetzen
</code></pre>
<p>vll. findeste ja den Fehler...und nochmals vielen dank! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<p>PS: er zeichnet einfach nix^^ <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1061570</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1061570</guid><dc:creator><![CDATA[Mr.Hut]]></dc:creator><pubDate>Sat, 20 May 2006 12:41:26 GMT</pubDate></item><item><title><![CDATA[Reply to Koordinaten berechnen on Sat, 20 May 2006 13:56:53 GMT]]></title><description><![CDATA[<p>Servas!!!</p>
<p>Weiss nicht was genau du mit f(x) dann erreichen willst,<br />
aber hier zB. wird zuerst das kartesische Koordinatensystem eingestellt dann der Vektor 100, 100 vom Ursprung gezeichnet!!</p>
<p>vll hilfts!!</p>
<p>case WM_PAINT:<br />
{<br />
PAINTSTRUCT ps;<br />
RECT rc;</p>
<p>HDC hdc = BeginPaint (hWnd, &amp;ps);</p>
<p>GetClientRect(hWnd, &amp;rc);</p>
<p>SetMapMode(hdc, MM_LOMETRIC);</p>
<p>SetViewportOrgEx(hdc, rc.right/2, rc.bottom/2, NULL);</p>
<p>MoveToEx( hdc, 0, 0, NULL);<br />
LineTo( hdc, 200, 250 );</p>
<p>EndPaint( hWnd, &amp;ps);<br />
break;<br />
}</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1061627</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1061627</guid><dc:creator><![CDATA[N_2]]></dc:creator><pubDate>Sat, 20 May 2006 13:56:53 GMT</pubDate></item><item><title><![CDATA[Reply to Koordinaten berechnen on Sat, 20 May 2006 13:57:59 GMT]]></title><description><![CDATA[<p>doch ned 100, 100<br />
<img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1061628</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1061628</guid><dc:creator><![CDATA[N_2]]></dc:creator><pubDate>Sat, 20 May 2006 13:57:59 GMT</pubDate></item><item><title><![CDATA[Reply to Koordinaten berechnen on Sat, 20 May 2006 19:09:59 GMT]]></title><description><![CDATA[<p>funzt, danke, perfekt! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1061824</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1061824</guid><dc:creator><![CDATA[Mr.Hut]]></dc:creator><pubDate>Sat, 20 May 2006 19:09:59 GMT</pubDate></item></channel></rss>