FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ProjectionCamera

    struct · ferroui-media3d · v0.5.0

    struct ProjectionCamera
    

    WPF's ProjectionCamera: a camera at Position looking along LookDirection with UpDirection up, between NearPlaneDistance and FarPlaneDistance.

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

    Returns a strong reference to this object.

    Source

    position_property

    fn position_property() -> &'static StyledProperty<Point3D>
    

    Source

    look_direction_property

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

    Source

    up_direction_property

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

    Source

    near_plane_distance_property

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

    Source

    far_plane_distance_property

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

    Source

    construct

    fn construct() -> Self
    

    Creates the class data.

    Source

    position

    fn position(self: &Self) -> Point3D
    

    The position of the camera, before its transform.

    Source

    set_position

    fn set_position(self: &Self, value: Point3D)
    

    Source

    look_direction

    fn look_direction(self: &Self) -> Vector3D
    

    The direction the camera looks in, before its transform.

    Source

    set_look_direction

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

    Source

    up_direction

    fn up_direction(self: &Self) -> Vector3D
    

    The direction of the top of the camera, before its transform.

    Source

    set_up_direction

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

    Source

    near_plane_distance

    fn near_plane_distance(self: &Self) -> f64
    

    The distance of the near clipping plane (0.125 by default).

    Source

    set_near_plane_distance

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

    Source

    far_plane_distance

    fn far_plane_distance(self: &Self) -> f64
    

    The distance of the far clipping plane (infinite by default: the snapshot then fits it to the scene).

    Source

    set_far_plane_distance

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

    Source

    Trait implementations

    Availability

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