#[non_exhaustive]pub struct CameraSpec {
pub elevation_deg: f32,
pub azimuth_deg: f32,
pub distance: f32,
}Expand description
-camera ELEVATION,AZIMUTH,DISTANCE — camera override for the
3D→raster renderer.
elevation and azimuth are in degrees; distance is a positive
multiplier of the scene bounding-sphere radius (1.0 ≈ scene
touches the framebuffer edge; the auto-framing default is ~1.2).
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.elevation_deg: f32§azimuth_deg: f32§distance: f32Implementations§
Trait Implementations§
Source§impl Clone for CameraSpec
impl Clone for CameraSpec
impl Copy for CameraSpec
Source§impl Debug for CameraSpec
impl Debug for CameraSpec
Source§impl PartialEq for CameraSpec
impl PartialEq for CameraSpec
impl StructuralPartialEq for CameraSpec
Auto Trait Implementations§
impl Freeze for CameraSpec
impl RefUnwindSafe for CameraSpec
impl Send for CameraSpec
impl Sync for CameraSpec
impl Unpin for CameraSpec
impl UnsafeUnpin for CameraSpec
impl UnwindSafe for CameraSpec
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