#[repr(C)]pub struct b2Vec2 {
pub x: f32,
pub y: f32,
}Expand description
A 2D column vector.
Fields§
§x: f32§y: f32Implementations§
Source§impl b2Vec2
impl b2Vec2
Sourcepub fn Set(self: Pin<&mut Self>, x_: f32, y_: f32)
pub fn Set(self: Pin<&mut Self>, x_: f32, y_: f32)
Set this vector to some specified coordinates.
Sourcepub fn LengthSquared(&self) -> f32
pub fn LengthSquared(&self) -> f32
Get the length squared. For performance, use this instead of b2Vec2::Length (if possible).
Trait Implementations§
Source§impl ExternType for b2Vec2
impl ExternType for b2Vec2
Source§impl MakeCppStorage for b2Vec2
impl MakeCppStorage for b2Vec2
impl UniquePtrTarget for b2Vec2
impl VectorElement for b2Vec2
impl WeakPtrTarget for b2Vec2
Auto Trait Implementations§
impl Freeze for b2Vec2
impl RefUnwindSafe for b2Vec2
impl Send for b2Vec2
impl Sync for b2Vec2
impl Unpin for b2Vec2
impl UnsafeUnpin for b2Vec2
impl UnwindSafe for b2Vec2
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