pub struct Vec2 {
pub x: f32,
pub y: f32,
}Expand description
A two-dimensional value in normalized output coordinates.
Fields§
§x: f32Horizontal component.
y: f32Vertical component.
Implementations§
Trait Implementations§
Source§impl AnimatedValue for Vec2
impl AnimatedValue for Vec2
Source§const ACCEPTS_DATA: bool = true
const ACCEPTS_DATA: bool = true
Whether the type takes the
data value mode.Source§const INTERPOLATES: bool = true
const INTERPOLATES: bool = true
Whether keyframes of the type can interpolate; those of the others only hold.
Source§const OFFSETS: bool = true
const OFFSETS: bool = true
Whether two values of the type have a difference to add: what
repeat_offset needs.Source§const SPLIT: Option<(usize, usize)>
const SPLIT: Option<(usize, usize)>
The fewest and the most channels the type’s
split mode takes, or None for a type
without the mode.Source§const VALUE_CURVES: bool = false
const VALUE_CURVES: bool = false
Whether a keyframe of the type can start a value curve (
ValueBezier).Source§fn takes_value_curve(&self) -> bool
fn takes_value_curve(&self) -> bool
Whether a keyframe holding this value may start or end a value curve.
Source§fn extrapolates(&self, extrapolation: Extrapolation) -> bool
fn extrapolates(&self, extrapolation: Extrapolation) -> bool
Whether keyframes holding this value may extrapolate by
extrapolation.impl Copy for Vec2
Source§impl<'de> Deserialize<'de> for Vec2
impl<'de> Deserialize<'de> for Vec2
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Vec2
Auto Trait Implementations§
impl Forget for Vec2
impl Freeze for Vec2
impl Move for Vec2
impl RefUnwindSafe for Vec2
impl Send for Vec2
impl Sync for Vec2
impl Unpin for Vec2
impl UnsafeUnpin for Vec2
impl UnwindSafe for Vec2
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