We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19dcde8 commit 9c37568Copy full SHA for 9c37568
1 file changed
src/main/java/org/comroid/api/data/Vector.java
@@ -255,6 +255,10 @@ default N4 as4() {
255
return (N4) this;
256
}
257
258
+ default Vector negate() {
259
+ return map(x -> -x);
260
+ }
261
+
262
private static UnsupportedOperationException outOfBounds(int n) {
263
return new UnsupportedOperationException("Unsupported Vector dimension: " + n);
264
0 commit comments