mirror of
https://github.com/hannobraun/Fornjot
synced 2025-07-30 13:56:08 +00:00
Remove redundant method
This commit is contained in:
parent
9fd9f39826
commit
a048f72bdd
@ -59,7 +59,7 @@ impl Circle {
|
||||
|
||||
/// Convert a point on the curve into model coordinates
|
||||
pub fn point_curve_to_model(&self, point: &Point<1>) -> Point<3> {
|
||||
self.center + self.vector_curve_to_model(&point.coords())
|
||||
self.center + self.vector_curve_to_model(&point.coords)
|
||||
}
|
||||
|
||||
/// Convert a vector on the curve into model coordinates
|
||||
|
@ -50,7 +50,7 @@ impl Line {
|
||||
|
||||
/// Convert a point on the curve into model coordinates
|
||||
pub fn point_curve_to_model(&self, point: &Point<1>) -> Point<3> {
|
||||
self.origin + self.vector_curve_to_model(&point.coords())
|
||||
self.origin + self.vector_curve_to_model(&point.coords)
|
||||
}
|
||||
|
||||
/// Convert a vector on the curve into model coordinates
|
||||
|
@ -55,11 +55,6 @@ impl<const D: usize> Point<D> {
|
||||
pub fn z_mut(&mut self) -> &mut Scalar {
|
||||
&mut self.coords.0[2]
|
||||
}
|
||||
|
||||
/// Access the point's coordinates as a vector
|
||||
pub fn coords(&self) -> Vector<D> {
|
||||
self.coords
|
||||
}
|
||||
}
|
||||
|
||||
impl Point<1> {
|
||||
|
Loading…
x
Reference in New Issue
Block a user