[−][src]Struct tessellations::tessellationline::TessellationLine
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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for TessellationLine
[src]
Auto Trait Implementations
impl RefUnwindSafe for TessellationLine
impl Send for TessellationLine
impl Sync for TessellationLine
impl Unpin for TessellationLine
impl UnwindSafe for TessellationLine
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,