pub struct PolygonParams {
pub points: Vec<(f64, f64)>,
}Expand description
Parameters defining a polygon shape.
Used for arbitrary polygonal regions or complex shapes that cannot be represented by simpler geometric primitives.
Fields§
§points: Vec<(f64, f64)>List of (x, y) coordinate pairs defining the polygon vertices
Trait Implementations§
Source§impl Clone for PolygonParams
impl Clone for PolygonParams
Source§fn clone(&self) -> PolygonParams
fn clone(&self) -> PolygonParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PolygonParams
impl Debug for PolygonParams
Source§impl<'de> Deserialize<'de> for PolygonParams
impl<'de> Deserialize<'de> for PolygonParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PolygonParams
impl PartialEq for PolygonParams
Source§impl Serialize for PolygonParams
impl Serialize for PolygonParams
impl StructuralPartialEq for PolygonParams
Auto Trait Implementations§
impl Freeze for PolygonParams
impl RefUnwindSafe for PolygonParams
impl Send for PolygonParams
impl Sync for PolygonParams
impl Unpin for PolygonParams
impl UnwindSafe for PolygonParams
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