MCPcopy Create free account
hub / github.com/BIMCoderLiang/LNLib / ToXYZW

Method ToXYZW

src/LNLib/Algorithm/ControlPointsUtils.cpp:45–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45std::vector<std::vector<XYZW>> LNLib::ControlPointsUtils::ToXYZW(const std::vector<std::vector<XYZ>>& points)
46{
47 int row = points.size();
48 int column = points[0].size();
49
50 std::vector<std::vector<XYZW>> result(row, std::vector<XYZW>(column));;
51 for (int i = 0; i < row; i++)
52 {
53 for (int j = 0; j < column; j++)
54 {
55 result[i][j] = XYZW(const_cast<XYZ&>(points[i][j]), 1);
56 }
57 }
58 return result;
59}
60
61std::vector<std::vector<XYZW>> LNLib::ControlPointsUtils::Multiply(const std::vector<std::vector<XYZW>>& points, const std::vector<std::vector<double>>& coefficient)
62{

Callers

nothing calls this directly

Calls 1

XYZWClass · 0.50

Tested by

no test coverage detected