pub struct GpuLineCamera {
pub pos: [f32; 3],
pub right: [f32; 3],
pub down: [f32; 3],
pub forward: [f32; 3],
}Expand description
World camera basis for projecting GpuLine endpoints — the same
pinhole the scene-DDA pass marches with (right/down/forward
orthonormal, pos in world voxel units).
Fields§
§pos: [f32; 3]Eye position in world voxel units.
right: [f32; 3]Unit basis toward screen-right (must match the scene camera’s
right-handed right × down == forward basis).
down: [f32; 3]Unit basis toward screen-down (+z is down in voxlap space).
forward: [f32; 3]Unit view direction; endpoints with a forward component below the near plane are clipped before projection.
Trait Implementations§
Source§impl Clone for GpuLineCamera
impl Clone for GpuLineCamera
Source§fn clone(&self) -> GpuLineCamera
fn clone(&self) -> GpuLineCamera
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 GpuLineCamera
Auto Trait Implementations§
impl Freeze for GpuLineCamera
impl RefUnwindSafe for GpuLineCamera
impl Send for GpuLineCamera
impl Sync for GpuLineCamera
impl Unpin for GpuLineCamera
impl UnsafeUnpin for GpuLineCamera
impl UnwindSafe for GpuLineCamera
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