• 大小: 52KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-28
  • 语言: C#
  • 标签: C#、  

资源简介

基于C#的2D太阳、地球、月亮运动轨迹模拟实现 详细情况见博客http://blog.csdn.net/small_fish__/article/details/7391518

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Drawing.Drawing2D;

namespace SunEarthMoon
{
    class Earth :Start
    {
         public Earth()
        {
        
        }
         public Earth(Point center Point movingCenter int radius int movingRadius Graphics graphics Color bgColor) 
        {
            this.center = center;
            this.movingCenter = movingCenter;
            this.radius = radius;
            this.movingRadius = movingRadius;
            this.graphics = graphics;
            this.bgcolor = bgColor;
            
        }

        public override void draw() 
        {
            graphics.FillPie(new SolidBrush(bgcolor) center.X-radius center.Y-radius 2 * radius 2 * radius 0 360);
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      12800  2012-03-25 07:41  SunEarthMoon\SunEarthMoon\bin\Debug\SunEarthMoon.exe

     文件      40448  2012-03-25 07:41  SunEarthMoon\SunEarthMoon\bin\Debug\SunEarthMoon.pdb

     文件      11600  2012-03-25 08:18  SunEarthMoon\SunEarthMoon\bin\Debug\SunEarthMoon.vshost.exe

     文件        490  2009-08-31 00:40  SunEarthMoon\SunEarthMoon\bin\Debug\SunEarthMoon.vshost.exe.manifest

     文件        858  2012-03-25 01:40  SunEarthMoon\SunEarthMoon\Earth.cs

     文件       1914  2012-03-25 07:41  SunEarthMoon\SunEarthMoon\Form1.cs

     文件       6348  2012-03-25 07:36  SunEarthMoon\SunEarthMoon\Form1.Designer.cs

     文件       5817  2012-03-25 07:36  SunEarthMoon\SunEarthMoon\Form1.resx

     文件        871  2012-03-24 22:36  SunEarthMoon\SunEarthMoon\Moon.cs

     文件       4440  2012-03-25 00:54  SunEarthMoon\SunEarthMoon\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       6232  2012-03-25 08:18  SunEarthMoon\SunEarthMoon\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件        224  2012-03-25 07:36  SunEarthMoon\SunEarthMoon\obj\x86\Debug\GenerateResource.read.1.tlog

     文件        566  2012-03-25 07:36  SunEarthMoon\SunEarthMoon\obj\x86\Debug\GenerateResource.write.1.tlog

     文件       7897  2012-03-25 07:09  SunEarthMoon\SunEarthMoon\obj\x86\Debug\ResolveAssemblyReference.cache

     文件        763  2012-03-25 08:18  SunEarthMoon\SunEarthMoon\obj\x86\Debug\SunEarthMoon.csproj.FileListAbsolute.txt

     文件      12800  2012-03-25 07:41  SunEarthMoon\SunEarthMoon\obj\x86\Debug\SunEarthMoon.exe

     文件        180  2012-03-25 07:36  SunEarthMoon\SunEarthMoon\obj\x86\Debug\SunEarthMoon.Form1.resources

     文件      40448  2012-03-25 07:41  SunEarthMoon\SunEarthMoon\obj\x86\Debug\SunEarthMoon.pdb

     文件        180  2012-03-24 22:18  SunEarthMoon\SunEarthMoon\obj\x86\Debug\SunEarthMoon.Properties.Resources.resources

     文件        493  2012-03-24 19:52  SunEarthMoon\SunEarthMoon\Program.cs

     文件       1356  2012-03-24 19:52  SunEarthMoon\SunEarthMoon\Properties\AssemblyInfo.cs

     文件       2874  2012-03-24 19:52  SunEarthMoon\SunEarthMoon\Properties\Resources.Designer.cs

     文件       5612  2012-03-24 19:52  SunEarthMoon\SunEarthMoon\Properties\Resources.resx

     文件       1097  2012-03-24 19:52  SunEarthMoon\SunEarthMoon\Properties\Settings.Designer.cs

     文件        249  2012-03-24 19:52  SunEarthMoon\SunEarthMoon\Properties\Settings.settings

     文件       2584  2012-03-25 07:18  SunEarthMoon\SunEarthMoon\Space.cs

     文件        640  2012-03-25 01:27  SunEarthMoon\SunEarthMoon\Start.cs

     文件        853  2012-03-24 22:35  SunEarthMoon\SunEarthMoon\Sun.cs

     文件       3860  2012-03-24 21:33  SunEarthMoon\SunEarthMoon\SunEarthMoon.csproj

     文件        878  2012-03-24 19:52  SunEarthMoon\SunEarthMoon.sln

............此处省略13个文件信息

评论

共有 条评论