Struct ProjectiveLine
pub struct ProjectiveLine { /* private fields */ }Expand description
A projective line represented by homogeneous coefficients.
Implementations§
§impl ProjectiveLine
impl ProjectiveLine
pub fn new(coefficients: Vec<f64>) -> Option<ProjectiveLine>
pub fn new(coefficients: Vec<f64>) -> Option<ProjectiveLine>
Creates a projective line from nonzero finite homogeneous coefficients.
pub fn coefficients(&self) -> &[f64]
pub fn coefficients(&self) -> &[f64]
Returns the line coefficients.
Trait Implementations§
§impl Clone for ProjectiveLine
impl Clone for ProjectiveLine
§fn clone(&self) -> ProjectiveLine
fn clone(&self) -> ProjectiveLine
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for ProjectiveLine
impl Debug for ProjectiveLine
§impl PartialEq for ProjectiveLine
impl PartialEq for ProjectiveLine
impl StructuralPartialEq for ProjectiveLine
Auto Trait Implementations§
impl Freeze for ProjectiveLine
impl RefUnwindSafe for ProjectiveLine
impl Send for ProjectiveLine
impl Sync for ProjectiveLine
impl Unpin for ProjectiveLine
impl UnsafeUnpin for ProjectiveLine
impl UnwindSafe for ProjectiveLine
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