@JRubyMethod(name = "==", required = 1)
@Override
public IRubyObject op_equal(ThreadContext context, IRubyObject other) {
Vec2 v = (other instanceof Vec2) ? (Vec2) other.toJava(Vec2.class) : null;
RubyBoolean result = (v == null) ? RubyBoolean.newBoolean(context.getRuntime(), false)
: (Math.abs(jx - v.jx) > Vec2.EPSILON)
? RubyBoolean.newBoolean(context.getRuntime(), false)
: (Math.abs(jy - v.jy) > Vec2.EPSILON)
? RubyBoolean.newBoolean(context.getRuntime(), false)
: RubyBoolean.newBoolean(context.getRuntime(), true);