博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
test for windows live writer plugins
阅读量:4583 次
发布时间:2019-06-09

本文共 3523 字,大约阅读时间需要 11 分钟。

0. Code Snippet

1: internal struct TriTuple
2: {
3:     public double X;
4:     public double Y;
5:     public double Z;
6:     public TriTuple(double x, double y, double z)
7:     {
8:         // TODO: Complete member initialization
9:         this.X = x;
10:         this.Y = y;
11:         this.Z = z;
12:     }
13: 
14:     public override string ToString()
15:     {
16:         return string.Format("{0:f2},{1:f2},{2:f2}", X, Y, Z);
17:     }
18: }

1. Insert Code

1:      internal struct TriTuple
2:      {
3:          public double X;
4:          public double Y;
5:          public double Z;
6:          public TriTuple(double x, double y, double z)
7:          {
8:              // TODO: Complete member initialization
9:              this.X = x;
10:              this.Y = y;
11:              this.Z = z;
12:          }
13:   
14:          public override string ToString()
15:          {
16:              return string.Format("{0:f2},{1:f2},{2:f2}", X, Y, Z);
17:          }
18:      }

2. Picasa

Picasa Content

3. Polaroid Picture…

4. Source Code

1:     internal struct TriTuple
2:     {
3:         public double X;
4:         public double Y;
5:         public double Z;
6:         public TriTuple(double x, double y, double z)
7:         {
8:             // TODO: Complete member initialization
9:             this.X = x;
10:             this.Y = y;
11:             this.Z = z;
12:         }
13:
14:         public override string ToString()
15:         {
16:             return string.Format("{0:f2},{1:f2},{2:f2}", X, Y, Z);
17:         }
18:     }
19:

5. VSPaste

internal struct TriTuple
{    public double X;    public double Y;    public double Z;    public TriTuple(double x, double y, double z)    {        // TODO: Complete member initialization        this.X = x;        this.Y = y;        this.Z = z;    }    public override string ToString()    {        return string.Format("{0:f2},{1:f2},{2:f2}", X, Y, Z);    }}

6. 插件代码块

Trituple    internal struct TriTuple : ICloneable    {        public double X;        public double Y;        public double Z;        public TriTuple(double x, double y, double z)        {            // TODO: Complete member initialization            this.X = x;            this.Y = y;            this.Z = z;        }        public override string ToString()        {            return string.Format("{0:f2},{1:f2},{2:f2}", X, Y, Z);        }        public void Add(TriTuple diff)        {            this.X = this.X + diff.X;            this.Y = this.Y + diff.Y;            this.Z = this.Z + diff.Z;        }        ///         /// make this trituple's length to 1.        ///         public void Normalize()        {            var length = Math.Sqrt(this.X * this.X + this.Y * this.Y + this.Z * this.Z);            this.X = this.X / length;            this.Y = this.Y / length;            this.Z = this.Z / length;        }        public object Clone()        {            var result = new TriTuple(this.X, this.Y, this.Z);            return result;        }    }

 

7. 插入代码

internal struct TriTuple    {        public double X;        public double Y;        public double Z;        public TriTuple(double x, double y, double z)        {            // TODO: Complete member initialization            this.X = x;            this.Y = y;            this.Z = z;        }        public override string ToString()        {            return string.Format("{0:f2},{1:f2},{2:f2}", X, Y, Z);        }    }

转载于:https://www.cnblogs.com/bitzhuwei/archive/2013/04/27/test_for_plugins.html

你可能感兴趣的文章
[bzoj3036]绿豆蛙的归宿
查看>>
[洛谷P5057][CQOI2006]简单题
查看>>
多线程同步的几种方法
查看>>
数据结构-冒泡排序
查看>>
关于程序状态字寄存器PSW(Program Status Word)与多核多线程
查看>>
mybatis的缓存
查看>>
java 缓冲流 Buffer
查看>>
7月23号=》261页-265页
查看>>
软考知识点梳理--综合布线
查看>>
Mysql5.6主从热备配置
查看>>
VS2010DebugView捕捉
查看>>
mfix中更改time dependent VTK filename的最大时间步数的容量
查看>>
Windows7安装 docker-compose的过程
查看>>
关于nodeJS多线程的支持,目前看来无法实现,讲解v8的一些东西
查看>>
php递归创建文件夹的两种方法
查看>>
6.新增事件
查看>>
|洛谷|二分|P1182 数列分段Section II
查看>>
少儿编程Scratch第四讲:射击游戏的制作,克隆的奥秘
查看>>
Oracle学习第七课-表连接及其应用
查看>>
Python基础篇【第十三篇】:面向对象
查看>>