pub struct Point3d {
pub x: f32,
pub y: f32,
pub z: f32,
}
Expand description
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 Freeze for Point3d
impl RefUnwindSafe for Point3d
impl Send for Point3d
impl Sync for Point3d
impl Unpin for Point3d
impl UnwindSafe for Point3d
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more