MCPcopy Create free account
hub / github.com/cgsdev0/termsand / add

Method add

src/main.rs:108–113  ·  view source on GitHub ↗
(self, rhs: Vec2)

Source from the content-addressed store, hash-verified

106
107 fn add(self, rhs: Vec2) -> Self {
108 Self {
109 x: self.x + rhs.x,
110 y: self.y + rhs.y,
111 }
112 }
113}
114impl core::ops::Sub<Vec2> for Vec2 {
115 type Output = Self;
116

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected