Struct descartes::Area [−][src]
pub struct Area {
pub primitives: VecLike<PrimitiveArea>,
}Fields
primitives: VecLike<PrimitiveArea>
Methods
impl Area[src]
impl Areapub fn new(primitives: VecLike<PrimitiveArea>) -> Self[src]
pub fn new(primitives: VecLike<PrimitiveArea>) -> Selfpub fn new_simple(boundary: ClosedLinePath) -> Self[src]
pub fn new_simple(boundary: ClosedLinePath) -> Selfpub fn disjoint(&self) -> Vec<Area>[src]
pub fn disjoint(&self) -> Vec<Area>impl Area[src]
impl Areapub fn split<'a>(&'a self, b: &'a Self) -> AreaSplitResult<'a>[src]
pub fn split<'a>(&'a self, b: &'a Self) -> AreaSplitResult<'a>pub fn split_if_intersects<'a>(
&'a self,
b: &'a Self
) -> Option<AreaSplitResult<'a>>[src]
pub fn split_if_intersects<'a>(
&'a self,
b: &'a Self
) -> Option<AreaSplitResult<'a>>Trait Implementations
impl Clone for Area[src]
impl Clone for Areafn clone(&self) -> Area[src]
fn clone(&self) -> AreaReturns 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 Debug for Area[src]
impl Debug for Areafn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Compact for Area[src]
impl Compact for Areafn is_still_compact(&self) -> bool[src]
fn is_still_compact(&self) -> boolIs the object's dynamic part stored compactly?
fn dynamic_size_bytes(&self) -> usize[src]
fn dynamic_size_bytes(&self) -> usizeSize of the dynamic part in bytes
unsafe fn compact(source: *mut Self, dest: *mut Self, new_dynamic_part: *mut u8)[src]
unsafe fn compact(source: *mut Self, dest: *mut Self, new_dynamic_part: *mut u8)Copy the static part of source to dest and compactly store the dynamic part of source as the new dynamic part of dest at new_dynamic_part. This semantically moves source into dest. Read more
unsafe fn decompact(source: *const Self) -> Self[src]
unsafe fn decompact(source: *const Self) -> SelfCreates a clone of self with the dynamic part guaranteed to be stored freely. Read more
fn total_size_bytes(&self) -> usize[src]
fn total_size_bytes(&self) -> usizeTotal size of the object (static part + dynamic part)
unsafe fn behind(ptr: *mut Self) -> *mut u8[src]
unsafe fn behind(ptr: *mut Self) -> *mut u8Get a pointer to behind the static part of self (commonly used place for the dynamic part)
unsafe fn compact_behind(source: *mut Self, dest: *mut Self)[src]
unsafe fn compact_behind(source: *mut Self, dest: *mut Self)Like compact with new_dynamic_part set to dest.behind()
impl PointContainer for Area[src]
impl PointContainer for Areafn location_of(&self, point: P2) -> AreaLocation[src]
fn location_of(&self, point: P2) -> AreaLocationfn contains(&self, point: P2) -> bool[src]
fn contains(&self, point: P2) -> boolimpl<'a> RoughEq for &'a Area[src]
impl<'a> RoughEq for &'a Area