bool CameraNode::sEqual(const RepoNode &other) const { if (other.getTypeAsEnum() != NodeType::CAMERA || other.getParentIDs().size() != getParentIDs().size()) { return false; } const CameraNode otherCam = CameraNode(other); std::vector<float> mat = getCameraMatrix(); std::vector<float> otherMat = otherCam.getCameraMatrix(); return !memcmp(mat.data(), otherMat.data(), mat.size() *sizeof(*mat.data())); }