Beispiel #1
0
 public double Dot(Vector2i other)
 {
     return(X * other.X + Y * other.Y);
 }
Beispiel #2
0
 public double EuclideanDistance(Vector2i other)
 {
     return((this - other).Length);
 }
Beispiel #3
0
        public double ManhattanDistance(Vector2i other)
        {
            var diff = this - other;

            return(Math.Abs(diff.X) + Math.Abs(diff.Y));
        }
 protected CapturableObject(Vector2i location) : base(location)
 {
     Owner = null;
 }