MCPcopy Create free account
hub / github.com/benfry/processing4 / lerp

Method lerp

core/src/processing/core/PVector.java:924–929  ·  view source on GitHub ↗

Calculates linear interpolation from one vector to another vector. (Just like regular lerp() , but for vectors.) Note that there is one static version of this method, and two non-static versions. The static version, lerp(v1, v2, amt) is given the two vecto

(PVector v, float amt)

Source from the content-addressed store, hash-verified

922 * @see PApplet#lerp(float, float, float)
923 */
924 public PVector lerp(PVector v, float amt) {
925 x = PApplet.lerp(x, v.x, amt);
926 y = PApplet.lerp(y, v.y, amt);
927 z = PApplet.lerp(z, v.z, amt);
928 return this;
929 }
930
931
932 /**

Callers

nothing calls this directly

Calls 2

lerpMethod · 0.95
copyMethod · 0.45

Tested by

no test coverage detected