[][src]Struct quicksilver::geom::Line

pub struct Line {
    pub a: Vector,
    pub b: Vector,
    pub t: f32,
}

A line with a starting and end point

Fields

The starting point

The end point

The thickness, used only for rendering and not collision

Methods

impl Line
[src]

Create a new line with a start- and an endpoint

Create a line with a changed thickness

Trait Implementations

impl Shape for Line
[src]

Create a copy of the shape that is contained within the bound

Create a copy of the shape with an offset center

impl Drawable for Line
[src]

impl PartialEq<Line> for Line
[src]

This method tests for !=.

impl Clone for Line
[src]

Performs copy-assignment from source. Read more

impl Copy for Line
[src]

impl Eq for Line
[src]

impl Default for Line
[src]

impl Debug for Line
[src]

impl Serialize for Line
[src]

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

Auto Trait Implementations

impl Send for Line

impl Sync for Line

Blanket Implementations

impl<T> From for T
[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> SetParameter for T

Sets value as a parameter of self.

impl<T> Erased for T

impl<T> Scalar for T where
    T: Copy + PartialEq<T> + Any + Debug
[src]

Tests if Self the same as the type T Read more

impl<T> Same for T

Should always be Self

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 
[src]

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