Exemple #1
0
 public Vector GetDirectionTo(Vector v2)
 {
     return new Vector
     {
         x = v2.x - this.x,
         y = v2.y - this.y,
         z = v2.z - this.z
     };
 }
Exemple #2
0
 public Vector GetDestination(Vector direction, double multiplier)
 {
     return new Vector
     {
         x = this.x + multiplier * direction.x,
         y = this.y + multiplier * direction.y,
         z = this.z + multiplier * direction.z
     };
 }