MCPcopy Create free account
hub / github.com/atraczyk/2d-engine / DotProduct

Method DotProduct

engine/src/vector.cpp:96–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96float Vector2::DotProduct(const Vector2 &rhs) const
97{
98 return (this->x * rhs.x) + (this->y * rhs.y);
99}
100
101//Vector3
102Vector3::Vector3(float _x, float _y, float _z)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected