Struct descartes::LineSegment [−][src]
Methods
impl LineSegment
[src]
impl LineSegment
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 direction(&self) -> V2
[src]
pub fn direction(&self) -> V2
pub fn along(&self, distance: N) -> P2
[src]
pub fn along(&self, distance: N) -> P2
pub fn midpoint(&self) -> P2
[src]
pub fn midpoint(&self) -> P2
pub 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 LineSegment
impl Clone for LineSegment
[src]
impl Clone for LineSegment
fn clone(&self) -> LineSegment
[src]
fn clone(&self) -> LineSegment
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 Debug for LineSegment
[src]
impl Debug for LineSegment
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl HasBoundingBox for LineSegment
[src]
impl HasBoundingBox for LineSegment
fn bounding_box(&self) -> BoundingBox
[src]
fn bounding_box(&self) -> BoundingBox
Auto Trait Implementations
impl Send for LineSegment
impl Send for LineSegment
impl Sync for LineSegment
impl Sync for LineSegment