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

Function project

utilities/olcUTIL_Geometry2D.h:2089–2092  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2087 // project a circle, onto a point, via a ray (i.e. how far along the ray can the circle travel until it contacts the point?)
2088 template<typename T1, typename T2, typename T3>
2089 inline std::optional<olc::v_2d<T1>> project(const circle<T1>& c, const olc::v_2d<T2>& p, const ray<T3>& q)
2090 {
2091 return project(c, circle<T2>(p, 0), q);
2092 }
2093
2094
2095 // project(c,c)

Callers

nothing calls this directly

Calls 15

intersectsFunction · 0.85
vectorMethod · 0.80
endMethod · 0.80
beginMethod · 0.80
topMethod · 0.80
bottomMethod · 0.80
leftMethod · 0.80
rightMethod · 0.80
push_backMethod · 0.80
mag2Method · 0.45
dotMethod · 0.45
perpMethod · 0.45

Tested by

no test coverage detected