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

Method lerp

olcPixelGameEngine.h:738–741  ·  view source on GitHub ↗

Linearly interpolate between this vector, and another vector, given normalised parameter 't'

Source from the content-addressed store, hash-verified

736
737 // Linearly interpolate between this vector, and another vector, given normalised parameter 't'
738 inline constexpr v_2d lerp(const v_2d& v1, const double t) const
739 {
740 return (*this) * (T(1.0 - t)) + (v1 * T(t));
741 }
742
743 // Compare if this vector is numerically equal to another
744 inline constexpr bool operator == (const v_2d& rhs) const

Callers 1

FillTexturedTriangleMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected