public double InvLerp(IVector4 v2, IVector4 vLerp) { BuffVector4d v12 = new BuffVector4d(v2); v12.Sub(this); BuffVector4d v1Lerp = new BuffVector4d(vLerp); v1Lerp.Sub(this); return(v12.Proj(v1Lerp)); }
public double InvLerp(IPoint4 p2, IPoint4 pLerp) { BuffVector4d v12 = new BuffVector4d(); v12.Sub(p2, this); BuffVector4d v1Lerp = new BuffVector4d(); v1Lerp.Sub(pLerp, this); return(v12.Proj(v1Lerp)); }