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

Methods

impl<T> TriangulationPoint<T> where
    T: FloatCore
[src]

[src]

Makes a new point from xy coordinates.

Trait Implementations

impl<T: Clone> Clone for TriangulationPoint<T> where
    T: FloatCore
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: Copy> Copy for TriangulationPoint<T> where
    T: FloatCore
[src]

impl<T: PartialEq> PartialEq for TriangulationPoint<T> where
    T: FloatCore
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<T: Debug> Debug for TriangulationPoint<T> where
    T: FloatCore
[src]

[src]

Formats the value using the given formatter. Read more

impl<T> Point<T> for TriangulationPoint<T> where
    T: FloatCore
[src]

[src]

The x component of this triangulation point.

[src]

The y component of this triangulation point.

Auto Trait Implementations

impl<T> Send for TriangulationPoint<T> where
    T: Send

impl<T> Sync for TriangulationPoint<T> where
    T: Sync