#[non_exhaustive]pub struct HiddenLineSegment {
pub source: SourceEdge,
pub kind: EdgeKind,
pub visibility: Visibility,
pub start: Point2,
pub end: Point2,
}Expand description
A maximal positive-length piece of one source edge with one visibility.
Each endpoint is the exact point of the edge rounded once: every image
coordinate of the (rational) point is evaluated exactly and rounded to
the nearest binary64. An endpoint is therefore a function of the exact
point alone, whichever decision produced it, and equal points from
different decisions are bit-identical. All pieces of one source edge
have the same kind.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.source: SourceEdgeThe edge this piece belongs to.
kind: EdgeKindWhy the edge is drawn.
visibility: VisibilityVisibility of the whole piece.
start: Point2Image point nearer source.vertices[0].
end: Point2Image point nearer source.vertices[1].
Implementations§
Source§impl HiddenLineSegment
impl HiddenLineSegment
Sourcepub const fn new(
source: SourceEdge,
kind: EdgeKind,
visibility: Visibility,
start: Point2,
end: Point2,
) -> Self
pub const fn new( source: SourceEdge, kind: EdgeKind, visibility: Visibility, start: Point2, end: Point2, ) -> Self
Construct a piece of source.
Trait Implementations§
Source§impl Clone for HiddenLineSegment
impl Clone for HiddenLineSegment
Source§fn clone(&self) -> HiddenLineSegment
fn clone(&self) -> HiddenLineSegment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HiddenLineSegment
Source§impl Debug for HiddenLineSegment
impl Debug for HiddenLineSegment
Source§impl PartialEq for HiddenLineSegment
impl PartialEq for HiddenLineSegment
impl StructuralPartialEq for HiddenLineSegment
Auto Trait Implementations§
impl Freeze for HiddenLineSegment
impl RefUnwindSafe for HiddenLineSegment
impl Send for HiddenLineSegment
impl Sync for HiddenLineSegment
impl Unpin for HiddenLineSegment
impl UnsafeUnpin for HiddenLineSegment
impl UnwindSafe for HiddenLineSegment
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