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

Method vector

utilities/olcUTIL_Geometry2D.h:570–573  ·  view source on GitHub ↗

Get vector pointing from start to end

Source from the content-addressed store, hash-verified

568
569 // Get vector pointing from start to end
570 inline constexpr olc::v_2d<T> vector() const
571 {
572 return (end - start);
573 }
574
575 // Get length of line
576 inline constexpr T length()

Callers 6

closestFunction · 0.80
containsFunction · 0.80
intersectsFunction · 0.80
envelope_cFunction · 0.80
projectFunction · 0.80
collisionFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected