Struct SceneView
#[non_exhaustive]pub struct SceneView {
pub center: [f32; 3],
pub yaw: f32,
pub pitch: f32,
pub scale: f32,
}Expand description
How a scene is seen: its center, vertical rotation and top tilt in degrees, and the number of GUI pixels a block spans.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.center: [f32; 3]Scene point placed at the GUI rectangle’s center, in blocks.
yaw: f32Counterclockwise rotation seen from above, in degrees.
pitch: f32Tilt of the scene’s top toward the viewer, in degrees.
scale: f32GUI pixels per block; a nonpositive or nonfinite scale draws nothing.
Implementations§
Trait Implementations§
impl Copy for SceneView
impl StructuralPartialEq for SceneView
Auto Trait Implementations§
impl Freeze for SceneView
impl RefUnwindSafe for SceneView
impl Send for SceneView
impl Sync for SceneView
impl Unpin for SceneView
impl UnsafeUnpin for SceneView
impl UnwindSafe for SceneView
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