Пример #1
0
        public void ProjectTo(IVector4 where)
        {
            BuffVector4d aux = new BuffVector4d(where);

            aux.ProjV(new Vector4d(this.x, this.y, this.z, this.w));
            this.Set(aux.X, aux.Y, aux.Z, aux.W);
        }
Пример #2
0
        public void ProjectTo(IPoint4 p1, IVector4 where)
        {
            ITuple4_Double _p1 = p1.AsTupleDouble();
            BuffVector4d   aux = new BuffVector4d(where);

            aux.ProjV(new Vector4d(_p1.X, _p1.Y, _p1.Z, _p1.W));
            this.Set(aux.X, aux.Y, aux.Z, aux.W);
        }
Пример #3
0
        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));
        }
Пример #4
0
        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));
        }