pub struct Camera {
pub position: Vec3,
pub orientation: Quat,
pub fov_y_degrees: f32,
pub near: f32,
}Expand description
A pinhole camera. A plain value type; it is never stored inside a renderer. 针孔相机。一个普通的数值类型;它从不被存放在渲染器内部。
Fields§
§position: Vec3Camera position in world space. 相机在世界空间中的位置。
orientation: QuatCamera orientation in world space. 相机在世界空间中的朝向。
fov_y_degrees: f32Vertical field of view in degrees. 垂直视野,以度为单位。
near: f32Near clipping plane distance. 近裁剪平面距离。
Implementations§
Trait Implementations§
impl Copy for Camera
impl StructuralPartialEq for Camera
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