<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Hermite curves | Student Projects</title>
	<atom:link href="https://studentprojects.in/tag/hermite-curves/feed/" rel="self" type="application/rss+xml" />
	<link>https://studentprojects.in</link>
	<description>Microcontroller projects, Circuit Diagrams, Project Ideas</description>
	<lastBuildDate>Fri, 02 Oct 2009 10:26:54 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.7</generator>
	<item>
		<title>C Program to implement Hermite curves for a given set of control points.</title>
		<link>https://studentprojects.in/software-development/c-tutorials/c/graphics/c-program-to-implement-hermite-curves-for-a-given-set-of-control-points/</link>
					<comments>https://studentprojects.in/software-development/c-tutorials/c/graphics/c-program-to-implement-hermite-curves-for-a-given-set-of-control-points/#comments</comments>
		
		<dc:creator><![CDATA[Editorial Team]]></dc:creator>
		<pubDate>Fri, 02 Oct 2009 10:26:54 +0000</pubDate>
				<category><![CDATA[Graphics]]></category>
		<category><![CDATA[c program]]></category>
		<category><![CDATA[Hermite curves]]></category>
		<category><![CDATA[Hermite curves in c]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=836</guid>

					<description><![CDATA[<p>point p1,p2;<br />
	printf("Enter 2 hermite points:\n");<br />
	scanf("%d%d%d%d",&#038;p1.x,&#038;p1.y,&#038;p2.x,&#038;p2.y);<br />
	printf("Enter the tangents at p1,p4");<br />
	scanf("%d%d",&#038;r1,&#038;r4);<br />
	cleardevice();</p>
<p>The post <a href="https://studentprojects.in/software-development/c-tutorials/c/graphics/c-program-to-implement-hermite-curves-for-a-given-set-of-control-points/">C Program to implement Hermite curves for a given set of control points.</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<pre lang="c" escaped="true" line="1">
#include<iostream.h>
#include<graphics.h>
#include<conio.h>
#include<stdio.h>

struct point
{
int x,y;
};

void hermite(point p1,point p4,double r1,double r4)
{
	float x,y,t;
	for(t=0.0;t<=1.0;t+=.001)
	{
		x=(2*t*t*t-3*t*t+1)*p1.x+(-2*t*t*t+3*t*t)*p4.x+(t*t*t-2*t*t+t)*r1+(t*t*t-t*t)*r4;
		y=(2*t*t*t-3*t*t+1)*p1.y+(-2*t*t*t+3*t*t)*p4.y+(t*t*t-2*t*t+1)*r1+(t*t*t-t*t)*r4;
		putpixel(x,y,YELLOW);
	 }
}

int main()
{
	int gd=DETECT,gm;
	double r1,r4;
	initgraph(&#038;gd,&#038;gm,"..//BGI");
	point p1,p2;
	printf("Enter 2 hermite points:\n");
	scanf("%d%d%d%d",&#038;p1.x,&#038;p1.y,&#038;p2.x,&#038;p2.y);
	printf("Enter the tangents at p1,p4");
	scanf("%d%d",&#038;r1,&#038;r4);
	cleardevice();
	hermite(p1,p2,r1,r4);
	putpixel(x1,y1,WHITE);
	putpixel(x2,y2,WHITE);
	getch();
	closegraph();
	return 0;
}
</pre><p>The post <a href="https://studentprojects.in/software-development/c-tutorials/c/graphics/c-program-to-implement-hermite-curves-for-a-given-set-of-control-points/">C Program to implement Hermite curves for a given set of control points.</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/software-development/c-tutorials/c/graphics/c-program-to-implement-hermite-curves-for-a-given-set-of-control-points/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
