Fitxer:Hypocycloid-4.svg

De testwiki
Salta a la navegació Salta a la cerca
Fitxer original (fitxer SVG, nominalment 340 × 340 píxels, mida del fitxer: 4 Ko)

Aquest fitxer prové de Wikimedia Commons i pot ser usat per altres projectes. La descripció de la seva pàgina de descripció es mostra a continuació.

Resum

English: Hypocycloid with
 Aquesta imatge vectorial ha estat creada amb Inkscape .


c#ban a leprogramozása(forráskód):


using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Drawing.Drawing2D; using System.Text; using System.Windows.Forms;

namespace WindowsApplication1 {

   public partial class Form1 : Form
   {
       Graphics mygr;
       Pen mypen;
       public Form1()
       {
           
           InitializeComponent();
       }
       private void Form1_Paint(object sender, PaintEventArgs e)
       {
           mygr = CreateGraphics();
           mypen = new Pen(Color.Red, 3);
       }
       private void button1_Click(object sender, EventArgs e)
       {
           
           kor(100);
       }
      private PointF F(double u,int R)
      {
          PointF SP = new PointF();
          SP.X=(float)(R*Math.Pow(Math.Cos(u),3));
          SP.Y = (float)(R *Math.Pow(Math.Sin(u),3));
              return (SP);
      }
       private void kor(int R)
       {
           int db = 50;
           double a = 0;
           double b = 2 * Math.PI;
           double h = Math.Abs(b - a)/db;
           double u = a;
           PointF P0, P1;
           P0=new PointF();
           P1=new PointF();;
           P0 = F(u,R);
           mygr.TranslateTransform(100, 100);
          
           for (int i = 2; i <= db+1; i++)
           {
               
              
               u = u + h;
               P1 = F(u, R);
                mygr.DrawLine(mypen,P0,P1);
                P0 = P1;
               
           }
       }
   }

}

Llicència

Public domain Jo, el titular del copyright d'aquesta obra, l'allibero al domini públic. Això s'aplica a tot el món.
En alguns països això pot no ser legalment possible, en tal cas:
Jo faig concessió a tothom del dret d'usar aquesta obra per a qualsevol propòsit, sense cap condició llevat d'aquelles requerides per la llei.

Llegendes

Afegeix una explicació d&#039;una línia del que representa aquest fitxer

Elements representats en aquest fitxer

representa l'entitat

Historial del fitxer

Cliqueu una data/hora per veure el fitxer tal com era aleshores.

Data/horaMiniaturaDimensionsUsuari/aComentari
actual19:40, 10 març 2007Miniatura per a la versió del 19:40, 10 març 2007340 × 340 (4 Ko)wikimediacommons>Joelholdsworth~commonswiki== Summary == {{en|Hypocycloid with <math>k=4</math>}} {{Created with Inkscape}} == Licensing == {{PD-self}}

La pàgina següent utilitza aquest fitxer: