FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    PerspectiveCamera

    struct · ferroui-media3d · v0.5.0

    struct PerspectiveCamera
    

    WPF's PerspectiveCamera: a perspective projection with a horizontal FieldOfView in degrees (45 by default).

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

    Returns a strong reference to this object.

    Source

    field_of_view_property

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

    Source

    construct

    fn construct() -> Self
    

    Creates the class data.

    Source

    new

    fn new() -> Ref<Self>
    

    A camera with WPF's defaults: at the origin, looking down the negative z axis, 45 degrees.

    Source

    with_values

    fn with_values(position: Point3D, look_direction: Vector3D, up_direction: Vector3D, field_of_view: f64) -> Ref<Self>
    

    A camera at position looking along look_direction with up_direction up and the horizontal field_of_view in degrees.

    Source

    field_of_view

    fn field_of_view(self: &Self) -> f64
    

    The horizontal field of view, in degrees.

    Source

    set_field_of_view

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

    Source

    Trait implementations

    Availability

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