Пример #1
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;
        }
Пример #2
0
        public void Translate(int x, int y)
        {
            Matrix3 <double> mat = Trans2D.GetTranslationMatrix(x, y);

            Start = mat * Start;
            End   = mat * End;
        }