PerspectiveCamera
struct · ferroui-media3d · v0.5.0
struct PerspectiveCamera
WPF's PerspectiveCamera: a perspective projection with a horizontal FieldOfView in
degrees (45 by default).
Members
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<PerspectiveCamera>
Returns a strong reference to this object.
field_of_view_property
fn field_of_view_property() -> &'static StyledProperty<f64>
construct
fn construct() -> Self
Creates the class data.
new
fn new() -> Ref<Self>
A camera with WPF's defaults: at the origin, looking down the negative z axis, 45 degrees.
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.
field_of_view
fn field_of_view(self: &Self) -> f64
The horizontal field of view, in degrees.
set_field_of_view
fn set_field_of_view(self: &Self, value: f64)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeCameraImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<PerspectiveCamera>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplCameraImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.