Struct descartes::PrimitiveArea [−][src]
pub struct PrimitiveArea { pub boundary: ClosedLinePath, }
Represents a filled area bounded by a clockwise boundary. Everything "right of" the boundary is considered "inside"
Fields
boundary: ClosedLinePath
Methods
impl PrimitiveArea
[src]
impl PrimitiveArea
pub fn new(boundary: ClosedLinePath) -> PrimitiveArea
[src]
pub fn new(boundary: ClosedLinePath) -> PrimitiveArea
pub fn fully_contains(&self, other: &PrimitiveArea) -> bool
[src]
pub fn fully_contains(&self, other: &PrimitiveArea) -> bool
pub fn winding_number(&self, point: P2) -> f32
[src]
pub fn winding_number(&self, point: P2) -> f32
Trait Implementations
impl Clone for PrimitiveArea
[src]
impl Clone for PrimitiveArea
fn clone(&self) -> PrimitiveArea
[src]
fn clone(&self) -> PrimitiveArea
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PointContainer for PrimitiveArea
[src]
impl PointContainer for PrimitiveArea
fn location_of(&self, point: P2) -> AreaLocation
[src]
fn location_of(&self, point: P2) -> AreaLocation
fn contains(&self, point: P2) -> bool
[src]
fn contains(&self, point: P2) -> bool
impl<'a> RoughEq for &'a PrimitiveArea
[src]
impl<'a> RoughEq for &'a PrimitiveArea
Auto Trait Implementations
impl Send for PrimitiveArea
impl Send for PrimitiveArea
impl Sync for PrimitiveArea
impl Sync for PrimitiveArea