pub struct ProjectionMatrixBuilder {
pub yaw: f64,
pub pitch: f64,
pub scale: f64,
/* private fields */
}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
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
š¬ This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more