FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    Transform3D

    struct · ferroui-media3d · v0.5.0

    struct Transform3D
    

    WPF's Transform3D: the base of the 3D transforms.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<Transform3D>
    

    Returns a strong reference to this object.

    Source

    value

    fn value(self: &Self) -> Matrix3D
    

    The matrix of the transform (WPF's Value).

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    identity

    fn identity() -> Ref<Transform3D>
    

    WPF's Transform3D.Identity: a new transform that changes nothing.

    Source

    is_affine

    fn is_affine(self: &Self) -> bool
    

    Whether the transform is affine (WPF's IsAffine): its matrix has no projective part.

    Source

    inverse

    fn inverse(self: &Self) -> Option<Ref<Transform3D>>
    

    The inverse transform (WPF's Inverse); None when the matrix has no inverse.

    Source

    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).

    Source

    transform

    fn transform(self: &Self, point: Point3D) -> Point3D
    

    The point transformed (WPF's Transform).

    Source

    transform_bounds

    fn transform_bounds(self: &Self, rect: Rect3D) -> Rect3D
    

    The axis-aligned bounds of the box transformed (WPF's TransformBounds).

    Source

    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.

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.