pub struct Camera { /* private fields */ }Implementations§
Source§impl Camera
impl Camera
pub fn new() -> Result<Self>
pub fn info(&self) -> Result<CameraInfo>
pub fn set_projection(&self, projection: CameraProjection)
pub fn set_near_visibility_distance(&self, value: f32)
pub fn set_far_visibility_distance(&self, value: f32)
pub fn set_world_to_meters_conversion_scale(&self, value: f32)
pub fn set_focal_length(&self, value: f32)
pub fn set_focus_distance(&self, value: f32)
pub fn set_field_of_view(&self, value: f32)
pub fn look_at(&self, focus_position: [f32; 3])
pub fn look_at_from(&self, focus_position: [f32; 3], camera_position: [f32; 3])
pub fn frame_bounding_box( &self, bounding_box: BoundingBox, set_near_and_far: bool, )
pub fn ray_to(&self, pixel: [i32; 2], viewport: [i32; 2]) -> [f32; 3]
pub fn bokeh_kernel(&self, size: [i32; 2]) -> Option<Texture>
pub fn as_object(&self) -> Object
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Camera
impl RefUnwindSafe for Camera
impl !Send for Camera
impl !Sync for Camera
impl Unpin for Camera
impl UnsafeUnpin for Camera
impl UnwindSafe for Camera
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more