Transform3D
struct · ferroui-media3d · v0.5.0
struct Transform3D
WPF's Transform3D: the base of the 3D transforms.
Members
TYPEto_refvalueconstructidentityis_affineinversetry_transformtransformtransform_boundschanged
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<Transform3D>
Returns a strong reference to this object.
value
fn value(self: &Self) -> Matrix3D
The matrix of the transform (WPF's Value).
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
identity
fn identity() -> Ref<Transform3D>
WPF's Transform3D.Identity: a new transform that changes nothing.
is_affine
fn is_affine(self: &Self) -> bool
Whether the transform is affine (WPF's IsAffine): its matrix has no projective part.
inverse
fn inverse(self: &Self) -> Option<Ref<Transform3D>>
The inverse transform (WPF's Inverse); None when the matrix has no inverse.
try_transform
fn try_transform(self: &Self, point: Point3D) -> Option<Point3D>
The point transformed (WPF's TryTransform); None when the result is not finite (a
projective transform that sends the point to infinity).
transform
fn transform(self: &Self, point: Point3D) -> Point3D
The point transformed (WPF's Transform).
transform_bounds
fn transform_bounds(self: &Self, rect: Rect3D) -> Rect3D
The axis-aligned bounds of the box transformed (WPF's TransformBounds).
changed
fn changed(self: &Self, handler: impl Fn(Scene3DChange) -> () + 'static) -> Subscription
Calls handler on every change of the transform, until the returned guard is dropped.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeTransform3DImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<Transform3D>StaticTypeObjectTypeSubclassable<T>FerroObjectImplTransform3DImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.