pub struct ProjectionMatrix(_);Available on crate feature
plot only.Expand description
The projection matrix which is used to project the 3D space to the 2D display panel
Implementations
sourceimpl ProjectionMatrix
impl ProjectionMatrix
sourcepub fn one() -> ProjectionMatrix
pub fn one() -> ProjectionMatrix
Returns the identity matrix
sourcepub fn zero() -> ProjectionMatrix
pub fn zero() -> ProjectionMatrix
Returns the zero maxtrix
sourcepub fn shift(x: f64, y: f64, z: f64) -> ProjectionMatrix
pub fn shift(x: f64, y: f64, z: f64) -> ProjectionMatrix
Returns the matrix which shift the coordinate
sourcepub fn rotate(x: f64, y: f64, z: f64) -> ProjectionMatrix
pub fn rotate(x: f64, y: f64, z: f64) -> ProjectionMatrix
Returns the matrix which rotates the coordinate
sourcepub fn scale(factor: f64) -> ProjectionMatrix
pub fn scale(factor: f64) -> ProjectionMatrix
Returns the matrix that applies a scale factor
Trait Implementations
sourceimpl Clone for ProjectionMatrix
impl Clone for ProjectionMatrix
sourcefn clone(&self) -> ProjectionMatrix
fn clone(&self) -> ProjectionMatrix
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ProjectionMatrix
impl Debug for ProjectionMatrix
sourceimpl Default for ProjectionMatrix
impl Default for ProjectionMatrix
sourcefn default() -> ProjectionMatrix
fn default() -> ProjectionMatrix
Returns the “default value” for a type. Read more
sourceimpl Mul<ProjectionMatrix> for ProjectionMatrix
impl Mul<ProjectionMatrix> for ProjectionMatrix
type Output = ProjectionMatrix
type Output = ProjectionMatrix
The resulting type after applying the * operator.
sourcefn mul(self, other: ProjectionMatrix) -> ProjectionMatrix
fn mul(self, other: ProjectionMatrix) -> ProjectionMatrix
Performs the * operation. Read more
impl Copy for ProjectionMatrix
Auto Trait Implementations
impl RefUnwindSafe for ProjectionMatrix
impl Send for ProjectionMatrix
impl Sync for ProjectionMatrix
impl Unpin for ProjectionMatrix
impl UnwindSafe for ProjectionMatrix
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more