pub struct ProjectedPoint {
pub screen: Vec2,
pub ndc_depth: f32,
pub inside_viewport: bool,
pub inside_depth: bool,
}Expand description
A finite positive-W projection, including unclamped clip membership. See the module’s HUD recipe. Membership is not occlusion testing.
Fields§
§screen: Vec2Absolute screen coordinates, possibly outside the viewport.
ndc_depth: f32Unmodified NDC Z, possibly outside the declared near/far interval.
inside_viewport: boolTrue when computed NDC X/Y are both within inclusive -1..=1.
inside_depth: boolTrue when computed NDC Z is inside the declared inclusive interval.
Trait Implementations§
Source§impl Clone for ProjectedPoint
impl Clone for ProjectedPoint
Source§fn clone(&self) -> ProjectedPoint
fn clone(&self) -> ProjectedPoint
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProjectedPoint
impl Debug for ProjectedPoint
Source§impl PartialEq for ProjectedPoint
impl PartialEq for ProjectedPoint
impl Copy for ProjectedPoint
impl StructuralPartialEq for ProjectedPoint
Auto Trait Implementations§
impl Freeze for ProjectedPoint
impl RefUnwindSafe for ProjectedPoint
impl Send for ProjectedPoint
impl Sync for ProjectedPoint
impl Unpin for ProjectedPoint
impl UnwindSafe for ProjectedPoint
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