pub struct Vector { /* private fields */ }
Expand description
Type that implements a vector for force calculations.
Internally, it’s represented as a magnitude and angle. You can consider it as a right triangle similar to the below:
ⓘ
/|
/ |
/ |
/___|
The Vector also provides the ability to get the component forces (vertical and horizontal) which is useful for calculating composite forces.
Implementations§
Auto Trait Implementations§
impl Freeze for Vector
impl RefUnwindSafe for Vector
impl Send for Vector
impl Sync for Vector
impl Unpin for Vector
impl UnwindSafe for Vector
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