From f352fb3f2a612e6e27a2c1696a1aaf5890e459a0 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Tue, 18 Jan 2022 19:36:45 +0100 Subject: [PATCH] Make type of edge vertices more specific --- src/kernel/topology/edges.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/kernel/topology/edges.rs b/src/kernel/topology/edges.rs index fd73e65f2..90f64ece6 100644 --- a/src/kernel/topology/edges.rs +++ b/src/kernel/topology/edges.rs @@ -1,4 +1,4 @@ -use nalgebra::vector; +use nalgebra::{point, vector}; use parry2d_f64::shape::Segment as Segment2; use parry3d_f64::{math::Isometry, shape::Segment as Segment3}; @@ -184,7 +184,7 @@ pub struct Edge { /// /// If there are no such vertices, that means the edge is connected to /// itself (like a full circle, for example). - pub vertices: Option<[f64; 2]>, + pub vertices: Option<[Point<1>; 2]>, /// Indicates whether the curve's direction is reversed pub reverse: bool, @@ -213,7 +213,7 @@ impl Edge { origin: start, dir: end - start, }), - vertices: Some([0., 1.]), + vertices: Some([point![0.], point![1.]]), reverse: false, } }