gtsam_points
Loading...
Searching...
No Matches
include
gtsam_points
util
fast_floor.hpp
1
// SPDX-FileCopyrightText: Copyright 2024 Kenji Koide
2
// SPDX-License-Identifier: MIT
3
#pragma once
4
5
#include <Eigen/Core>
6
7
namespace
gtsam_points {
8
12
inline
Eigen::Array4i fast_floor(
const
Eigen::Array4d& pt) {
13
const
Eigen::Array4i ncoord = pt.cast<
int
>();
14
return
ncoord - (pt < ncoord.cast<
double
>()).cast<
int
>();
15
};
16
17
}
// namespace gtsam_points
Generated by
1.9.8