public void Scale(double xScale, double yScale) { Matrix3 <double> mat = Trans2D.GetScalingMatrix(xScale, yScale); Start = mat * Start; End = mat * End; }
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; }