C# (CSharp) IonVector - 2 examples found. These are the top rated real world C# (CSharp) examples of IonVector extracted from open source projects. You can rate examples to help us improve the quality of examples.
public static int DistanceSquared(IonVector a, IonVector b)
{
int dx = b.X - a.X;
int dy = b.Y - a.Y;
int dz = b.Z - a.Z;
return(dx * dx + dy * dy + dz * dz);
}