pub struct SceneCamera {
pub rotation: [f32; 4],
pub position: [f32; 3],
pub target: [f32; 3],
pub floats: [f32; 3],
}Expand description
The camera of a menu scene (also saved in game saves).
Fields§
§rotation: [f32; 4]The rotation, a quaternion (x, y, z, w).
position: [f32; 3]The position.
target: [f32; 3]The point it looks at.
floats: [f32; 3]The yaw and pitch in degrees, and the distance.
Trait Implementations§
Source§impl Clone for SceneCamera
impl Clone for SceneCamera
Source§fn clone(&self) -> SceneCamera
fn clone(&self) -> SceneCamera
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SceneCamera
Auto Trait Implementations§
impl Freeze for SceneCamera
impl RefUnwindSafe for SceneCamera
impl Send for SceneCamera
impl Sync for SceneCamera
impl Unpin for SceneCamera
impl UnsafeUnpin for SceneCamera
impl UnwindSafe for SceneCamera
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