pub struct ActiveFiftyFifty {
pub start_time: f32,
pub start_frame: usize,
pub last_touch_time: f32,
pub last_touch_frame: usize,
pub is_kickoff: bool,
pub team_zero_player: Option<PlayerId>,
pub team_one_player: Option<PlayerId>,
pub team_zero_position: [f32; 3],
pub team_one_position: [f32; 3],
pub midpoint: [f32; 3],
pub plane_normal: [f32; 3],
}Fields§
§start_time: f32§start_frame: usize§last_touch_time: f32§last_touch_frame: usize§is_kickoff: bool§team_zero_player: Option<PlayerId>§team_one_player: Option<PlayerId>§team_zero_position: [f32; 3]§team_one_position: [f32; 3]§midpoint: [f32; 3]§plane_normal: [f32; 3]Implementations§
Source§impl ActiveFiftyFifty
impl ActiveFiftyFifty
pub fn midpoint_vec(&self) -> Vec3
pub fn plane_normal_vec(&self) -> Vec3
pub fn contains_team_touch(&self, touch_events: &[TouchEvent]) -> bool
Trait Implementations§
Source§impl Clone for ActiveFiftyFifty
impl Clone for ActiveFiftyFifty
Source§fn clone(&self) -> ActiveFiftyFifty
fn clone(&self) -> ActiveFiftyFifty
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 ActiveFiftyFifty
impl Debug for ActiveFiftyFifty
Source§impl PartialEq for ActiveFiftyFifty
impl PartialEq for ActiveFiftyFifty
impl StructuralPartialEq for ActiveFiftyFifty
Auto Trait Implementations§
impl Freeze for ActiveFiftyFifty
impl RefUnwindSafe for ActiveFiftyFifty
impl Send for ActiveFiftyFifty
impl Sync for ActiveFiftyFifty
impl Unpin for ActiveFiftyFifty
impl UnsafeUnpin for ActiveFiftyFifty
impl UnwindSafe for ActiveFiftyFifty
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