MCPcopy
hub / github.com/yeemachine/kalidokit / lerp

Method lerp

src/utils/vector.ts:122–124  ·  view source on GitHub ↗

* Lerp between this vector and another vector. * @param {Vector} v: Vector to lerp to * @param {number} fraction: Fraction to lerp * @returns {Vector}

(v: Vector, fraction: number)

Source from the content-addressed store, hash-verified

120 * @returns {Vector}
121 */
122 lerp(v: Vector, fraction: number) {
123 return v.subtract(this).multiply(fraction).add(this);
124 }
125 /**
126 * Returns the unit vector of this vector.
127 * @returns {Vector} Unit vector

Callers 8

createEulerPlaneFunction · 0.95
pupilPosFunction · 0.95
rigPositionFunction · 0.80
calcHeadFunction · 0.80
stabilizeBlinkFunction · 0.80
calcArmsFunction · 0.80
calcHipsFunction · 0.80
rigPositionFunction · 0.80

Calls 3

addMethod · 0.80
subtractMethod · 0.80
multiplyMethod · 0.45

Tested by

no test coverage detected