Пример #1
0
		private static Matrix parseTransformSkewX(String pString) {
			var start = SVGConstants.ATTRIBUTE_TRANSFORM_VALUE_SKEW_X.Length + 1;
			var svgNumberParserFloatResult = pString.Substring(start, pString.IndexOf(')') - start).ParseFloats ();
			SVGTransformParser.assertNumberParserResultNumberCountMinimum(svgNumberParserFloatResult, 1);

			float angle = svgNumberParserFloatResult[0];
			Matrix matrix = new Matrix();
			matrix.PostSkew((float) Math.Tan(angle), 0);
			return matrix;
		}