Пример #1
0
        public override void Transform(IPoint2 p, IOpPoint2 pout)
        {
            ITuple2_Double   _v    = p.AsTupleDouble();
            IOpTuple2_Double _vout = pout.AsOpTupleDouble();

            _vout.Set(_v.X, _v.Y);
        }
Пример #2
0
        public void Mul(IPoint2 p, IOpPoint2 pout)
        {
            ITuple2_Double   _v    = p.AsTupleDouble();
            IOpTuple2_Double _vout = pout.AsOpTupleDouble();

            _vout.Set(this.M00 * _v.X + this.M01 * _v.Y + this.M02,
                      this.M10 * _v.X + this.M11 * _v.Y + this.M12);
        }
Пример #3
0
        public virtual void Transform(IPoint2 p, IOpPoint2 pout)
        {
            IOpTuple2_Double _vout = pout.AsOpTupleDouble();

            Vector2d aux = this.Transform(p.ToPoint2d());

            _vout.Set(aux.X, aux.Y);
        }