Struct radiant_rs::Point2 [] [src]

pub struct Point2<T = f32>(pub T, pub T)
where
    T: Copy + Clone + Debug
;

A 2-dimensional point.

Trait Implementations

impl<T: Copy> Copy for Point2<T> where
    T: Copy + Clone + Debug
[src]

impl<T: Clone> Clone for Point2<T> where
    T: Copy + Clone + Debug
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: Default> Default for Point2<T> where
    T: Copy + Clone + Debug
[src]

[src]

Returns the "default value" for a type. Read more

impl<T: Debug> Debug for Point2<T> where
    T: Copy + Clone + Debug
[src]

[src]

Formats the value using the given formatter.

impl<T> From<(T, T)> for Point2<T> where
    T: Copy + Clone + Debug
[src]

[src]

Performs the conversion.

impl<T> From<Vec2<T>> for Point2<T> where
    T: Float + Copy + Clone + Debug
[src]

[src]

Performs the conversion.