public override void Transform(IPoint3 p, IOpPoint3 pout)
        {
            ITuple3_Double   _v    = p.AsTupleDouble();
            IOpTuple3_Double _vout = pout.AsOpTupleDouble();

            _vout.Set(_v.X, _v.Y, _v.Y);
        }
        public override void Transform(IVector3 v, IOpVector3 vout)
        {
            ITuple3_Double   _v    = v.AsTupleDouble();
            IOpTuple3_Double _vout = vout.AsOpTupleDouble();

            _vout.Set(_v.X, _v.Y, _v.Z);
        }
Beispiel #3
0
        public virtual void Transform(IPoint3 p, IOpPoint3 pout)
        {
            IOpTuple3_Double _vout = pout.AsOpTupleDouble();

            Vector3d aux = this.Transform(p.ToPoint3d());

            _vout.Set(aux.X, aux.Y, aux.Z);
        }
Beispiel #4
0
        public virtual void Transform(IVector3 v, IOpVector3 vout)
        {
            IOpTuple3_Double _vout = vout.AsOpTupleDouble();

            Vector3d aux = this.Transform(v.ToVector3d());

            _vout.Set(aux.X, aux.Y, aux.Z);
        }
Beispiel #5
0
        public void Mul(IPoint3 p, IOpPoint3 pout)
        {
            ITuple3_Double   _p    = p.AsTupleDouble();
            IOpTuple3_Double _vout = pout.AsOpTupleDouble();

            _vout.Set(this.M00 * _p.X + this.M01 * _p.Y + this.M02 * _p.Z,
                      this.M10 * _p.X + this.M11 * _p.Y + this.M12 * _p.Z,
                      _p.Z);
        }
Beispiel #6
0
        public void Mul(IVector3 v, IOpVector3 vout)
        {
            ITuple3_Double   _v    = v.AsTupleDouble();
            IOpTuple3_Double _vout = vout.AsOpTupleDouble();

            _vout.Set(this.M00 * _v.X + this.M01 * _v.Y + this.M02 * _v.Z,
                      this.M10 * _v.X + this.M11 * _v.Y + this.M12 * _v.Z,
                      _v.Z);
        }
Beispiel #7
0
        public void Mul(IVector3 v, IOpVector3 vout)
        {
            ITuple3_Double   _v    = v.AsTupleDouble();
            IOpTuple3_Double _vout = vout.AsOpTupleDouble();

            Contract.Requires((this.M30 * _v.X + this.M31 * _v.Y + this.M32 * _v.Z).EpsilonEquals(0));
            _vout.Set(this.M00 * _v.X + this.M01 * _v.Y + this.M02 * _v.Z,
                      this.M10 * _v.X + this.M11 * _v.Y + this.M12 * _v.Z,
                      this.M20 * _v.X + this.M21 * _v.Y + this.M22 * _v.Z);
        }
Beispiel #8
0
        public void Mul(IPoint3 p, IOpPoint3 pout)
        {
            ITuple3_Double   _p    = p.AsTupleDouble();
            IOpTuple3_Double _vout = pout.AsOpTupleDouble();

            double d = this.M30 * _p.X + this.M31 * _p.Y + this.M32 * _p.Z + this.M33;

            _vout.Set((this.M00 * _p.X + this.M01 * _p.Y + this.M02 * _p.Z + this.M03) / d,
                      (this.M10 * _p.X + this.M11 * _p.Y + this.M12 * _p.Z + this.M13) / d,
                      (this.M20 * _p.X + this.M21 * _p.Y + this.M22 * _p.Z + this.M23) / d);
        }
Beispiel #9
0
        public void Get(IOpTuple3 setter)
        {
            IOpTuple3_Double _setter = setter.AsOpTupleDouble();

            _setter.Set(this.X, this.Y, this.Z);
        }