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

Method upoint

utilities/olcUTIL_Geometry2D.h:596–599  ·  view source on GitHub ↗

Given a unit distance, get point along line

Source from the content-addressed store, hash-verified

594
595 // Given a unit distance, get point along line
596 inline constexpr olc::v_2d<T> upoint(const T& distance) const
597 {
598 return start + vector() * distance;
599 }
600
601 // Return which side of the line does a point lie
602 inline constexpr int32_t side(const olc::v_2d<T>& point) const

Callers 1

envelope_cFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected