Ejemplo n.º 1
0
        public void Scale(double xScale, double yScale)
        {
            Matrix3 <double> mat = Trans2D.GetScalingMatrix(xScale, yScale);

            Start = mat * Start;
            End   = mat * End;
        }
Ejemplo n.º 2
0
        public void Transform(double xScale, double yScale, double theta, int xTranslation, int yTranslation)
        {
            Matrix3 <double> combined = Trans2D.GetTranslationMatrix(xTranslation, yTranslation) * Trans2D.GetRotationMatrix(theta) * Trans2D.GetScalingMatrix(xScale, yScale);

            Start = combined * Start;
            End   = combined * End;
        }