CreativeCore

CreativeCore

88M Downloads

add method on Vec2 classes is not working how was intended

SrRapero720 opened this issue ยท 1 comments

commented

Next classes/methods named add() asks for a Vec2 argument which is ignored, instead the method adds to itself the current values (equivalent to duplicate the vec values)

Vec2f:

public void add(Vec2f vec) {
this.x += x;
this.y += y;
}

Vec2d

public void add(Vec2d vec) {
this.x += x;
this.y += y;
}

commented

Alright that is quite a serious issues. Happy that you found it. Thanks a lot for letting me know!