MCPcopy Index your code
hub / github.com/clips/pattern / apply_matrix_pt

Function apply_matrix_pt

pattern/web/pdf/utils.py:23–25  ·  view source on GitHub ↗

Applies a matrix to a point.

((a,b,c,d,e,f), (x,y))

Source from the content-addressed store, hash-verified

21 return (a,b,c,d,x*a+y*c+e,x*b+y*d+f)
22
23def apply_matrix_pt((a,b,c,d,e,f), (x,y)):
24 """Applies a matrix to a point."""
25 return (a*x+c*y+e, b*x+d*y+f)
26
27def apply_matrix_norm((a,b,c,d,e,f), (p,q)):
28 """Equivalent to apply_matrix_pt(M, (p,q)) - apply_matrix_pt(M, (0,0))"""

Callers 4

begin_pageMethod · 0.90
paint_pathMethod · 0.90
__init__Method · 0.90
__init__Method · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…