Implement Vector interfaces

This is a problem I hadn't noticed, that will need to be fixed using floor.

> On Sep 11, 2014, at 11:49 AM, Raphfrk <notifications@github.com> wrote:
> 
> In src/main/java/org/spongepowered/mod/math/SpongeVector2d.java:
> 
> > +    }
> > +
> > +    @Override
> > +    public Vector2i toInt() {
> > +        return new SpongeVector2i((int) Math.round(x), (int) Math.round(y));
> > +    }
> > +
> > +    @Override
> > +    public Vector2f toFloat() {
> > +        return new SpongeVector2f((float) x, (float) y);
> > +    }
> > +
> > +    @Override
> > +    public int compareTo(Vector2d v) {
> > +        checkNotNull(v);
> > +        //TODO: compare what?
> Is that implementation not a little risky.
> 
> It is the different between the squared lengths converted to an integer. Vectors with a length of more than 100,000 would begin to cause wrap around due to squaring.
> 
> On the other side, vectors with sub-integer lengths would all be considered the same length.
> 
> —
> Reply to this email directly or view it on GitHub.