pub struct Turn {
pub turns: f32,
pub pivot: Option<Vec2>,
}Expand description
A path’s turn (docs/adr/0041-a-mask-turns-about-its-centre.md): how
far it is turned, in turns — clockwise with y down, as
Path::sector counts them — and the point it turns about, in the
path’s own coordinates; None is the centre of the outline’s box. A
path with a turn is boxed by the square the turn sweeps, so its mask
is one mask at every angle and the quad that draws it carries the
angle.
Fields§
§turns: f32§pivot: Option<Vec2>Implementations§
Trait Implementations§
impl Copy for Turn
impl StructuralPartialEq for Turn
Auto Trait Implementations§
impl Freeze for Turn
impl RefUnwindSafe for Turn
impl Send for Turn
impl Sync for Turn
impl Unpin for Turn
impl UnsafeUnpin for Turn
impl UnwindSafe for Turn
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more