Example #1
0
 public void vecTimesM(Vec r)
 {
     this.x *= r.x;
     this.y *= r.y;
     this.z *= r.z;
 }
Example #2
0
 public double dot(Vec r)
 {
     return(this.x * r.x + this.y * r.y + this.z * r.z);
 }
Example #3
0
 public void minusM(Vec r)
 {
     this.x -= r.x;
     this.y -= r.y;
     this.z -= r.z;
 }
Example #4
0
 public Vec minus(Vec r)
 {
     return(new Vec(x - r.x, y - r.y, z - r.z));
 }
Example #5
0
 public void plusM(Vec r)
 {
     x += r.x;
     y += r.y;
     z += r.z;
 }
Example #6
0
 public Vec plus(Vec r)
 {
     return(new Vec(x + r.x, y + r.y, z + r.z));
 }
Example #7
0
 public void minus(Vec r, ref Vec outp)
 {
     outp.x = x - r.x;
     outp.y = y - r.y;
     outp.z = z - r.z;
 }