Struct tiny_skia_path::path_geometry::Conic
source · pub(crate) struct Conic {
pub points: [Point; 3],
pub weight: f32,
}
Fields§
§points: [Point; 3]
§weight: f32
Implementations§
source§impl Conic
impl Conic
pub fn new(pt0: Point, pt1: Point, pt2: Point, weight: f32) -> Self
pub fn from_points(points: &[Point], weight: f32) -> Self
fn compute_quad_pow2(&self, tolerance: f32) -> Option<u8>
pub fn chop_into_quads_pow2(&self, pow2: u8, points: &mut [Point]) -> u8
fn chop(&self) -> (Conic, Conic)
pub fn build_unit_arc( u_start: Point, u_stop: Point, dir: PathDirection, user_transform: Transform, dst: &mut [Conic; 5], ) -> Option<&[Conic]>
Trait Implementations§
impl Copy for Conic
Auto Trait Implementations§
impl Freeze for Conic
impl RefUnwindSafe for Conic
impl Send for Conic
impl Sync for Conic
impl Unpin for Conic
impl UnwindSafe for Conic
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)