Struct plotters::coord::ranged3d::ProjectionMatrixBuilder [−][src]
pub struct ProjectionMatrixBuilder { pub yaw: f64, pub pitch: f64, pub scale: f64, // some fields omitted }
Expand description
The helper struct to build a projection matrix
Fields
yaw: f64
pitch: f64
scale: f64
Implementations
impl ProjectionMatrixBuilder
[src]
impl ProjectionMatrixBuilder
[src]pub fn new() -> Self
[src]
pub fn set_pivot(
&mut self,
before: (i32, i32, i32),
after: (i32, i32)
) -> &mut Self
[src]
pub fn set_pivot(
&mut self,
before: (i32, i32, i32),
after: (i32, i32)
) -> &mut Self
[src]Set the pivot point, which means the 3D coordinate “before” should be mapped into the 2D coordinatet “after”
pub fn into_matrix(self) -> ProjectionMatrix
[src]
pub fn into_matrix(self) -> ProjectionMatrix
[src]Build the matrix based on the configuration
Trait Implementations
impl Clone for ProjectionMatrixBuilder
[src]
impl Clone for ProjectionMatrixBuilder
[src]fn clone(&self) -> ProjectionMatrixBuilder
[src]
fn clone(&self) -> ProjectionMatrixBuilder
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Copy for ProjectionMatrixBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for ProjectionMatrixBuilder
impl Send for ProjectionMatrixBuilder
impl Sync for ProjectionMatrixBuilder
impl Unpin for ProjectionMatrixBuilder
impl UnwindSafe for ProjectionMatrixBuilder
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more