mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-09 20:38:30 +00:00
Remove redundant code
This commit is contained in:
parent
8599daa570
commit
d471132ba5
@ -28,8 +28,7 @@ impl SweptCurve {
|
|||||||
|
|
||||||
pub fn point_from_local(&self, point: impl Into<Point<2>>) -> Point<3> {
|
pub fn point_from_local(&self, point: impl Into<Point<2>>) -> Point<3> {
|
||||||
let [u, v] = point.into().coords.components;
|
let [u, v] = point.into().coords.components;
|
||||||
self.u.point_from_local([u])
|
self.u.point_from_local([u]) + self.v.vector_from_local_point([v])
|
||||||
+ self.v.vector_from_local_point(Point::from([v]))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn project_point(&self, point: impl Into<Point<3>>) -> Point<2> {
|
pub fn project_point(&self, point: impl Into<Point<3>>) -> Point<2> {
|
||||||
|
Loading…
Reference in New Issue
Block a user