MCPcopy Create free account
hub / github.com/MapServer/MapServer / parse_matrix

Method parse_matrix

renderers/agg/src/agg_svg_parser.cpp:804–815  ·  view source on GitHub ↗

-------------------------------------------------------------

Source from the content-addressed store, hash-verified

802
803 //-------------------------------------------------------------
804 unsigned parser::parse_matrix(const char* str)
805 {
806 double args[6];
807 unsigned na = 0;
808 unsigned len = parse_transform_args(str, args, 6, &na);
809 if(na != 6)
810 {
811 throw exception("parse_matrix: Invalid number of arguments");
812 }
813 m_path.transform().premultiply(trans_affine(args[0], args[1], args[2], args[3], args[4], args[5]));
814 return len;
815 }
816
817 //-------------------------------------------------------------
818 unsigned parser::parse_translate(const char* str)

Callers

nothing calls this directly

Calls 5

parse_transform_argsFunction · 0.85
exceptionClass · 0.85
trans_affineClass · 0.85
premultiplyMethod · 0.45
transformMethod · 0.45

Tested by

no test coverage detected