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

Method dot

olcPixelGameEngine.h:708–711  ·  view source on GitHub ↗

Calculates scalar dot product between this and another vector

Source from the content-addressed store, hash-verified

706
707 // Calculates scalar dot product between this and another vector
708 inline constexpr auto dot(const v_2d& rhs) const
709 {
710 return this->x * rhs.x + this->y * rhs.y;
711 }
712
713 // Calculates 'scalar' cross product between this and another vector (useful for winding orders)
714 inline constexpr auto cross(const v_2d& rhs) const

Callers 3

reflectMethod · 0.95
UpdateMethod · 0.45
OnUserUpdateMethod · 0.45

Calls

no outgoing calls

Tested by 1

OnUserUpdateMethod · 0.36