pub struct CartesianSegment {
pub start: TernaryCartesian,
pub end: TernaryCartesian,
}Expand description
A directed segment in the logical ternary Cartesian plane.
Zero-length segments are valid. Clipping retains one when its point lies inside or on the viewport and rejects it otherwise.
Fields§
§start: TernaryCartesian§end: TernaryCartesianImplementations§
Source§impl CartesianSegment
impl CartesianSegment
pub const fn new(start: TernaryCartesian, end: TernaryCartesian) -> Self
Sourcepub fn point_at(self, parameter: f64) -> TernaryCartesian
pub fn point_at(self, parameter: f64) -> TernaryCartesian
Evaluate the directed segment at a parameter, normally in [0, 1].
Trait Implementations§
Source§impl Clone for CartesianSegment
impl Clone for CartesianSegment
impl Copy for CartesianSegment
Source§impl Debug for CartesianSegment
impl Debug for CartesianSegment
Source§impl PartialEq for CartesianSegment
impl PartialEq for CartesianSegment
impl StructuralPartialEq for CartesianSegment
Auto Trait Implementations§
impl Freeze for CartesianSegment
impl RefUnwindSafe for CartesianSegment
impl Send for CartesianSegment
impl Sync for CartesianSegment
impl Unpin for CartesianSegment
impl UnsafeUnpin for CartesianSegment
impl UnwindSafe for CartesianSegment
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