@Override // from IPoint public float distanceSq (float px, float py) { return Points.distanceSq(x(), y(), px, py); }
@Override // from IPoint public Point add (float x, float y, Point result) { return result.set(x() + x, y() + y); }
@Override public String toString () { return Points.pointToString(x(), y()); } }
@Override // from IPoint public Point add (float x, float y) { return new Point(x() + x, y() + y); }
@Override // from IPoint public Point add (float x, float y) { return new Point(x() + x, y() + y); }
@Override // from IPoint public float distanceSq (float px, float py) { return Points.distanceSq(x(), y(), px, py); }
@Override // from IPoint public Point mult (float s, Point result) { return result.set(x() * s, y() * s); }
@Override public String toString () { return Points.pointToString(x(), y()); } }
@Override // from IPoint public float distance (float px, float py) { return Points.distance(x(), y(), px, py); }
@Override public int hashCode () { return Platform.hashCode(x()) ^ Platform.hashCode(y()); }
@Override // from IPoint public float distance (XY p) { return Points.distance(x(), y(), p.x(), p.y()); }
@Override // from interface IPoint public float direction (XY other) { return FloatMath.atan2(other.y() - y(), other.x() - x()); }
@Override // from IPoint public Point rotate (float angle, Point result) { float x = x(), y = y(); float sina = FloatMath.sin(angle), cosa = FloatMath.cos(angle); return result.set(x*cosa - y*sina, x*sina + y*cosa); }
@Override // from IPoint public Point rotate (float angle, Point result) { float x = x(), y = y(); float sina = FloatMath.sin(angle), cosa = FloatMath.cos(angle); return result.set(x*cosa - y*sina, x*sina + y*cosa); }
@Override // from IPoint public float distanceSq (XY p) { return Points.distanceSq(x(), y(), p.x(), p.y()); }
@Override // from IPoint public float distance (XY p) { return Points.distance(x(), y(), p.x(), p.y()); }
@Override // from interface IPoint public float direction (XY other) { return FloatMath.atan2(other.y() - y(), other.x() - x()); }
@Override // from IPoint public float distanceSq (XY p) { return Points.distanceSq(x(), y(), p.x(), p.y()); }