MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / project

Method project

tools/Triangle/DimReduction.h:44–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42
43 public:
44 MatrixOut project(const MatrixIn& pts) {
45 return (pts.rowwise() - m_mean.transpose()) * m_basis;
46 }
47
48 MatrixIn unproject(const MatrixOut& pts) {
49 return (m_basis * pts.transpose()).transpose().rowwise() + m_mean.transpose();

Callers 1

runMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected