Skip to content

Commit

Permalink
Make type of edge vertices more specific
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Jan 18, 2022
1 parent bbd0aa1 commit f352fb3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/kernel/topology/edges.rs
Original file line number Diff line number Diff line change
@@ -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};

Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -213,7 +213,7 @@ impl Edge {
origin: start,
dir: end - start,
}),
vertices: Some([0., 1.]),
vertices: Some([point![0.], point![1.]]),
reverse: false,
}
}
Expand Down

0 comments on commit f352fb3

Please sign in to comment.