Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/atraczyk/2d-engine
/ CrossProduct
Method
CrossProduct
engine/src/vector.cpp:79–82 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
77
}
78
79
float Vector2::CrossProduct(const Vector2 &rhs) const
80
{
81
return (this->x * rhs.y) - (this->y * rhs.x);
82
}
83
84
float Vector2::Magnitude()
85
{
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected