pub enum NdcDepth {
NegativeOneToOne,
ZeroToOne,
ReverseNegativeOneToOne,
ReverseZeroToOne,
}Expand description
Explicit NDC Z endpoints, ordered by physical near-to-far, not numeric value.
use ferravex_math::projection::NdcDepth;
assert_eq!(NdcDepth::ReverseZeroToOne.near(), 1.);
assert_eq!(NdcDepth::ReverseZeroToOne.far(), 0.);Variants§
NegativeOneToOne
Near -1, far +1 (RH GL constructors and render Camera3D).
ZeroToOne
Near 0, far +1 (RH/LH non-GL constructors and graphics Camera).
ReverseNegativeOneToOne
Near +1, far -1; supply a matrix authored for reversed GL depth.
ReverseZeroToOne
Near +1, far 0; supply a matrix authored for reversed zero-to-one depth.
Implementations§
Trait Implementations§
impl Copy for NdcDepth
impl Eq for NdcDepth
impl StructuralPartialEq for NdcDepth
Auto Trait Implementations§
impl Freeze for NdcDepth
impl RefUnwindSafe for NdcDepth
impl Send for NdcDepth
impl Sync for NdcDepth
impl Unpin for NdcDepth
impl UnwindSafe for NdcDepth
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