Skip to content
Snippets Groups Projects
Commit 08549049 authored by Vojtech Moravec's avatar Vojtech Moravec
Browse files

Add multiplyTogether util function to V2i.

parent 91e4ce03
Branches
No related tags found
No related merge requests found
...@@ -20,4 +20,8 @@ public final class V2i extends V2<Integer> { ...@@ -20,4 +20,8 @@ public final class V2i extends V2<Integer> {
public final V3i toV3i() { public final V3i toV3i() {
return new V3i(getX(), getY(), 1); return new V3i(getX(), getY(), 1);
} }
public final int multiplyTogether() {
return getX() * getY();
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment