38 #ifndef FCL_SHAPE_CONE_INL_H
39 #define FCL_SHAPE_CONE_INL_H
66 const Vector3<S> v_delta(radius, radius, 0.5 * lz);
67 this->aabb_local.max_ = v_delta;
68 this->aabb_local.min_ = -v_delta;
70 this->aabb_center = this->aabb_local.center();
71 this->aabb_radius = (this->aabb_local.min_ - this->aabb_center).norm();
92 S V = computeVolume();
93 S ix = V * (0.1 * lz * lz + 3 * radius * radius / 20);
94 S iz = 0.3 * V * radius * radius;
100 template <
typename S>
107 template <
typename S>
111 std::vector<Vector3<S>> result(7);
114 auto r2 = radius * 2 / std::sqrt(3.0);
131 template <
typename S>
134 std::stringstream ss;
135 ss << std::setprecision(precision);
136 ss <<
"Cone<" << S_str <<
">(" << radius <<
", " << lz <<
");";