pub struct Basis2d {
u: DVec3,
v: DVec3,
}Expand description
The projection of a VItem.
Fields§
§u: DVec3The basis vector in the u direction.
v: DVec3The basis vector in the v direction.
Implementations§
Source§impl Basis2d
impl Basis2d
Sourcepub fn corrected_u(&self) -> DVec3
pub fn corrected_u(&self) -> DVec3
The corrected basis vector in the u direction.
This is same as Self::u.
Sourcepub fn corrected_v(&self) -> DVec3
pub fn corrected_v(&self) -> DVec3
The corrected basis vector in the v direction. This is recalculated to ensure orthogonality.
Sourcepub fn corrected_uv(&self) -> (DVec3, DVec3)
pub fn corrected_uv(&self) -> (DVec3, DVec3)
The corrected basis vectos. This is recalculated to ensure orthogonality.
Sourcepub fn rotate_on_axis(&mut self, axis: DVec3, angle: f64)
pub fn rotate_on_axis(&mut self, axis: DVec3, angle: f64)
Rotate the basis vectors around the given axis.
Trait Implementations§
Source§impl Interpolatable for Basis2d
impl Interpolatable for Basis2d
impl Copy for Basis2d
impl StructuralPartialEq for Basis2d
Auto Trait Implementations§
impl Freeze for Basis2d
impl RefUnwindSafe for Basis2d
impl Send for Basis2d
impl Sync for Basis2d
impl Unpin for Basis2d
impl UnwindSafe for Basis2d
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> StaticAnim for Twhere
T: StaticAnimRequirement + 'static,
impl<T> StaticAnim for Twhere
T: StaticAnimRequirement + 'static,
Source§fn show(&self) -> AnimationCell<T>
fn show(&self) -> AnimationCell<T>
Show the item
Source§fn hide(&self) -> AnimationCell<T>
fn hide(&self) -> AnimationCell<T>
Hide the item