diff options
Diffstat (limited to 'src/geometry/interaction_graph.rs')
| -rw-r--r-- | src/geometry/interaction_graph.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/geometry/interaction_graph.rs b/src/geometry/interaction_graph.rs index e2cc218..b535fa5 100644 --- a/src/geometry/interaction_graph.rs +++ b/src/geometry/interaction_graph.rs @@ -14,6 +14,12 @@ pub struct InteractionGraph<N, E> { pub(crate) graph: Graph<N, E>, } +impl<N: Copy, E> Default for InteractionGraph<N, E> { + fn default() -> Self { + Self::new() + } +} + impl<N: Copy, E> InteractionGraph<N, E> { /// Creates a new empty collection of collision objects. pub fn new() -> Self { |
