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

本文共 3444 字,大约阅读时间需要 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);        }    }
你可能感兴趣的文章
拦截器实现文件过滤
查看>>
App-V 4.6 SP1系列之一安装
查看>>
FreeRADIUS 负载均衡和高可用
查看>>
ansible-playbook批量部署zabbix
查看>>
静默安装Oracle数据库10g篇
查看>>
2017软考信息系统项目管理师软考热点
查看>>
十个生成模型(GANs)的最佳案例和原理 | 代码+论文
查看>>
Json拼接字符串必须用双引号
查看>>
闭包--循序学习
查看>>
项目实战之集成邮件开发
查看>>
java泛型操作复习,以及讲解在android中使用的场景
查看>>
解决C3P0在Linux下Failed to get local InetAddress for VMID问题
查看>>
1531 山峰 【栈的应用】
查看>>
巧用美女照做微信吸粉,你会做吗?
查看>>
wcf学习总结《上》
查看>>
ERROR (ClientException)
查看>>
WYSIWYG 网页在线编辑器比较表
查看>>
vss团队开发工具使用(个人学习心得)
查看>>
Load Balance 产品横向比较
查看>>
Java代理程序实现web方式管理邮件组成员
查看>>