[−][src]Struct mutiny::transformation::PreviousTransformation
Methods
impl PreviousTransformation[src]
impl PreviousTransformationpub fn new(pos: Pnt3, rot: UnitQuat, scale: Vec3) -> PreviousTransformation[src]
pub fn new(pos: Pnt3, rot: UnitQuat, scale: Vec3) -> PreviousTransformationpub fn from_position(pos: Pnt3) -> PreviousTransformation[src]
pub fn from_position(pos: Pnt3) -> PreviousTransformationMethods from Deref<Target = Node>
pub fn clone_with_preparent(&self, preparent: &Node) -> Node[src]
pub fn clone_with_preparent(&self, preparent: &Node) -> NodeClones this node but applies a preparent transformation
Allows to parent this node with it's current position, orientation and scale as absolute instead of relative to the parent.
pub fn set_position(&mut self, pos: Point<f32, U3>)[src]
pub fn set_position(&mut self, pos: Point<f32, U3>)Sets the local position of this node
pub fn position(&self) -> Point<f32, U3>[src]
pub fn position(&self) -> Point<f32, U3>Returns the local position of this node
pub fn preparent(
&self
) -> Option<Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>>[src]
pub fn preparent(
&self
) -> Option<Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>>Returns the initial parent inverse transformation if there's one
pub fn set_angle_axis(
&mut self,
angle: Rad<f32>,
axis: &Unit<Matrix<f32, U3, U1, <DefaultAllocator as Allocator<f32, U3, U1>>::Buffer>>
)[src]
pub fn set_angle_axis(
&mut self,
angle: Rad<f32>,
axis: &Unit<Matrix<f32, U3, U1, <DefaultAllocator as Allocator<f32, U3, U1>>::Buffer>>
)Sets the orientation for this node from an angle and axis of rotation
pub fn set_orientation(&mut self, q: Unit<Quaternion<f32>>)[src]
pub fn set_orientation(&mut self, q: Unit<Quaternion<f32>>)Sets the orientation for this node from a quaternion
pub fn orientation(&self) -> Unit<Quaternion<f32>>[src]
pub fn orientation(&self) -> Unit<Quaternion<f32>>Returns the orientation of this node as a quaternion which is how it's stored internally
pub fn rotation(&self) -> Rotation<f32, U3>[src]
pub fn rotation(&self) -> Rotation<f32, U3>Returns the orientation of this node as a Rotation3.
This method converts the internal quaternion into a Rotation3
pub fn look_at(
&mut self,
at: &Point<f32, U3>,
up: &Matrix<f32, U3, U1, <DefaultAllocator as Allocator<f32, U3, U1>>::Buffer>
)[src]
pub fn look_at(
&mut self,
at: &Point<f32, U3>,
up: &Matrix<f32, U3, U1, <DefaultAllocator as Allocator<f32, U3, U1>>::Buffer>
)Changes the orientation of the node to look at the passed position using the up vector
pub fn look_at_node<N>(
&mut self,
node: &N,
up: &Matrix<f32, U3, U1, <DefaultAllocator as Allocator<f32, U3, U1>>::Buffer>
) where
N: NodeRef, [src]
pub fn look_at_node<N>(
&mut self,
node: &N,
up: &Matrix<f32, U3, U1, <DefaultAllocator as Allocator<f32, U3, U1>>::Buffer>
) where
N: NodeRef, Changes the orientation of the node to look at the passed node global position using the up vector
pub fn rotate(
&mut self,
angle: Rad<f32>,
axis: &Unit<Matrix<f32, U3, U1, <DefaultAllocator as Allocator<f32, U3, U1>>::Buffer>>
)[src]
pub fn rotate(
&mut self,
angle: Rad<f32>,
axis: &Unit<Matrix<f32, U3, U1, <DefaultAllocator as Allocator<f32, U3, U1>>::Buffer>>
)Rotate this note a certain angle around the axis of rotation
pub fn append_orientation(&mut self, rot: &Unit<Quaternion<f32>>)[src]
pub fn append_orientation(&mut self, rot: &Unit<Quaternion<f32>>)Append the passed quaternion to the current local orientation
pub fn translate(
&mut self,
t: &Matrix<f32, U3, U1, <DefaultAllocator as Allocator<f32, U3, U1>>::Buffer>
)[src]
pub fn translate(
&mut self,
t: &Matrix<f32, U3, U1, <DefaultAllocator as Allocator<f32, U3, U1>>::Buffer>
)Append a translation to the current local position
pub fn scale(
&self
) -> Matrix<f32, U3, U1, <DefaultAllocator as Allocator<f32, U3, U1>>::Buffer>[src]
pub fn scale(
&self
) -> Matrix<f32, U3, U1, <DefaultAllocator as Allocator<f32, U3, U1>>::Buffer>Returns the current local scale
pub fn set_scale(
&mut self,
s: Matrix<f32, U3, U1, <DefaultAllocator as Allocator<f32, U3, U1>>::Buffer>
)[src]
pub fn set_scale(
&mut self,
s: Matrix<f32, U3, U1, <DefaultAllocator as Allocator<f32, U3, U1>>::Buffer>
)Sets the local scale
pub fn x_axis(
&self
) -> Unit<Matrix<f32, U3, U1, <DefaultAllocator as Allocator<f32, U3, U1>>::Buffer>>[src]
pub fn x_axis(
&self
) -> Unit<Matrix<f32, U3, U1, <DefaultAllocator as Allocator<f32, U3, U1>>::Buffer>>The node orientation x axis
pub fn y_axis(
&self
) -> Unit<Matrix<f32, U3, U1, <DefaultAllocator as Allocator<f32, U3, U1>>::Buffer>>[src]
pub fn y_axis(
&self
) -> Unit<Matrix<f32, U3, U1, <DefaultAllocator as Allocator<f32, U3, U1>>::Buffer>>The node orientation y axis
pub fn z_axis(
&self
) -> Unit<Matrix<f32, U3, U1, <DefaultAllocator as Allocator<f32, U3, U1>>::Buffer>>[src]
pub fn z_axis(
&self
) -> Unit<Matrix<f32, U3, U1, <DefaultAllocator as Allocator<f32, U3, U1>>::Buffer>>The node orientation z axis
pub fn tilt(&mut self, angle: Rad<f32>)[src]
pub fn tilt(&mut self, angle: Rad<f32>)rotate this node around it's local x axis
pub fn pan(&mut self, angle: Rad<f32>)[src]
pub fn pan(&mut self, angle: Rad<f32>)rotate this node around it's local y axis
pub fn roll(&mut self, angle: Rad<f32>)[src]
pub fn roll(&mut self, angle: Rad<f32>)rotate this node around it's local z axis
pub fn local_transformation(
&self
) -> Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>[src]
pub fn local_transformation(
&self
) -> Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>Local transformation matrix
pub fn global_transformation(
&self
) -> Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>[src]
pub fn global_transformation(
&self
) -> Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>Global transformation matrix
pub fn global_position(&self) -> Point<f32, U3>[src]
pub fn global_position(&self) -> Point<f32, U3>Global position of this node
pub fn global_orientation(&self) -> Unit<Quaternion<f32>>[src]
pub fn global_orientation(&self) -> Unit<Quaternion<f32>>Global orientation of this node
pub fn global_scale(
&self
) -> Matrix<f32, U3, U1, <DefaultAllocator as Allocator<f32, U3, U1>>::Buffer>[src]
pub fn global_scale(
&self
) -> Matrix<f32, U3, U1, <DefaultAllocator as Allocator<f32, U3, U1>>::Buffer>Global scale of this node
pub fn inv_local_transformation(
&self
) -> Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>[src]
pub fn inv_local_transformation(
&self
) -> Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>Inverse local transformation of this node
This is cacheed internally and uses the fastest version posible to calculate
the inverse so it's usually faster than calling local_transformation().try_inverse()
pub fn inv_global_transformation(
&self
) -> Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>[src]
pub fn inv_global_transformation(
&self
) -> Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>Inverse global transformation of this node
This is cacheed internally and uses the fastest version posible to calculate
the inverse so it's usually faster than calling global_transformation().try_inverse()
pub fn update_with_parent(&mut self, parent: Option<&Node>) -> bool[src]
pub fn update_with_parent(&mut self, parent: Option<&Node>) -> boolUpdates the internal matrices including the glonal matrices using the optional parent passed as argument
pub fn update_with_parent_flags(
&mut self,
parent: Option<&Node>,
flags: Flags
) -> bool[src]
pub fn update_with_parent_flags(
&mut self,
parent: Option<&Node>,
flags: Flags
) -> boolUpdates the internal matrices including the glonal matrices using the optional parent passed as argument and flags
Trait Implementations
impl Default for PreviousTransformation[src]
impl Default for PreviousTransformationfn default() -> PreviousTransformation[src]
fn default() -> PreviousTransformationimpl<'a> From<&'a Transformations> for PreviousTransformation[src]
impl<'a> From<&'a Transformations> for PreviousTransformationfn from(trafo: &'a Transformations) -> PreviousTransformation[src]
fn from(trafo: &'a Transformations) -> PreviousTransformationimpl Clone for PreviousTransformation[src]
impl Clone for PreviousTransformationfn clone(&self) -> PreviousTransformation[src]
fn clone(&self) -> PreviousTransformationfn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Debug for PreviousTransformation[src]
impl Debug for PreviousTransformationimpl Deref for PreviousTransformation[src]
impl Deref for PreviousTransformationimpl DerefMut for PreviousTransformation[src]
impl DerefMut for PreviousTransformationimpl Component for PreviousTransformation[src]
impl Component for PreviousTransformationtype Storage = DenseVec<PreviousTransformation>
fn type_name() -> &'static str[src]
fn type_name() -> &'static strfn id() -> TypeId[src]
fn id() -> TypeIdimpl<'a> DebugParameter for PreviousTransformation[src]
impl<'a> DebugParameter for PreviousTransformationfn debug<S: Serializer>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>[src]
fn debug<S: Serializer>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>impl Serialize for PreviousTransformation[src]
impl Serialize for PreviousTransformationfn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, impl<'de> Deserialize<'de> for PreviousTransformation[src]
impl<'de> Deserialize<'de> for PreviousTransformationfn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, Auto Trait Implementations
impl Send for PreviousTransformation
impl Send for PreviousTransformationimpl Sync for PreviousTransformation
impl Sync for PreviousTransformationBlanket Implementations
impl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, impl<T> From for T[src]
impl<T> From for Timpl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeIdimpl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut Timpl<C> ComponentSend for C where
C: Component + Send, [src]
impl<C> ComponentSend for C where
C: Component + Send, impl<C> ComponentThreadLocal for C where
C: Component, [src]
impl<C> ComponentThreadLocal for C where
C: Component, impl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, impl<T> Serialize for T where
T: Serialize + ?Sized, [src]
impl<T> Serialize for T where
T: Serialize + ?Sized, fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>[src]
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>impl<T> Any for T where
T: Any, [src]
impl<T> Any for T where
T: Any, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeIdimpl<T> SetParameter for T[src]
impl<T> SetParameter for Tfn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>, [src]
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>, Sets value as a parameter of self.
impl<T> Same for T[src]
impl<T> Same for Ttype Output = T
Should always be Self
impl<SS, SP> SupersetOf for SP where
SS: SubsetOf<SP>, [src]
impl<SS, SP> SupersetOf for SP where
SS: SubsetOf<SP>, fn to_subset(&self) -> Option<SS>[src]
fn to_subset(&self) -> Option<SS>fn is_in_subset(&self) -> bool[src]
fn is_in_subset(&self) -> boolunsafe fn to_subset_unchecked(&self) -> SS[src]
unsafe fn to_subset_unchecked(&self) -> SSfn from_subset(element: &SS) -> SP[src]
fn from_subset(element: &SS) -> SPimpl<V> IntoVec for V[src]
impl<V> IntoVec for Vimpl<V> IntoPnt for V[src]
impl<V> IntoPnt for Vimpl<B, P> IntoControlBuilder for P where
B: BuilderFromProperty<P>, [src]
impl<B, P> IntoControlBuilder for P where
B: BuilderFromProperty<P>, fn into_builder<S>(self, name: &str, events: S) -> B where
S: Stream<'static, Event>, [src]
fn into_builder<S>(self, name: &str, events: S) -> B where
S: Stream<'static, Event>, impl<T, U> IntoDuration for T where
U: FromDuration<T>, [src]
impl<T, U> IntoDuration for T where
U: FromDuration<T>, type Error = <U as FromDuration<T>>::Error
fn into_duration(self) -> Result<U, <U as FromDuration<T>>::Error>[src]
fn into_duration(self) -> Result<U, <U as FromDuration<T>>::Error>