[−][src]Struct specs_transform::Transform3D
Fields
position: [T; 3]
scale: [T; 3]
rotation: [T; 4]
Methods
impl<T> Transform3D<T> where
T: Zero + One,
[src]
T: Zero + One,
pub fn new(position: [T; 3], scale: [T; 3], rotation: [T; 4]) -> Self
[src]
pub fn with_position(self, position: [T; 3]) -> Self
[src]
pub fn with_scale(self, scale: [T; 3]) -> Self
[src]
pub fn with_rotation(self, rotation: [T; 4]) -> Self
[src]
pub fn set_position(&mut self, position: [T; 3]) -> &mut Self
[src]
pub fn set_scale(&mut self, scale: [T; 3]) -> &mut Self
[src]
pub fn set_rotation(&mut self, rotation: [T; 4]) -> &mut Self
[src]
pub fn matrix(&self) -> [T; 16] where
T: Float,
&'a T: Mul<&'b T, Output = T> + Neg<Output = T> + Add<&'b T, Output = T> + Sub<&'b T, Output = T>,
[src]
T: Float,
&'a T: Mul<&'b T, Output = T> + Neg<Output = T> + Add<&'b T, Output = T> + Sub<&'b T, Output = T>,
Trait Implementations
impl<T> Default for Transform3D<T> where
T: Zero + One,
[src]
T: Zero + One,
impl<T: Debug> Debug for Transform3D<T>
[src]
impl<T> Serialize for Transform3D<T> where
T: Serialize,
[src]
T: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de, T> Deserialize<'de> for Transform3D<T> where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<T> Component for Transform3D<T> where
T: 'static + Sync + Send,
[src]
T: 'static + Sync + Send,
type Storage = FlaggedStorage<Self, DenseVecStorage<Self>>
Associated storage type for this component.
Auto Trait Implementations
impl<T> Send for Transform3D<T> where
T: Send,
T: Send,
impl<T> Unpin for Transform3D<T> where
T: Unpin,
T: Unpin,
impl<T> Sync for Transform3D<T> where
T: Sync,
T: Sync,
impl<T> UnwindSafe for Transform3D<T> where
T: UnwindSafe,
T: UnwindSafe,
impl<T> RefUnwindSafe for Transform3D<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Resource for T where
T: Any + Send + Sync,
T: Any + Send + Sync,
impl<T> TryDefault for T where
T: Default,
[src]
T: Default,
fn try_default() -> Result<T, String>
[src]
fn unwrap_default() -> Self
[src]
Calls try_default
and panics on an error case.
impl<T> Any for T where
T: Any,
T: Any,
fn get_type_id(&self) -> TypeId
impl<T> Event for T where
T: Send + Sync + 'static,
T: Send + Sync + 'static,