MCPcopy
hub / github.com/tdewolff/canvas / T

Method T

util.go:719–722  ·  view source on GitHub ↗

T returns the matrix transpose.

()

Source from the content-addressed store, hash-verified

717
718// T returns the matrix transpose.
719func (m Matrix) T() Matrix {
720 m[0][1], m[1][0] = m[1][0], m[0][1]
721 return m
722}
723
724// Det returns the matrix determinant.
725func (m Matrix) Det() float64 {

Callers 15

TestPolylineFunction · 0.80
TestPolylineSmoothenFunction · 0.80
TestFontFamilyFunction · 0.80
TestFontDecorationFunction · 0.80
TestPathStrokeFunction · 0.80
TestPathOffsetFunction · 0.80
TestShapesFunction · 0.80
TestAngleNormFunction · 0.80
TestAngleBetweenFunction · 0.80
TestToFromFixedFunction · 0.80
TestPointFunction · 0.80

Calls

no outgoing calls

Tested by 15

TestPolylineFunction · 0.64
TestPolylineSmoothenFunction · 0.64
TestFontFamilyFunction · 0.64
TestFontDecorationFunction · 0.64
TestPathStrokeFunction · 0.64
TestPathOffsetFunction · 0.64
TestShapesFunction · 0.64
TestAngleNormFunction · 0.64
TestAngleBetweenFunction · 0.64
TestToFromFixedFunction · 0.64
TestPointFunction · 0.64