pub struct tg_poly { /* private fields */ }Expand description
A polygon consists of one exterior ring and zero or more holes.
Creating
To create a new polygon use the tg_poly_new() function.
struct tg_poly *poly = tg_poly_new(exterior, holes, nholes);Upcasting
A tg_poly can always be safely upcasted to a tg_geom; allowing
it to use any tg_geom_*() function.
struct tg_geom *geom = (struct tg_geom*)poly; // Cast to a tg_geom- See
PolyFuncs
Auto Trait Implementations§
impl Freeze for tg_poly
impl RefUnwindSafe for tg_poly
impl Send for tg_poly
impl Sync for tg_poly
impl Unpin for tg_poly
impl UnwindSafe for tg_poly
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