Remove redundant method

This commit is contained in:
Hanno Braun 2022-02-20 12:17:41 +01:00
parent 9fd9f39826
commit a048f72bdd
3 changed files with 2 additions and 7 deletions

View File

@ -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

View File

@ -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

View File

@ -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> {