Struct implicit::geom::Polygon
[−]
[src]
pub struct Polygon { /* fields omitted */ }
Methods
impl Polygon
[src]
Trait Implementations
impl PartialOrd for Polygon
[src]
fn partial_cmp(&self, __arg_0: &Polygon) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Polygon) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &Polygon) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &Polygon) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &Polygon) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl PartialEq for Polygon
[src]
fn eq(&self, __arg_0: &Polygon) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Polygon) -> bool
This method tests for !=
.
impl Clone for Polygon
[src]
fn clone(&self) -> Polygon
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Polygon
[src]
impl Implicit for Polygon
[src]
fn sample(&self, pos: Point) -> f32
Returns the distance from a point to the nearest edge of a surface. Read more
fn bounding_box(&self) -> Option<Rect>
Returns a bounding box that surrounds a shape (if one exists). Read more
fn follows_rules(&self) -> bool
True if the shape follows all the rules about implicit shapes.
fn boxed(self) -> SyncBox where
Self: Sized + 'static + Sync,
Self: Sized + 'static + Sync,
fn and<B: Implicit>(self, other: B) -> And<Self, B> where
Self: Sized,
Self: Sized,
fn and_not<B: Implicit>(self, other: B) -> And<Self, Not<B>> where
Self: Sized,
Self: Sized,
fn or<B: Implicit>(self, other: B) -> Or<Self, B> where
Self: Sized,
Self: Sized,
fn xor<B: Implicit>(self, other: B) -> Xor<Self, B> where
Self: Sized,
Self: Sized,
fn shrink(self, by: f32) -> Boundary<Self> where
Self: Sized,
Self: Sized,
fn grow(self, by: f32) -> Boundary<Self> where
Self: Sized,
Self: Sized,
fn cache_bounding_box(self) -> BoxCache<Self> where
Self: Sized,
Self: Sized,
fn transform(self) -> Transformation<Self> where
Self: Sized,
Self: Sized,
fn scale(self, sx: f32, sy: f32) -> Transformation<Self> where
Self: Sized,
Self: Sized,
fn translate(self, x: f32, y: f32) -> Transformation<Self> where
Self: Sized,
Self: Sized,
fn rotate(self, rads: f32) -> Transformation<Self> where
Self: Sized,
Self: Sized,
fn not(self) -> Not<Self> where
Self: Sized,
Self: Sized,
fn outline_inner(self, distance: f32) -> And<Self, Not<Boundary<Self>>> where
Self: Sized + Clone,
Self: Sized + Clone,
fn outline_outer(self, distance: f32) -> And<Boundary<Self>, Not<Self>> where
Self: Sized + Clone,
Self: Sized + Clone,
fn borrow<'a>(&'a self) -> &'a Implicit where
Self: Sized,
Self: Sized,
fn fix_rules(self, resolution: f32) -> PolyGroup where
Self: Sized + Sync,
Self: Sized + Sync,
fn smooth(self, amount: f32, resolution: f32) -> Boundary<PolyGroup> where
Self: Sized + Sync,
Self: Sized + Sync,
fn center(&self) -> Option<Point>
fn center_at(self, point: &Point) -> Transformation<Self> where
Self: Sized,
Self: Sized,