pub struct LineSideInfo { /* private fields */ }
Expand description
Describes on which side of a line a point lies.
Created by DirectedEdgeHandle::side_query
Implementations§
Source§impl LineSideInfo
impl LineSideInfo
Sourcepub fn is_on_left_side(&self) -> bool
pub fn is_on_left_side(&self) -> bool
Returns true
if a point lies on the left side of a line.
For left-handed coordinate systems, this method returns if a point lies on the right side of a line.
This method returns false
if the point lies exactly on the line.
Sourcepub fn is_on_right_side(&self) -> bool
pub fn is_on_right_side(&self) -> bool
Returns true
if a point lies on the right side of a line.
For left-handed coordinate systems, this method returns if a point lies on the left side of a line.
This method returns false
if the point lies exactly on the line.
Sourcepub fn is_on_left_side_or_on_line(&self) -> bool
pub fn is_on_left_side_or_on_line(&self) -> bool
Returns true
if a point lies on the left side of a line or is on the line itself.
For left-handed coordinate systems, this method returns if a point lies on the left side of a line.
Sourcepub fn is_on_right_side_or_on_line(self) -> bool
pub fn is_on_right_side_or_on_line(self) -> bool
Returns true
if a point lies on the right side of a line or is on the line itself.
For left handed coordinate systems, this method returns if a point lies on the left side of a line.
Sourcepub fn is_on_line(self) -> bool
pub fn is_on_line(self) -> bool
Returns true
if a point lies exactly on this line.
Sourcepub fn reversed(self) -> LineSideInfo
pub fn reversed(self) -> LineSideInfo
Returns the opposite of this LineSideInfo
.
Trait Implementations§
Source§impl Clone for LineSideInfo
impl Clone for LineSideInfo
Source§fn clone(&self) -> LineSideInfo
fn clone(&self) -> LineSideInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more