MCPcopy Create free account
hub / github.com/PDAL/PDAL / rotate

Function rotate

pdal/private/MathUtils.cpp:388–395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

386#pragma warning (pop)
387
388Eigen::Vector3d rotate(const Eigen::Vector3d& v, const Eigen::Quaterniond& rot)
389{
390 Eigen::Quaterniond p;
391 p.w() = 0;
392 p.vec() = v;
393 p = rot * p * rot.inverse();
394 return p.vec();
395}
396
397namespace
398{

Callers 4

processPointMethod · 0.50
cornerMethod · 0.50
halfIntersectMethod · 0.50
TESTFunction · 0.50

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.40