[][src]Struct tessellations::tessellationline::TessellationLine

pub struct TessellationLine { /* fields omitted */ }

Type to store the points on a line and the transform to the corresponding line

Methods

impl TessellationLine[src]

pub fn new(tx: f32, ty: f32, angle: f32) -> Self[src]

pub fn append(&mut self, p: Point)[src]

Append the point to the back of the points

pub fn remove(&mut self, index: usize)[src]

Remove the point at index and shift down the following elements.

pub fn insert(&mut self, index: usize, point: Point)[src]

Insert point at position

pub fn update(&mut self, index: usize, point: Point)[src]

Update the point on a line

pub fn dpoints(&self) -> Vec<Point>[src]

get a list of the points

pub fn cpoints(&self) -> Vec<Point>[src]

get a list of the transformed points

pub fn crpoints(&self) -> Vec<Point>[src]

get a list of the transformed points

pub fn cpoint(&self, point: Point) -> Point[src]

transform a point using the transform matrix

pub fn hitpoint(&self, p1: Point, rectsize: f32) -> Option<PointIndexPath>[src]

check if a point

pub fn hitline(&self, p1: Point, rectsize: f32) -> Option<PointIndexPath>[src]

Check if a point falls on a line within rectsize

Trait Implementations

impl Debug for TessellationLine[src]

impl Default for TessellationLine[src]

impl<'de> Deserialize<'de> for TessellationLine[src]

impl Serialize for TessellationLine[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.