Struct descartes::CurvedPath [−][src]
pub struct CurvedPath { /* fields omitted */ }
Methods
impl CurvedPath
[src]
impl CurvedPath
Creation
pub fn line(start: P2, end: P2) -> Option<Self>
[src]
pub fn line(start: P2, end: P2) -> Option<Self>
pub fn arc(start: P2, start_direction: V2, end: P2) -> Option<Self>
[src]
pub fn arc(start: P2, start_direction: V2, end: P2) -> Option<Self>
pub fn biarc(
start: P2,
start_direction: V2,
end: P2,
end_direction: V2
) -> Option<Self>
[src]
pub fn biarc(
start: P2,
start_direction: V2,
end: P2,
end_direction: V2
) -> Option<Self>
pub fn circle(center: P2, radius: N) -> Option<Self>
[src]
pub fn circle(center: P2, radius: N) -> Option<Self>
impl CurvedPath
[src]
impl CurvedPath
Inspection
pub fn start(&self) -> P2
[src]
pub fn start(&self) -> P2
pub fn end(&self) -> P2
[src]
pub fn end(&self) -> P2
pub fn length(&self) -> N
[src]
pub fn length(&self) -> N
pub fn start_direction(&self) -> V2
[src]
pub fn start_direction(&self) -> V2
pub fn end_direction(&self) -> V2
[src]
pub fn end_direction(&self) -> V2
pub fn segments<'a>(
&'a self
) -> impl Iterator<Item = CurvedSegment> + 'a
[src]
pub fn segments<'a>(
&'a self
) -> impl Iterator<Item = CurvedSegment> + 'a
impl CurvedPath
[src]
impl CurvedPath
Combination/Modification
pub fn concat(&self, other: &Self) -> Result<Self, ConcatError>
[src]
pub fn concat(&self, other: &Self) -> Result<Self, ConcatError>
pub fn to_line_path_with_max_angle(&self, max_angle: N) -> LinePath
[src]
pub fn to_line_path_with_max_angle(&self, max_angle: N) -> LinePath
pub fn to_line_path(&self) -> LinePath
[src]
pub fn to_line_path(&self) -> LinePath
Trait Implementations
impl Compact for CurvedPath
[src]
impl Compact for CurvedPath
fn is_still_compact(&self) -> bool
[src]
fn is_still_compact(&self) -> bool
Is the object's dynamic part stored compactly?
fn dynamic_size_bytes(&self) -> usize
[src]
fn dynamic_size_bytes(&self) -> usize
Size 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) -> Self
Creates 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) -> usize
Total size of the object (static part + dynamic part)
unsafe fn behind(ptr: *mut Self) -> *mut u8
[src]
unsafe fn behind(ptr: *mut Self) -> *mut u8
Get 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 Clone for CurvedPath
[src]
impl Clone for CurvedPath
fn clone(&self) -> CurvedPath
[src]
fn clone(&self) -> CurvedPath
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
Auto Trait Implementations
impl !Send for CurvedPath
impl !Send for CurvedPath
impl !Sync for CurvedPath
impl !Sync for CurvedPath