non-scalar multiply in vec2i
This commit is contained in:
parent
4ab459d515
commit
7ace9c3409
|
@ -43,6 +43,9 @@ public final class Vec2i {
|
|||
public static Vec2i mul(Vec2i a, int b) {
|
||||
return new Vec2i(a.x * b, a.y * b);
|
||||
}
|
||||
public static Vec2i mul(Vec2i a, Vec2i b) {
|
||||
return new Vec2i(a.x * b.x, a.y * b.y);
|
||||
}
|
||||
|
||||
public static Vec2i div(Vec2i a, int b) {
|
||||
return new Vec2i(a.x / b, a.y / b);
|
||||
|
|
Loading…
Reference in New Issue