test for windows live writer plugins
2013-04-27 16:50
627 查看
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; } /// <summary> /// make this trituple's length to 1. /// </summary> 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); } }
相关文章推荐
- Test: Windows Live Writer for Cnblogs
- Test Windows Live Writer for CSDN Blog
- Test For Windows Live Writer
- Windows Live Writer for Windows Server 2003 and Windows Server 2008
- WindStyle ExifInfo for Windows Live Writer发布
- CodePaste for Windows Live Writer 插件发布了
- Windows live Writer test blog
- Windows Live Writer Test
- test windows live writer
- Test Windows Live Writer
- Test Post From Windows Live Writer
- Windows Live Writer n its Plugins become available
- 代码着色插件 for Windows Live Writer
- Windows Live Writer Test and Some of My First Thoughts
- Windows Live Writer For Windows Server 2003
- Windows Live Writer Test
- CodePaste for Windows Live Writer 插件的使用方法
- this is test of windows live writer 2011
- windows Live writer Pictures add Test
- Windows Live Writer Test