pub struct FocusProjectionScore {
pub in_beam: bool,
pub primary_distance: f64,
pub orthogonal_distance: f64,
pub overlap: f64,
pub weighted_score: f64,
}Expand description
Detailed projection metric breakdown for spatial navigation ranking.
Fields§
§in_beam: boolWhether the candidate intersects the direct axial projection beam of the source rect.
primary_distance: f64Distance along the primary axis of navigation.
orthogonal_distance: f64Distance along the orthogonal axis (perpendicular to navigation direction).
overlap: f64Projected overlap length along the orthogonal axis (0 if not in beam).
weighted_score: f64Overall weighted distance score (lower is better).
Implementations§
Source§impl FocusProjectionScore
impl FocusProjectionScore
Sourcepub fn is_better_than(&self, other: &Self) -> bool
pub fn is_better_than(&self, other: &Self) -> bool
Compares two projection scores: returns true if self is a better focus target than other.
Trait Implementations§
Source§impl Clone for FocusProjectionScore
impl Clone for FocusProjectionScore
impl Copy for FocusProjectionScore
Source§impl Debug for FocusProjectionScore
impl Debug for FocusProjectionScore
Source§impl PartialEq for FocusProjectionScore
impl PartialEq for FocusProjectionScore
impl StructuralPartialEq for FocusProjectionScore
Auto Trait Implementations§
impl Forget for FocusProjectionScore
impl Freeze for FocusProjectionScore
impl Move for FocusProjectionScore
impl RefUnwindSafe for FocusProjectionScore
impl Send for FocusProjectionScore
impl Sync for FocusProjectionScore
impl Unpin for FocusProjectionScore
impl UnsafeUnpin for FocusProjectionScore
impl UnwindSafe for FocusProjectionScore
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