MCPcopy Create free account
hub / github.com/densechen/CASS / scale_from_matrix

Function scale_from_matrix

lib/transformations.py:420–458  ·  view source on GitHub ↗

Return scaling factor, origin and direction from scaling matrix. >>> factor = random.random() * 10 - 5 >>> origin = numpy.random.random(3) - 0.5 >>> direct = numpy.random.random(3) - 0.5 >>> S0 = scale_matrix(factor, origin) >>> factor, origin, direction = scale_from_matrix(S0)

(matrix)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

vector_normFunction · 0.85

Tested by

no test coverage detected