Struct spade::LineSideInfo
source · pub struct LineSideInfo { /* private fields */ }
Expand description
Describes on which side of a line a 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 moresource§impl Debug for LineSideInfo
impl Debug for LineSideInfo
source§impl PartialEq for LineSideInfo
impl PartialEq for LineSideInfo
source§fn eq(&self, other: &LineSideInfo) -> bool
fn eq(&self, other: &LineSideInfo) -> bool
self
and other
values to be equal, and is used
by ==
.