Struct makepad_live_compiler::live_eval::Vec4
source · [−]Fields
x: f32
y: f32
z: f32
w: f32
Implementations
sourceimpl Vec4
impl Vec4
pub fn all(v: f32) -> Vec4
pub fn to_vec3(&self) -> Vec3
pub fn dot(&self, other: Vec4) -> f32
pub fn from_lerp(a: Vec4, b: Vec4, f: f32) -> Vec4
pub fn is_equal_enough(&self, other: &Vec4, epsilon: f32) -> bool
pub fn from_hsva(hsv: Vec4) -> Vec4
pub fn to_hsva(&self) -> Vec4
pub fn from_u32(val: u32) -> Vec4
pub fn to_u32(&self) -> u32
pub fn xy(&self) -> Vec2
pub fn zw(&self) -> Vec2
Trait Implementations
sourceimpl AddAssign<Vec4> for Vec4
impl AddAssign<Vec4> for Vec4
sourcefn add_assign(&mut self, rhs: Vec4)
fn add_assign(&mut self, rhs: Vec4)
Performs the
+=
operation. Read moresourceimpl AddAssign<f32> for Vec4
impl AddAssign<f32> for Vec4
sourcefn add_assign(&mut self, rhs: f32)
fn add_assign(&mut self, rhs: f32)
Performs the
+=
operation. Read moresourceimpl DivAssign<Vec4> for Vec4
impl DivAssign<Vec4> for Vec4
sourcefn div_assign(&mut self, rhs: Vec4)
fn div_assign(&mut self, rhs: Vec4)
Performs the
/=
operation. Read moresourceimpl DivAssign<f32> for Vec4
impl DivAssign<f32> for Vec4
sourcefn div_assign(&mut self, rhs: f32)
fn div_assign(&mut self, rhs: f32)
Performs the
/=
operation. Read moresourceimpl MulAssign<Vec4> for Vec4
impl MulAssign<Vec4> for Vec4
sourcefn mul_assign(&mut self, rhs: Vec4)
fn mul_assign(&mut self, rhs: Vec4)
Performs the
*=
operation. Read moresourceimpl MulAssign<f32> for Vec4
impl MulAssign<f32> for Vec4
sourcefn mul_assign(&mut self, rhs: f32)
fn mul_assign(&mut self, rhs: f32)
Performs the
*=
operation. Read moresourceimpl SubAssign<Vec4> for Vec4
impl SubAssign<Vec4> for Vec4
sourcefn sub_assign(&mut self, rhs: Vec4)
fn sub_assign(&mut self, rhs: Vec4)
Performs the
-=
operation. Read moresourceimpl SubAssign<f32> for Vec4
impl SubAssign<f32> for Vec4
sourcefn sub_assign(&mut self, rhs: f32)
fn sub_assign(&mut self, rhs: f32)
Performs the
-=
operation. Read moreimpl Copy for Vec4
impl StructuralPartialEq for Vec4
Auto Trait Implementations
impl RefUnwindSafe for Vec4
impl Send for Vec4
impl Sync for Vec4
impl Unpin for Vec4
impl UnwindSafe for Vec4
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