public boolean equals(Object o){
  if (!(o instanceof Vector2f)) {
    return false;
  }
  if (this == o) {
    return true;
  }
  Vector2f comp=(Vector2f)o;
  if (Float.compare(x,comp.x) != 0) {
    return false;
  }
  if (Float.compare(y,comp.y) != 0) {
    return false;
  }
  return true;
}

public boolean equals ( Object o ) { if ( ! ( o instanceof Vector2f ) ) { return false ; } if ( this == o ) { return true ; } Vector2f comp = ( Vector2f ) o ; if ( Float . compare ( x , comp . x ) != 0 ) { return false ; } if ( Float . compare ( y , comp . y ) != 0 ) { return false ; } return true ; }
are these two vectors the same ? they are is they both have the same x and y values .
