[][src]Struct polystrip::data::GpuPos

#[repr(C)]pub struct GpuPos {
    pub x: f32,
    pub y: f32,
}

Coordinates in GPU space, represented with f32s.

(0.0, 0.0) is the screen center. (1.0, 1.0) is the top-right corner. (-1.0, -1.0) is the bottom-left corner.

Fields

x: f32y: f32

Trait Implementations

impl Clone for GpuPos[src]

impl Copy for GpuPos[src]

impl Debug for GpuPos[src]

impl PartialEq<GpuPos> for GpuPos[src]

impl PartialOrd<GpuPos> for GpuPos[src]

impl StructuralPartialEq for GpuPos[src]

Auto Trait Implementations

impl RefUnwindSafe for GpuPos

impl Send for GpuPos

impl Sync for GpuPos

impl Unpin for GpuPos

impl UnwindSafe for GpuPos

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> From<T> for T[src]

impl<T> Instrument for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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.