Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
52
impl vector::Negate for Vector2 {
53
fn negate(&self) -> Self {
54
self.scale(-1.0)
55
}
56
}
57
58
impl vector::Length for Vector2 {
Callers
nothing calls this directly
Calls
1
scale
Method · 0.45
Tested by
no test coverage detected