Skip to content

Commit

Permalink
replaced span with vector
Browse files Browse the repository at this point in the history
  • Loading branch information
M2-TE committed Dec 10, 2024
1 parent b8cac7f commit 4537563
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions include/chad/chad.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include "chad/subtree.hpp"

#if __has_include(<Eigen/Eigen>)
#include <span>
#include <Eigen/Eigen>
#define CHAD_EIGEN
#endif
Expand All @@ -17,7 +16,7 @@ struct Chad {
Chad();

#ifdef CHAD_EIGEN
void insert(std::span<Eigen::Vector3f> points, Eigen::Vector3f position, Eigen::Quaternionf rotation) {
void insert(std::vector<Eigen::Vector3f> points, Eigen::Vector3f position, Eigen::Quaternionf rotation) {
std::array<float, 3>* pos_p = reinterpret_cast<std::array<float, 3>*>(&position);
std::array<float, 4>* rot_p = reinterpret_cast<std::array<float, 4>*>(&rotation);
insert(reinterpret_cast<std::array<float, 3>*>(points.data()), points.size(), *pos_p, *rot_p);
Expand Down

0 comments on commit 4537563

Please sign in to comment.