Struct xmath::Vector2
[−]
[src]
pub struct Vector2 { pub x: f32, pub y: f32, // some fields omitted }
Fields
x | |
y |
pub struct Vector2 { pub x: f32, pub y: f32, // some fields omitted }
x | |
y |
impl Vector2
impl Vector for Vector2
fn zero() -> Self
fn one() -> Self
fn infinity() -> Self
fn nan() -> Self
fn epsilon() -> Self
fn replicate(value: f32) -> Self
fn swizzle(&self, e0: usize, e1: usize, _e2: usize, _e3: usize) -> Self
fn permute(&self, other: &Self, permute_x: usize, permute_y: usize, _permute_z: usize, _permute_w: usize) -> Self
fn transform(&self, matrix: &Matrix) -> Self
fn min(&self, other: &Self) -> Self
fn max(&self, other: &Self) -> Self
fn round(&self) -> Self
fn trunc(&self) -> Self
fn floor(&self) -> Self
fn ceil(&self) -> Self
fn clamp(&self, min: &Self, max: &Self) -> Self
fn multiply_add(&self, mul: &Self, add: &Self) -> Self
fn splat_x(&self) -> Self
fn splat_y(&self) -> Self
fn splat_z(&self) -> Self
fn splat_w(&self) -> Self
impl Add for Vector2
impl AddAssign for Vector2
fn add_assign(&mut self, rhs: Self)
impl Sub for Vector2
impl SubAssign for Vector2
fn sub_assign(&mut self, rhs: Self)
impl Div for Vector2
impl DivAssign for Vector2
fn div_assign(&mut self, rhs: Self)
impl Div<f32> for Vector2
impl DivAssign<f32> for Vector2
fn div_assign(&mut self, rhs: f32)
impl Mul for Vector2
impl MulAssign for Vector2
fn mul_assign(&mut self, rhs: Self)
impl Mul<f32> for Vector2
impl MulAssign<f32> for Vector2
fn mul_assign(&mut self, rhs: f32)
impl Neg for Vector2
impl Index<usize> for Vector2
impl From<Row> for Vector2
fn from(row: Row) -> Self
impl Debug for Vector2
impl PartialEq for Vector2
impl Copy for Vector2
impl Clone for Vector2
fn clone(&self) -> Vector2
fn clone_from(&mut self, source: &Self)