#[repr(C)]
#[repr(align(4))]
pub struct IpcFoodInfo { pub x: f32, pub y: f32, pub val: f32, pub dir: f32, pub dist: f32, }
Expand description

IPC representation of a food particle.

Fields

x: f32

Relative position X in world orientation

y: f32

Relative position Y in world orientation

val: f32

Food value

dir: f32

Direction angle relative to your heading (range -π to +π)

dist: f32

Distance measured from the center of your head

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.