pub struct ShipSkeleton {
pub bone0: Bone,
pub bone1: Bone,
pub bone2: Bone,
pub bone3: Bone,
}Fields§
§bone0: Bone§bone1: Bone§bone2: Bone§bone3: BoneTrait Implementations§
Source§impl Clone for ShipSkeleton
impl Clone for ShipSkeleton
Source§fn clone(&self) -> ShipSkeleton
fn clone(&self) -> ShipSkeleton
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for ShipSkeleton
impl Default for ShipSkeleton
Source§fn default() -> ShipSkeleton
fn default() -> ShipSkeleton
Returns the “default value” for a type. Read more
Source§impl<'a, Factor> Lerp<Factor> for &'a ShipSkeleton
impl<'a, Factor> Lerp<Factor> for &'a ShipSkeleton
Source§type Output = ShipSkeleton
type Output = ShipSkeleton
The resulting type after performing the LERP operation.
Source§fn lerp_unclamped_precise(from: Self, to: Self, factor: Factor) -> Self::Output
fn lerp_unclamped_precise(from: Self, to: Self, factor: Factor) -> Self::Output
Returns the linear interpolation of
from to to with factor unconstrained,
using a possibly slower but more precise operation. Read moreSource§fn lerp_unclamped(from: Self, to: Self, factor: Factor) -> Self::Output
fn lerp_unclamped(from: Self, to: Self, factor: Factor) -> Self::Output
Returns the linear interpolation of
from to to with factor unconstrained,
using the supposedly fastest but less precise implementation. Read moreSource§fn lerp_unclamped_inclusive_range(
range: RangeInclusive<Self>,
factor: Factor,
) -> Self::Output
fn lerp_unclamped_inclusive_range( range: RangeInclusive<Self>, factor: Factor, ) -> Self::Output
Version of
lerp_unclamped() that used a single RangeInclusive parameter instead of two values.Source§fn lerp_unclamped_precise_inclusive_range(
range: RangeInclusive<Self>,
factor: Factor,
) -> Self::Output
fn lerp_unclamped_precise_inclusive_range( range: RangeInclusive<Self>, factor: Factor, ) -> Self::Output
Version of
lerp_unclamped_precise() that used a single RangeInclusive parameter instead of two values.Source§fn lerp_inclusive_range(
range: RangeInclusive<Self>,
factor: Factor,
) -> Self::Output
fn lerp_inclusive_range( range: RangeInclusive<Self>, factor: Factor, ) -> Self::Output
Version of
lerp() that used a single RangeInclusive parameter instead of two values.Source§fn lerp_precise(from: Self, to: Self, factor: Factor) -> Self::Output
fn lerp_precise(from: Self, to: Self, factor: Factor) -> Self::Output
Alias to
lerp_unclamped_precise which constrains factor to be between 0 and 1
(inclusive). Read moreSource§fn lerp_precise_inclusive_range(
range: RangeInclusive<Self>,
factor: Factor,
) -> Self::Output
fn lerp_precise_inclusive_range( range: RangeInclusive<Self>, factor: Factor, ) -> Self::Output
Version of
lerp_precise() that used a single RangeInclusive parameter instead of two values.Source§impl Skeleton for ShipSkeleton
impl Skeleton for ShipSkeleton
const BONE_COUNT: usize = ComputedShipSkeleton::BONE_COUNT
type Attr = SkeletonAttr
type Body = Body
type ComputedSkeleton = ComputedShipSkeleton
fn compute_matrices_inner( &self, base_mat: Mat4<f32>, buf: &mut [FigureBoneData; 16], _body: Self::Body, ) -> Self::ComputedSkeleton
fn compute_matrices( &self, base_mat: Mat4<f32>, buf: &mut [FigureBoneData; 16], body: Self::Body, ) -> Self::ComputedSkeleton
Auto Trait Implementations§
impl Freeze for ShipSkeleton
impl RefUnwindSafe for ShipSkeleton
impl Send for ShipSkeleton
impl Sync for ShipSkeleton
impl Unpin for ShipSkeleton
impl UnsafeUnpin for ShipSkeleton
impl UnwindSafe for ShipSkeleton
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Event for T
§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 more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> Pointee for T
impl<T> Pointee for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Resource for T
impl<T> Storable for T
Source§impl<Context> SubContext<Context> for Context
impl<Context> SubContext<Context> for Context
fn sub_context(self) -> Context
§impl<T> TryDefault for Twhere
T: Default,
impl<T> TryDefault for Twhere
T: Default,
§fn try_default() -> Result<T, String>
fn try_default() -> Result<T, String>
Tries to create the default.
§fn unwrap_default() -> Self
fn unwrap_default() -> Self
Calls
try_default and panics on an error case.