I think I might get it now.
But I can't see why you need the last posted code. Since the options doesn't keep x and y (coordinates) but only their product and the only condition is that it must be...
Type: Posts; User: andreas90
I think I might get it now.
But I can't see why you need the last posted code. Since the options doesn't keep x and y (coordinates) but only their product and the only condition is that it must be...
If x,y are the 2D coordinates of a Tuple, what does Math.abs(option.x-option.y) represent? If you want to calculate the distance between two Tuples (2D points) you can try calculating the euclidean...
Hello huddo!
Is this what you want your compare method to do? If so (just return a new Tuple), you don't need a method to do that. You can directly say:
Tuple x = new Tuple(1,1);
But in your...