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

Method line

utilities/olcUTIL_Geometry2D.h:564–567  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

562 olc::v_2d<T> end;
563
564 inline line(const olc::v_2d<T>& s = { T(0), T(0) },
565 const olc::v_2d<T>& e = { T(0), T(0) })
566 : start(s), end(e)
567 { }
568
569 // Get vector pointing from start to end
570 inline constexpr olc::v_2d<T> vector() const

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected