Skip to content

Commit

Permalink
Change style of update_as_v_axis
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Nov 11, 2022
1 parent ad87bd4 commit c001b18
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions crates/fj-kernel/src/builder/curve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pub trait CurveBuilder {
fn update_as_u_axis(self) -> Self;

/// Update partial curve to represent the v-axis
fn update_as_v_axis(self) -> Self;
fn update_as_v_axis(&mut self) -> &mut Self;

/// Update partial curve as a circle, from the provided radius
fn update_as_circle_from_radius(
Expand All @@ -32,12 +32,11 @@ impl CurveBuilder for PartialCurve {
self
}

fn update_as_v_axis(mut self) -> Self {
fn update_as_v_axis(&mut self) -> &mut Self {
let a = Point::origin();
let b = a + Vector::unit_v();

self.update_as_line_from_points([a, b]);
self
self.update_as_line_from_points([a, b])
}

fn update_as_circle_from_radius(
Expand Down

0 comments on commit c001b18

Please sign in to comment.