Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlcctrlv committed Jan 25, 2022
1 parent fe36be1 commit bd3ee6b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/polar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ impl<PD: PointData> PolarCoordinates for Point<PD> {
fn cartesian(&self, wh: WhichHandle) -> (f32, f32) {
let (x, y) = match wh {
Neither => (self.x, self.y),
A => self.handle_or_colocated(WhichHandle::A, |f|f, |f|f),
B => self.handle_or_colocated(WhichHandle::B, |f|f, |f|f),
A => self.handle_or_colocated(WhichHandle::A, &|f|f, &|f|f),
B => self.handle_or_colocated(WhichHandle::B, &|f|f, &|f|f),
};
(self.x - x, self.y - y)
}
Expand Down

0 comments on commit bd3ee6b

Please sign in to comment.