Struct descartes::LineSegment [−][src]
Methods
impl LineSegment[src]
impl LineSegmentpub fn start(&self) -> P2[src]
pub fn start(&self) -> P2pub fn end(&self) -> P2[src]
pub fn end(&self) -> P2pub fn length(&self) -> N[src]
pub fn length(&self) -> Npub fn direction(&self) -> V2[src]
pub fn direction(&self) -> V2pub fn along(&self, distance: N) -> P2[src]
pub fn along(&self, distance: N) -> P2pub fn midpoint(&self) -> P2[src]
pub fn midpoint(&self) -> P2pub fn project_with_tolerance(&self, point: P2, tolerance: N) -> Option<(N, P2)>[src]
pub fn project_with_tolerance(&self, point: P2, tolerance: N) -> Option<(N, P2)>pub fn project_with_max_distance(
&self,
point: P2,
tolerance: N,
max_distance: N
) -> Option<(N, P2)>[src]
pub fn project_with_max_distance(
&self,
point: P2,
tolerance: N,
max_distance: N
) -> Option<(N, P2)>Trait Implementations
impl Copy for LineSegment[src]
impl Copy for LineSegmentimpl Clone for LineSegment[src]
impl Clone for LineSegmentfn clone(&self) -> LineSegment[src]
fn clone(&self) -> LineSegmentReturns 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 LineSegment[src]
impl Debug for LineSegmentfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl HasBoundingBox for LineSegment[src]
impl HasBoundingBox for LineSegmentfn bounding_box(&self) -> BoundingBox[src]
fn bounding_box(&self) -> BoundingBoxAuto Trait Implementations
impl Send for LineSegment
impl Send for LineSegmentimpl Sync for LineSegment
impl Sync for LineSegment