mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-07 11:28:28 +00:00
Implement Default
for CurveBoundary<Point<1>>
This commit is contained in:
parent
37cd83d48b
commit
ed769b7bd1
@ -52,6 +52,14 @@ impl<T: CurveBoundaryElement> CurveBoundary<T> {
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for CurveBoundary<Point<1>> {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
inner: [[0.], [1.]].map(Point::from),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl<S, T: CurveBoundaryElement> From<[S; 2]> for CurveBoundary<T>
|
||||
where
|
||||
S: Into<T::Repr>,
|
||||
|
Loading…
Reference in New Issue
Block a user