pub struct TouchIntentionFrameContext<'a> {
pub ball_position: Option<Vec3>,
pub ball_velocity: Option<Vec3>,
pub previous_ball_position: Option<Vec3>,
pub previous_ball_velocity: Option<Vec3>,
pub teammate_positions: &'a [Vec3],
pub contested: bool,
}Expand description
Per-frame context a touch intention classification draws on.
Ball state is split into pre-touch (previous frame) and post-touch (current frame) samples: saves read the inbound trajectory, while shots, clears, and passes read the outbound one.
Fields§
§ball_position: Option<Vec3>§ball_velocity: Option<Vec3>§previous_ball_position: Option<Vec3>§previous_ball_velocity: Option<Vec3>§teammate_positions: &'a [Vec3]Positions of the toucher’s teammates (excluding the toucher).
contested: boolAuto Trait Implementations§
impl<'a> Freeze for TouchIntentionFrameContext<'a>
impl<'a> RefUnwindSafe for TouchIntentionFrameContext<'a>
impl<'a> Send for TouchIntentionFrameContext<'a>
impl<'a> Sync for TouchIntentionFrameContext<'a>
impl<'a> Unpin for TouchIntentionFrameContext<'a>
impl<'a> UnsafeUnpin for TouchIntentionFrameContext<'a>
impl<'a> UnwindSafe for TouchIntentionFrameContext<'a>
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