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

Method applyTransform

io/PtxReader.cpp:158–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158void PtxReader::PtxHeader::applyTransform(double &x, double &y, double &z) const
159{
160 const double x2 = x * m_transform[0] + y * m_transform[4] +
161 z * m_transform[8] + m_transform[12];
162 const double y2 = x * m_transform[1] + y * m_transform[5] +
163 z * m_transform[9] + m_transform[13];
164 const double z2 = x * m_transform[2] + y * m_transform[6] +
165 z * m_transform[10] + m_transform[14];
166 x = x2;
167 y = y2;
168 z = z2;
169}
170
171void PtxReader::initialize(PointTableRef table)
172{

Callers 1

readMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected