MCPcopy Create free account
hub / github.com/VCVRack/Rack / neg

Method neg

include/math.hpp:206–208  ·  view source on GitHub ↗

Negates the vector. Equivalent to a reflection across the `y = -x` line. */

Source from the content-addressed store, hash-verified

204 Equivalent to a reflection across the `y = -x` line.
205 */
206 Vec neg() const {
207 return Vec(-x, -y);
208 }
209 Vec plus(Vec b) const {
210 return Vec(x + b.x, y + b.y);
211 }

Callers 5

onChangeMethod · 0.80
stepMethod · 0.80
stepMethod · 0.80
operator-Function · 0.80
rotateMethod · 0.80

Calls 1

VecClass · 0.85

Tested by

no test coverage detected