MCPcopy Create free account
hub / github.com/OxideEngine/Oxide / add

Method add

oxide_math/commons/vector2.rs:98–103  ·  view source on GitHub ↗
(self, _rhs: Vector2)

Source from the content-addressed store, hash-verified

96 type Output = Vector2;
97
98 fn add(self, _rhs: Vector2) -> Vector2 {
99 Vector2 {
100 x: self.x + _rhs.x,
101 y: self.y + _rhs.y,
102 }
103 }
104}
105
106impl ops::Sub<Vector2> for Vector2 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected