Beispiel #1
0
        public double InvLerp(IPoint3 p2, IPoint3 pLerp)
        {
            BuffVector3d v12 = new BuffVector3d();

            v12.Sub(p2, this);
            BuffVector3d v1Lerp = new BuffVector3d();

            v1Lerp.Sub(pLerp, this);
            return(v12.Proj(v1Lerp));
        }
Beispiel #2
0
        public double InvLerp(IVector3 v2, IVector3 vLerp)
        {
            BuffVector3d v12 = new BuffVector3d(v2);

            v12.Sub(this);
            BuffVector3d v1Lerp = new BuffVector3d(vLerp);

            v1Lerp.Sub(this);
            return(v12.Proj(v1Lerp));
        }