[][src]Struct gen_gcode::Point3d

pub struct Point3d {
    pub x: f32,
    pub y: f32,
    pub z: f32,
}

Defines a 3 dimentional point in the XYZ catersian coordanant system

Examples

extern crate gen_gcode;
use gen_gcode::Point3d;
 
let p1 = Point3d { x: 0.0, y: 0.0, z: 0.0 };
let p2 = Point3d { x: 10.0, y: 0.0, z: 0.0 };
let p3 = Point3d { x: 10.0, y: 10.0, z: 0.0 };
let p4 = Point3d { x: 0.0, y: 10.0, z: 0.0 };
let p5 = Point3d { x: 0.0, y: 10.0, z: 10.0 };
let p6 = Point3d { x: 10.0, y: 10.0, z: 10.0 };
let p7 = Point3d { x: 10.0, y: 0.0, z: 10.0 };
let p8 = Point3d { x: 0.0, y: 0.0, z: 10.0 };
let cube: Vec<Point3d> = vec!(p1, p2, p3, p4, p5, p6, p7, p8);

Fields

x: f32y: f32z: f32

Trait Implementations

impl Clone for Point3d[src]

impl Copy for Point3d[src]

impl Debug for Point3d[src]

Auto Trait Implementations

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, 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.