47 const Eigen::Matrix3d& R = transform.linear();
48 const Eigen::Vector3d& T = transform.translation();
50 double x_range = 0.5 * (fabs(R(0, 0) * box[0]) + fabs(R(0, 1) * box[1]) + fabs(R(0, 2) * box[2]));
51 double y_range = 0.5 * (fabs(R(1, 0) * box[0]) + fabs(R(1, 1) * box[1]) + fabs(R(1, 2) * box[2]));
52 double z_range = 0.5 * (fabs(R(2, 0) * box[0]) + fabs(R(2, 1) * box[1]) + fabs(R(2, 2) * box[2]));
54 const Eigen::Vector3d v_delta(x_range, y_range, z_range);
void extendWithTransformedBox(const Eigen::Affine3d &transform, const Eigen::Vector3d &box)
Extend with a box transformed by the given transform.