MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / dot

Method dot

testbed/opengl-framework/src/maths/Vector3.h:159–161  ·  view source on GitHub ↗

Dot product operator

Source from the content-addressed store, hash-verified

157
158 // Dot product operator
159 float dot(const Vector3 &v) const{
160 return x * v.x + y * v.y + z * v.z;
161 }
162
163 // Normalize the vector and return it
164 Vector3 normalize() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected