pub enum ViewAxis {
Unit {
index: usize,
negative: bool,
},
General(Vector3),
}Expand description
A unit vector of a view’s frame. A coordinate axis is kept as one, so
projecting along it picks a coordinate rather than multiplying by 1 and
0, which would widen every interval by rounding (see AGENTS.md,
“Construction code is sensitive at the last bit”).
Variants§
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ViewAxis
impl RefUnwindSafe for ViewAxis
impl Send for ViewAxis
impl Sync for ViewAxis
impl Unpin for ViewAxis
impl UnsafeUnpin for ViewAxis
impl UnwindSafe for ViewAxis
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