Struct rosu_pp::model::hit_object::Pos
source · pub struct Pos {
pub x: f32,
pub y: f32,
}
Expand description
Simple (x, y)
coordinate / vector
Fields§
§x: f32
Position on the x-axis.
y: f32
Position on the y-axis.
Implementations§
Trait Implementations§
source§impl AddAssign for Pos
impl AddAssign for Pos
source§fn add_assign(&mut self, rhs: Pos)
fn add_assign(&mut self, rhs: Pos)
Performs the
+=
operation. Read moresource§impl DivAssign<f32> for Pos
impl DivAssign<f32> for Pos
source§fn div_assign(&mut self, rhs: f32)
fn div_assign(&mut self, rhs: f32)
Performs the
/=
operation. Read moresource§impl MulAssign<f32> for Pos
impl MulAssign<f32> for Pos
source§fn mul_assign(&mut self, rhs: f32)
fn mul_assign(&mut self, rhs: f32)
Performs the
*=
operation. Read moresource§impl SubAssign for Pos
impl SubAssign for Pos
source§fn sub_assign(&mut self, rhs: Pos)
fn sub_assign(&mut self, rhs: Pos)
Performs the
-=
operation. Read moreimpl Copy for Pos
impl StructuralPartialEq for Pos
Auto Trait Implementations§
impl Freeze for Pos
impl RefUnwindSafe for Pos
impl Send for Pos
impl Sync for Pos
impl Unpin for Pos
impl UnwindSafe for Pos
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