Struct euclid::point::Point2D
[−]
[src]
pub struct Point2D<T> { pub x: T, pub y: T, }
Fields
x | |
y |
Methods
impl<T: Zero> Point2D<T>
impl<T> Point2D<T>
impl<T: Mul<T, Output=T> + Add<T, Output=T> + Sub<T, Output=T> + Copy> Point2D<T>
impl<T: Copy + Add<T, Output=T>> Point2D<T>
impl<T: Float> Point2D<T>
impl<Unit, T0: NumCast + Clone> Point2D<Length<Unit, T0>>
fn cast<T1: NumCast + Clone>(&self) -> Option<Point2D<Length<Unit, T1>>>
Cast from one numeric representation to another, preserving the units.