MCPcopy Create free account
hub / github.com/OneLoneCoder/olcPixelGameEngine / dot

Method dot

utilities/olcUTIL_Geometry2D.h:292–295  ·  view source on GitHub ↗

Calculates scalar dot product between this and another vector

Source from the content-addressed store, hash-verified

290
291 // Calculates scalar dot product between this and another vector
292 inline constexpr auto dot(const v_2d& rhs) const
293 {
294 return this->x * rhs.x + this->y * rhs.y;
295 }
296
297 // Calculates 'scalar' cross product between this and another vector (useful for winding orders)
298 inline constexpr auto cross(const v_2d& rhs) const

Callers 5

reflectMethod · 0.95
closestFunction · 0.45
containsFunction · 0.45
intersectsFunction · 0.45
projectFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected