Struct rtriangulate::TriangulationPoint
[−]
[src]
pub struct TriangulationPoint<T> where
T: FloatCore, {
pub x: T,
pub y: T,
}
A two-dimensional point of generic precision, which implements the Point
trait.
If you're not using your own type implementing the Point
trait, feel free to use this one.
It is very simple, and doesn't provide much features, but it is functional. Internally, this
type is used for temporary storage of points that need to be created during triangulation.
Fields
x: T
y: T
Methods
impl<T> TriangulationPoint<T> where
T: FloatCore,
[src]
T: FloatCore,
Trait Implementations
impl<T: Clone> Clone for TriangulationPoint<T> where
T: FloatCore,
[src]
T: FloatCore,
fn clone(&self) -> TriangulationPoint<T>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T: Copy> Copy for TriangulationPoint<T> where
T: FloatCore,
[src]
T: FloatCore,
impl<T: PartialEq> PartialEq for TriangulationPoint<T> where
T: FloatCore,
[src]
T: FloatCore,
fn eq(&self, __arg_0: &TriangulationPoint<T>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &TriangulationPoint<T>) -> bool
[src]
This method tests for !=
.
impl<T: Debug> Debug for TriangulationPoint<T> where
T: FloatCore,
[src]
T: FloatCore,
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<T> Point<T> for TriangulationPoint<T> where
T: FloatCore,
[src]
T: FloatCore,
Auto Trait Implementations
impl<T> Send for TriangulationPoint<T> where
T: Send,
T: Send,
impl<T> Sync for TriangulationPoint<T> where
T: Sync,
T: Sync,