[−][src]Struct gen_gcode::Point3d
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: f32
y: f32
z: f32
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Point3d
[src]
impl Send for Point3d
[src]
impl Sync for Point3d
[src]
impl Unpin for Point3d
[src]
impl UnwindSafe for Point3d
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,