Exemple #1
0
        //-------------------------------------------------------------------
        public Affine to_affine()
        {
            Affine mtx = Affine.NewTranslation(-_wx1, -_wy1);

            mtx *= Affine.NewScaling(_kx, _ky);
            mtx *= Affine.NewTranslation(_dx1, _dy1);
            return(mtx);
        }
        //-------------------------------------------------------------------
        public Affine to_affine()
        {
            Affine mtx = Affine.NewTranslation(-m_wx1, -m_wy1);

            mtx *= Affine.NewScaling(m_kx, m_ky);
            mtx *= Affine.NewTranslation(m_dx1, m_dy1);
            return(mtx);
        }
Exemple #3
0
 //-------------------------------------------------------------------
 public Affine to_affine_scale_only() => Affine.NewScaling(_kx, _ky);
Exemple #4
0
 Perspective scale(double x, double y)
 {
     multiply(Affine.NewScaling(x, y));
     return(this);
 }
Exemple #5
0
 Perspective scale(double s)
 {
     multiply(Affine.NewScaling(s));
     return(this);
 }
 //-------------------------------------------------------------------
 public Affine to_affine_scale_only()
 {
     return(Affine.NewScaling(m_kx, m_ky));
 }