Search:

Type: Posts; User: andreas90

Search: Search took 0.08 seconds.

  1. Replies
    9
    Views
    1,609

    Re: class function

    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...
  2. Replies
    9
    Views
    1,609

    Re: class function

    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...
  3. Replies
    9
    Views
    1,609

    Re: class function

    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...
Results 1 to 3 of 3