pub struct Point {
pub loop_label: u32,
pub x: f32,
pub y: f32,
pub angle: f32,
}Expand description
Represents a point which exists as part of 2D loop of points which describe an outline of a component or board section.
Used repeatedly in the IDF format to represent points in a loop. First mention here: http://www.simplifiedsolutionsinc.com/images/idf_v30_spec.pdf#page=10 in Record 3
Fields§
§loop_label: u32The label of the loop the point exist in, 0 for counter-clockwise, 1 for clockwise.
x: f32The x coordinate of the point.
y: f32The y coordinate of the point.
angle: f320 for a straight line, between 0 and 360 for an arc, 360 for a full circle.
Trait Implementations§
Source§impl PartialOrd for Point
impl PartialOrd for Point
impl StructuralPartialEq for Point
Auto Trait Implementations§
impl Freeze for Point
impl RefUnwindSafe for Point
impl Send for Point
impl Sync for Point
impl Unpin for Point
impl UnwindSafe for Point
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