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

Method negate

oxide_math/commons/vector2.rs:53–55  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

51
52impl vector::Negate for Vector2 {
53 fn negate(&self) -> Self {
54 self.scale(-1.0)
55 }
56}
57
58impl vector::Length for Vector2 {

Callers

nothing calls this directly

Calls 1

scaleMethod · 0.45

Tested by

no test coverage detected