<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: C Program to implement Hermite curves for a given set of control points.	</title>
	<atom:link href="https://studentprojects.in/software-development/c-tutorials/c/graphics/c-program-to-implement-hermite-curves-for-a-given-set-of-control-points/feed/" rel="self" type="application/rss+xml" />
	<link>https://studentprojects.in/software-development/c-tutorials/c/graphics/c-program-to-implement-hermite-curves-for-a-given-set-of-control-points/</link>
	<description>Microcontroller projects, Circuit Diagrams, Project Ideas</description>
	<lastBuildDate>Sat, 03 Nov 2012 15:06:06 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.7</generator>
	<item>
		<title>
		By: gaurav		</title>
		<link>https://studentprojects.in/software-development/c-tutorials/c/graphics/c-program-to-implement-hermite-curves-for-a-given-set-of-control-points/comment-page-1/#comment-9144</link>

		<dc:creator><![CDATA[gaurav]]></dc:creator>
		<pubDate>Sat, 03 Nov 2012 15:06:06 +0000</pubDate>
		<guid isPermaLink="false">http://studentprojects.in/?p=836#comment-9144</guid>

					<description><![CDATA[#include
#include
int line1(int,int,int,int);
void hermite(int x1,int y1,int x2,int y2,float slope1,float slope2)
{
    float x,y;
    float u;
    for(u=0.00;u&#060;=1.0;u+=0.001)
    {
        x=(2*u*u*u-3*u*u+1)*x1+(-2*u*u*u+3*u*u)*x2+(u*u*u-2*u*u+u)*slope1*x1+(u*u*u-u*u)*slope2*x2;
        y=(2*u*u*u-3*u*u+1)*y1+(-2*u*u*u+3*u*u)*y2+(u*u*u-2*u*u+u)*slope1*x1+(u*u*u-u*u)*slope2*x2;
        putpixel(20+(int)(x+0.5),240-(int)(y+0.5),RED);
    }
}

int main()
{
    int gd=DETECT,gm;
    initgraph(&#038;gd,&#038;gm,&#034;c:\\tc\\bgi&#034;);
    int i,j,k,l,m,n,x,y,z;
    //hermite(10,10,100,100,3,4);
    hermite(100,50,100,100,0.9,-1);
    line1(100,0,100,100);
    line1(100,50,120,0);

    line1(140,0,150,100);
    line1(150,100,160,0);
    line1(145,50,155,50);

    line1(180,0,180,100);
    line1(180,100,200,0);
    line1(200,0,200,100);

       line1(220,0,230,100);
    line1(230,100,240,0);
    line1(225,50,235,50);

    getch();
    closegraph();
    return 0;


}
int line1(int x1,int y1,int x2,int y2)
{
    setcolor(RED);
    line(20+x1,240-y1,20+x2,240-y2);
    return 0;
}]]></description>
			<content:encoded><![CDATA[<p>#include<br />
#include<br />
int line1(int,int,int,int);<br />
void hermite(int x1,int y1,int x2,int y2,float slope1,float slope2)<br />
{<br />
    float x,y;<br />
    float u;<br />
    for(u=0.00;u&lt;=1.0;u+=0.001)<br />
    {<br />
        x=(2*u*u*u-3*u*u+1)*x1+(-2*u*u*u+3*u*u)*x2+(u*u*u-2*u*u+u)*slope1*x1+(u*u*u-u*u)*slope2*x2;<br />
        y=(2*u*u*u-3*u*u+1)*y1+(-2*u*u*u+3*u*u)*y2+(u*u*u-2*u*u+u)*slope1*x1+(u*u*u-u*u)*slope2*x2;<br />
        putpixel(20+(int)(x+0.5),240-(int)(y+0.5),RED);<br />
    }<br />
}</p>
<p>int main()<br />
{<br />
    int gd=DETECT,gm;<br />
    initgraph(&amp;gd,&amp;gm,&quot;c:\\tc\\bgi&quot;);<br />
    int i,j,k,l,m,n,x,y,z;<br />
    //hermite(10,10,100,100,3,4);<br />
    hermite(100,50,100,100,0.9,-1);<br />
    line1(100,0,100,100);<br />
    line1(100,50,120,0);</p>
<p>    line1(140,0,150,100);<br />
    line1(150,100,160,0);<br />
    line1(145,50,155,50);</p>
<p>    line1(180,0,180,100);<br />
    line1(180,100,200,0);<br />
    line1(200,0,200,100);</p>
<p>       line1(220,0,230,100);<br />
    line1(230,100,240,0);<br />
    line1(225,50,235,50);</p>
<p>    getch();<br />
    closegraph();<br />
    return 0;</p>
<p>}<br />
int line1(int x1,int y1,int x2,int y2)<br />
{<br />
    setcolor(RED);<br />
    line(20+x1,240-y1,20+x2,240-y2);<br />
    return 0;<br />
}</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: gaurav		</title>
		<link>https://studentprojects.in/software-development/c-tutorials/c/graphics/c-program-to-implement-hermite-curves-for-a-given-set-of-control-points/comment-page-1/#comment-9142</link>

		<dc:creator><![CDATA[gaurav]]></dc:creator>
		<pubDate>Sat, 03 Nov 2012 14:06:08 +0000</pubDate>
		<guid isPermaLink="false">http://studentprojects.in/?p=836#comment-9142</guid>

					<description><![CDATA[its not working.]]></description>
			<content:encoded><![CDATA[<p>its not working.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
