7#include "geometry_common.h"
8#include "shape_concepts.h"
22 template <
typename T,
typename U>
28 return a.intersects(b);
35 return glm::distance(a.center, b.center) < a.radius + b.radius;
53 enum shape_relation relation {};
54 glm::tvec3<T> points_and_depths[2] {};
58 template <
typename T,
typename U>
59 void intersection(T
const&, U
const&)
noexcept =
delete;
glm::tvec2< T > normal
x,y - point, z - depth
bool intersects(T const &, U const &) noexcept=delete
TODO: Steal from: https://github.com/RandyGaul/cute_headers/blob/master/cute_c2.h.
Circle vs Capsule: https://github.com/RandyGaul/cute_headers/blob/master/cute_c2.h#L1393.
Represents a 2D rectangle polygon_shape.