Trait geomath::prelude::Split[][src]

pub trait Split<T> {
    fn split(&self) -> [T; 2];
fn concat(lhs: &T, rhs: &T) -> Self;
fn upper(&self) -> T;
fn lower(&self) -> T;
fn set_upper(&mut self, val: &T) -> &mut Self;
fn set_lower(&mut self, val: &T) -> &mut Self; }
Expand description

Split an object onto two part that can be concatenated or accessed separately

It aims to be the upper and lower parts of a vector or the upper diagonal and lower diagonal parts of a matrix.

Required methods

Get the two parts of the split object

Concatenates two part to construct an object

Get the first part of the object

Get the second part of the object

Set the first part of the object

Set the second part of the object

Implementors