[−][src]Struct oxygengine_composite_renderer::math::Vec2
Fields
x: Scalar
y: Scalar
Methods
impl Vec2
[src]
pub fn new(x: Scalar, y: Scalar) -> Self
[src]
pub fn zero() -> Self
[src]
pub fn one() -> Self
[src]
pub fn sqr_magnitude(self) -> Scalar
[src]
pub fn magnitude(self) -> Scalar
[src]
pub fn normalized(self) -> Self
[src]
pub fn dot(self, other: Self) -> Scalar
[src]
Trait Implementations
impl Copy for Vec2
[src]
impl PartialEq<Vec2> for Vec2
[src]
impl Default for Vec2
[src]
impl Clone for Vec2
[src]
fn clone(&self) -> Vec2
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl From<f32> for Vec2
[src]
impl From<(f32, f32)> for Vec2
[src]
impl From<[f32; 2]> for Vec2
[src]
impl Debug for Vec2
[src]
impl Sub<Vec2> for Vec2
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, other: Self) -> Self
[src]
impl Sub<f32> for Vec2
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, other: Scalar) -> Self
[src]
impl Div<Vec2> for Vec2
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, other: Self) -> Self
[src]
impl Div<f32> for Vec2
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, other: Scalar) -> Self
[src]
impl Add<Vec2> for Vec2
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, other: Self) -> Self
[src]
impl Add<f32> for Vec2
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, other: Scalar) -> Self
[src]
impl Mul<Vec2> for Mat2d
[src]
type Output = Vec2
The resulting type after applying the *
operator.
fn mul(self, other: Vec2) -> Vec2
[src]
impl Mul<Vec2> for Vec2
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, other: Self) -> Self
[src]
impl Mul<f32> for Vec2
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, other: Scalar) -> Self
[src]
impl Mul<Mat2d> for Vec2
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, other: Mat2d) -> Self
[src]
impl Neg for Vec2
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
fn get_type_id(&self) -> TypeId
impl<T> Resource for T where
T: Any + Send + Sync,
T: Any + Send + Sync,
impl<T> TryDefault for T where
T: Default,
T: Default,
fn try_default() -> Result<T, String>
fn unwrap_default() -> Self
Calls try_default
and panics on an error case.
impl<T> Event for T where
T: Send + Sync + 'static,
T: Send + Sync + 'static,