Esempio n. 1
0
 /// <summary>
 /// Calculate the distance between current vector and v
 /// </summary>
 /// <param name="v">vector</param>
 public double Distance(Vec3f v)
 {
     return(System.Math.Sqrt((x - v.x) * (x - v.x) + (y - v.y) * (y - v.y) + (z - v.z) * (z - v.z)));
 }
Esempio n. 2
0
 public Vec3f(Vec3f v)
 {
     this.x = v.x;
     this.y = v.y;
     this.z = v.z;
 }