Skip to content

Commit c4bed54

Browse files
PaulDancesunjay
authored andcommitted
Add arc_left and arc_right methods to Turtle
They block on corresponding AsyncTurtle methods. Signed-off-by: Paul Mabileau <[email protected]>
1 parent 960049a commit c4bed54

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/turtle.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,14 @@ impl Turtle {
206206
block_on(self.turtle.wait(secs))
207207
}
208208

209+
pub fn arc_left(&mut self, radius: Distance, extent: Angle) {
210+
block_on(self.turtle.arc_left(radius, extent))
211+
}
212+
213+
pub fn arc_right(&mut self, radius: Distance, extent: Angle) {
214+
block_on(self.turtle.arc_right(radius, extent))
215+
}
216+
209217
pub(crate) fn into_async(self) -> AsyncTurtle {
210218
self.turtle
211219
}

0 commit comments

Comments
 (0)