mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-05 10:28:27 +00:00
Prepare for follow-on change
This commit is contained in:
parent
b9a8c2e305
commit
2b45441603
@ -34,12 +34,12 @@ impl<const D: usize> GenPolyline<D> for Circle<D> {
|
|||||||
|
|
||||||
// Next, convert them into actual curve coordinates.
|
// Next, convert them into actual curve coordinates.
|
||||||
let points_curve = [a, b].map(|point_curve_in_increment_units| {
|
let points_curve = [a, b].map(|point_curve_in_increment_units| {
|
||||||
point_curve_in_increment_units * params.increment()
|
[point_curve_in_increment_units * params.increment()]
|
||||||
});
|
});
|
||||||
|
|
||||||
// And finally, convert those into points of the desired dimensionality.
|
// And finally, convert those into points of the desired dimensionality.
|
||||||
let points = points_curve
|
let points = points_curve
|
||||||
.map(|point_curve| self.point_from_circle_coords([point_curve]));
|
.map(|point_curve| self.point_from_circle_coords(point_curve));
|
||||||
|
|
||||||
LineSegment { points }
|
LineSegment { points }
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user