/// <summary> /// Finds the distance between this entity and another entity on a 3D surface. /// </summary> /// <param name="location1">this</param> /// <param name="location2">Entity.</param> /// <returns>Distance</returns> public static double Distance3D(this ILocation3D location1, ILocation3D location2) { return(Distance3D(location1.X, location1.Y, location1.Z, location2.X, location2.Y, location2.Z)); }
/// <summary> /// Finds the distance between this entity and a point on a 3D surface. /// </summary> /// <param name="location1">this</param> /// <param name="x2">The point on the x-axis.</param> /// <param name="y2">The point on the y-axis.</param> /// <param name="z2">The point on the z-axis.</param> /// <returns></returns> public static double Distance3D(this ILocation3D location1, float x2, float y2, float z2) { return(Distance3D(location1.X, location1.Y, location1.Z, x2, y2, z2)); }
/// <summary> /// Finds the distance between this entity and another entity on a 3D surface. /// </summary> /// <param name="location1">this</param> /// <param name="location2">Entity.</param> /// <returns>Distance</returns> public static double Distance3D(this ILocation3D location1, ILocation3D location2) { return Distance3D(location1.X, location1.Y, location1.Z, location2.X, location2.Y, location2.Z); }