FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    AxisAngleRotation3D

    struct · ferroui-media3d · v0.5.0

    struct AxisAngleRotation3D
    

    WPF's AxisAngleRotation3D: a rotation by Angle degrees about Axis, counterclockwise when the axis points at the viewer. An axis of (nearly) zero length is no rotation.

    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<AxisAngleRotation3D>
    

    Returns a strong reference to this object.

    Source

    axis_property

    fn axis_property() -> &'static StyledProperty<Vector3D>
    

    Source

    angle_property

    fn angle_property() -> &'static StyledProperty<f64>
    

    Source

    construct

    fn construct() -> Self
    

    Creates the class data.

    Source

    new

    fn new() -> Ref<Self>
    

    A rotation by 0 degrees about the y axis.

    Source

    with_axis_angle

    fn with_axis_angle(axis: Vector3D, angle: f64) -> Ref<Self>
    

    A rotation by angle degrees about axis.

    Source

    axis

    fn axis(self: &Self) -> Vector3D
    

    The axis of the rotation.

    Source

    set_axis

    fn set_axis(self: &Self, value: Vector3D)
    

    Source

    angle

    fn angle(self: &Self) -> f64
    

    The angle of the rotation, in degrees.

    Source

    set_angle

    fn set_angle(self: &Self, value: f64)
    

    Source

    Trait implementations

    Availability

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