🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: de.comp.lang.java
Article #9

Re: Beispiel f�r Funktionsdarstellung

#9
From: Niko Schwarz
Date: Mon, 14 Aug 2000 00:00
16 lines
1286 bytes
> Graphische Darstellung?

naja, ich denk, er will einfach die graphen gezeichnet haben. dat iss doch
aber einfacher als pfannkuchen essen!

Point old=new Point(-200,0)
Point origin=new Point(); // kooridinatenursprung

for(int i = -200; i<200;i++) {
    Point newPoint=new Point();
    Point newPoint=new Point();
    newPoint.x= origin.x + i;
    newPoint.y=origin.y - Math.round( Math.cos(i) );
    g.drawLine( old.x,old.y, newPoint.x, newPoint.y );
    old=newPoint;
}
Technical Details
Message-ID: <8n7a0t$8035u$1@ID-42792.news.cis.dfn.de>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3996EB6B.99D1049C@gmx.net> <966194270.589117856@localhost>

Show Full Headers
Complete Article Headers
X-Google-Language: GERMAN,ASCII-7-bit
X-Google-Thread: 102494,8bcd8326e7de11ee
X-Google-Attributes: gid102494,public
X-Google-Thread: 10d6db,8bcd8326e7de11ee
X-Google-Attributes: gid10d6db,public
X-Google-Thread: 10568c,8bcd8326e7de11ee
X-Google-Attributes: gid10568c,public
From: "Niko Schwarz" <igel@surf-callino.de>
Subject: Re: Beispiel f�r Funktionsdarstellung
Date: 2000/08/14
Message-ID: <8n7a0t$8035u$1@ID-42792.news.cis.dfn.de>
X-Deja-AN: 657928236
References: <3996EB6B.99D1049C@gmx.net> <966194270.589117856@localhost>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
X-Trace: fu-berlin.de 966208349 8391870 62.180.168.19 (16 [42792])
X-MSMail-Priority: Normal
Newsgroups: de.comp.lang.java,aus.computers.java,microsoft.public.de.german.java