#[repr(C)]pub struct Transform {
pub matrix: [f32; 16],
}Expand description
A projective transformation of a 3D cartesian space.
A transform consists of a 4x4 matrix that operates in homogeneous
coordinates. For example, a point located at (x, y, z) in the cartesian
space is transformed by M to a point located at (x’/w’, y’/w’, z’/w’),
where (x', y', z', w') = M (x, y, z, 1).
Fields§
§matrix: [f32; 16]Trait Implementations§
Source§impl<'a, ___E> Encode<Transform, ___E> for &'a Transformwhere
___E: InternalHandleEncoder + ?Sized,
impl<'a, ___E> Encode<Transform, ___E> for &'a Transformwhere
___E: InternalHandleEncoder + ?Sized,
Source§impl<___E> Encode<Transform, ___E> for Transformwhere
___E: InternalHandleEncoder + ?Sized,
impl<___E> Encode<Transform, ___E> for Transformwhere
___E: InternalHandleEncoder + ?Sized,
Source§const COPY_OPTIMIZATION: CopyOptimization<Self, Transform>
const COPY_OPTIMIZATION: CopyOptimization<Self, Transform>
Source§impl<'a, ___E> EncodeOption<Box<'static, Transform>, ___E> for &'a Transform
impl<'a, ___E> EncodeOption<Box<'static, Transform>, ___E> for &'a Transform
Source§fn encode_option(
this: Option<Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<Box<'static, Transform>>,
_: (),
) -> Result<(), EncodeError>
fn encode_option( this: Option<Self>, encoder: &mut ___E, out: &mut MaybeUninit<Box<'static, Transform>>, _: (), ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl<___E> EncodeOption<Box<'static, Transform>, ___E> for Transform
impl<___E> EncodeOption<Box<'static, Transform>, ___E> for Transform
Source§fn encode_option(
this: Option<Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<Box<'static, Transform>>,
_: (),
) -> Result<(), EncodeError>
fn encode_option( this: Option<Self>, encoder: &mut ___E, out: &mut MaybeUninit<Box<'static, Transform>>, _: (), ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl FromWireRef<Transform> for Transform
impl FromWireRef<Transform> for Transform
Source§fn from_wire_ref(wire: &Transform) -> Self
fn from_wire_ref(wire: &Transform) -> Self
Converts the given reference to this type.
Source§impl PartialOrd for Transform
impl PartialOrd for Transform
impl Copy for Transform
impl StructuralPartialEq for Transform
Auto Trait Implementations§
impl Freeze for Transform
impl RefUnwindSafe for Transform
impl Send for Transform
impl Sync for Transform
impl Unpin for Transform
impl UnsafeUnpin for Transform
impl UnwindSafe for Transform
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,
§impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
§fn from_wire_option(wire: Box<'_, W>) -> Option<T>
fn from_wire_option(wire: Box<'_, W>) -> Option<T>
Converts the given owned value to an option of this type.
§impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
§fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
Converts the given reference to an option of this type.
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]