pub struct Car(_);
Expand description
A car simulation.
Example
let mut car = Car::new();
car.set_pos(Point3::new(0.0, 0.0, 17.01));
car.set_vel(Vector3::new(300.0, 400.0, 500.0));
car.set_theta(Rotation3::identity());
car.set_on_ground(true);
let input = Input {
steer: 1.0,
throttle: 1.0,
..Input::default()
};
car.step(input, 1.0 / 120.0);
println!("{:?}", car.pos());
Implementations
Auto Trait Implementations
impl RefUnwindSafe for Car
impl Send for Car
impl Sync for Car
impl Unpin for Car
impl UnwindSafe for Car
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read morefn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).unsafe fn to_subset_unchecked(&self) -> SS
unsafe fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.