Struct grafix_toolbox::lib::GL::FocusCam
source · pub struct FocusCam {
pub target: V3,
/* private fields */
}Fields§
§target: V3Implementations§
source§impl FocusCam
impl FocusCam
pub fn pos(&self) -> Vec3
pub fn fov(&self) -> f32
pub fn new(target: V3, polar_zoom: Vec3) -> Self
pub fn track(&mut self, tgt: V3)
pub fn set_proj(&mut self, f: &impl Frame, (fov, far): Vec2)
pub fn set_polar(&mut self, polar_zoom: Vec3)
pub fn V(&self) -> &M4
pub fn iV(&self) -> &M4
pub fn VP(&self) -> &M4
pub fn P(&self) -> &M4
pub fn MV(&self, model: &M4) -> M4
pub fn MVP(&self, model: &M4) -> M4
pub fn iL(&self) -> Vec3
pub fn N(&self, model: &M4) -> M3
pub fn NV(&self, model: &M4) -> M3
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for FocusCam
impl !RefUnwindSafe for FocusCam
impl Send for FocusCam
impl !Sync for FocusCam
impl Unpin for FocusCam
impl UnwindSafe for FocusCam
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
source§impl<T> OrAssignment for Twhere
T: Default,
impl<T> OrAssignment for Twhere
T: Default,
source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.