public void ProjectTo(IVector3 where) { BuffVector3d aux = new BuffVector3d(where); aux.ProjV(new Vector3d(this.x, this.y, this.z)); this.Set(aux.X, aux.Y, aux.Z); }
public double TripleProduct(IVector3 v2, IVector3 v3) { BuffVector3d aux = new BuffVector3d(v2); aux.Cross(v3); return(this.Dot(aux)); }
public void ProjectTo(IPoint3 p1, IVector3 where) { ITuple3_Double _p1 = p1.AsTupleDouble(); BuffVector3d aux = new BuffVector3d(where); aux.ProjV(new Vector3d(_p1.X, _p1.Y, _p1.Z)); this.Set(aux.X, aux.Y, aux.Z); }
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)); }
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)); }