资 源 简 介
这是 2 自由机器人手臂运动范围检查。公共类 TDraw {私人 PictureBox picbox = null ; 私人位图位图 = null ; 私人图形 = null ; 私人双 xmin,xmax,ymin,ymax ; 논리좌표최소최대 / / 논리좌표를좌표로public 浮球的 xpixelpos (双 xpo) {返回 Convert.ToSingle (picbox。ClientSize.Width/(xmax-xmin) * (xpos-xmin)) ;}公众持股量 ypixelpos (双 ypos) {返回 Convert.ToSingle(-picbox.ClientSize.Height / (ymax-ymin) * (ypos-ymin) + picbox。ClientSize.Height) ;}公众持股量 xpixelsize(double xsize) {返回 Convert.ToSingle (picbox。ClientSize.Width * xsize/(xmax-xmin)) ;}公众持股量 ypixelsize(double ysize) {返回 Convert.ToSingle (picbox。ClientSize.Height * ysize/(ymax-ymin)) ;}pixel좌표를논리좌표로public 双 xposD (浮法 xpixel) {返回 Convert.ToDouble ((xmax-xmin) / picbox。ClientSize.Width * xpixel + xmin);}公共双 yposD (浮法 ypixel) {返回 Convert.ToDouble ((ymax-ymin) / (-picbox。ClientSize.Height) * (ypixel-picbox。ClientSize.Height) + ymin) ;}公共双 xsizeD (浮法 xpixelsize) {返回 Convert.ToDouble (xpixelsize/picbox。ClientSize.Width * (xmax-xmin)) ;}公共双 ysizeD (浮法 ypixelsize) {返回 Convert.ToDouble (ypixelsize/picbox。Clie
文 件 列 表
TwoLink
bin
Debug
Form1.cs
Form1.Designer.cs
Form1.resx
obj
x86
Program.cs
Properties
AssemblyInfo.cs
TDraw.cs
TRobot.cs
TwoLink.csproj
bin
Debug
TwoLink.exe
TwoLink.pdb
TwoLink.vshost.exe
TwoLink.vshost.exe.manifest
DesignTimeResolveAssemblyReferences.cache
DesignTimeResolveAssemblyReferencesInput.cache
TwoLink.csproj.FileListAbsolute.txt
TwoLink.csproj.GenerateResource.Cache
TwoLink.csprojResolveAssemblyReference.cache
TwoLink.exe
TwoLink.Form1.resources
TwoLink.pdb
TwoLink.Properties.Resources.resources
TwoLink.sln
TwoLink.suo
TwoLink.v12.suo