pub struct ProjectionMatrixBuilder {
pub yaw: f64,
pub pitch: f64,
pub scale: f64,
/* private fields */
}Available on crate feature
plot only.Expand description
The helper struct to build a projection matrix
Fields
yaw: f64pitch: f64scale: f64Implementations
sourceimpl ProjectionMatrixBuilder
impl ProjectionMatrixBuilder
pub fn new() -> ProjectionMatrixBuilder
sourcepub fn set_pivot(
&mut self,
before: (i32, i32, i32),
after: (i32, i32)
) -> &mut ProjectionMatrixBuilder
pub fn set_pivot(
&mut self,
before: (i32, i32, i32),
after: (i32, i32)
) -> &mut ProjectionMatrixBuilder
Set the pivot point, which means the 3D coordinate ābeforeā should be mapped into the 2D coordinatet āafterā
sourcepub fn into_matrix(self) -> ProjectionMatrix
pub fn into_matrix(self) -> ProjectionMatrix
Build the matrix based on the configuration
Trait Implementations
sourceimpl Clone for ProjectionMatrixBuilder
impl Clone for ProjectionMatrixBuilder
sourcefn clone(&self) -> ProjectionMatrixBuilder
fn clone(&self) -> ProjectionMatrixBuilder
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
impl Copy for ProjectionMatrixBuilder
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
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