Exemple #1
0
 public float Dot(Vec3 right)
 {
     return this.x * right.x + this.y * right.y + this.z * right.z;
 }
Exemple #2
0
 public static Vec3 Negative(Vec3 input)
 {
     return new Vec3(-input.x,-input.y,-input.z);
 }
Exemple #3
0
 public Vec3 Cross(Vec3 that)
 {
     return new Vec3(this.y * that.z - this.z * that.y,
         this.z * that.x - this.x * that.z,
         this.x * that.y - this.y * that.x);
 }
Exemple #4
0
 public Vec3(Vec3 init)
     : this(init.x, init.y, init.z)
 {
 }