예제 #1
0
파일: Viewport.cs 프로젝트: djlw78/Mosa
        //-------------------------------------------------------------------
        public Affine ToAffine()
        {
            Affine mtx = Affine.NewTranslation(-m_wx1, -m_wy1);

            mtx *= Affine.NewScaling(m_kx, m_ky);
            mtx *= Affine.NewTranslation(m_dx1, m_dy1);
            return(mtx);
        }
예제 #2
0
 public Perspective Scale(double x, double y)
 {
     Multiply(Affine.NewScaling(x, y));
     return(this);
 }
예제 #3
0
 public Perspective Scale(double s)
 {
     Multiply(Affine.NewScaling(s));
     return(this);
 }
예제 #4
0
파일: Viewport.cs 프로젝트: djlw78/Mosa
 //-------------------------------------------------------------------
 public Affine ToAffineScaleOnly()
 {
     return(Affine.NewScaling(m_kx, m_ky));
 }