operator ~ method
Negate all values
This is the same as multiplying the vector with -1.
Implementation
Vector operator ~() {
return map((x) => -x);
}
Negate all values
This is the same as multiplying the vector with -1.
Vector operator ~() {
return map((x) => -x);
}