pub struct Point2d {
pub x: f32,
pub y: f32,
}Expand description
Defines a 2 dimentional point in the XY catersian coordanant system
§Examples
extern crate gen_gcode;
use gen_gcode::Point2d;
let p1 = Point2d { x: 0.0, y: 0.0 };
let p2 = Point2d { x: 10.0, y: 0.0 };
let p3 = Point2d { x: 10.0, y: 10.0 };
let p4 = Point2d { x: 0.0, y: 10.0 };
let square: Vec<Point2d> = vec!(p1, p2, p3, p4);Fields§
§x: f32§y: f32Trait Implementations§
Auto Trait Implementations§
impl Freeze for Point2d
impl RefUnwindSafe for Point2d
impl Send for Point2d
impl Sync for Point2d
impl Unpin for Point2d
impl UnwindSafe for Point2d
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