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

Function reflection_matrix

lib/transformations.py:247–270  ·  view source on GitHub ↗

Return matrix to mirror at plane defined by point and normal vector. >>> v0 = numpy.random.random(4) - 0.5 >>> v0[3] = 1. >>> v1 = numpy.random.random(3) - 0.5 >>> R = reflection_matrix(v0, v1) >>> numpy.allclose(2, numpy.trace(R)) True >>> numpy.allclose(v0, numpy.dot(R

(point, normal)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

unit_vectorFunction · 0.85

Tested by

no test coverage detected