[−][src]Struct tge::math::Vector
Fields
x: N
y: N
Implementations
impl<N: Number> Vector<N>
[src]
impl Vector<f32>
[src]
pub fn from_physical(
physical_position: impl Into<PhysicalPosition>,
scale_factor: f32
) -> Self
[src]
physical_position: impl Into<PhysicalPosition>,
scale_factor: f32
) -> Self
pub fn to_physical(&self, scale_factor: f32) -> PhysicalPosition
[src]
impl Vector<i32>
[src]
pub fn from_logical(
logical_position: impl Into<LogicalPosition>,
scale_factor: f32
) -> Self
[src]
logical_position: impl Into<LogicalPosition>,
scale_factor: f32
) -> Self
pub fn to_logical(&self, scale_factor: f32) -> LogicalPosition
[src]
Trait Implementations
impl<N: Number> Add<Vector<N>> for Vector<N>
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, other: Self) -> Self::Output
[src]
impl<N: Number> AddAssign<Vector<N>> for Vector<N>
[src]
fn add_assign(&mut self, other: Self)
[src]
impl<N: Clone + Number> Clone for Vector<N>
[src]
impl<N: Copy + Number> Copy for Vector<N>
[src]
impl<N: Debug + Number> Debug for Vector<N>
[src]
impl<N: Number> Div<Vector<N>> for Size<N>
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, vec: Vector<N>) -> Self::Output
[src]
impl<N: Number> DivAssign<Vector<N>> for Size<N>
[src]
fn div_assign(&mut self, vec: Vector<N>)
[src]
impl<N: Number> From<(N, N)> for Vector<N>
[src]
impl<N: Number> Into<(N, N)> for Vector<N>
[src]
impl<N: Number> Mul<Vector<N>> for Size<N>
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, vec: Vector<N>) -> Self::Output
[src]
impl<N: Number> MulAssign<Vector<N>> for Size<N>
[src]
fn mul_assign(&mut self, vec: Vector<N>)
[src]
impl<N: PartialEq + Number> PartialEq<Vector<N>> for Vector<N>
[src]
impl<N: Number> StructuralPartialEq for Vector<N>
[src]
impl<N: Number> Sub<Vector<N>> for Vector<N>
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, other: Self) -> Self::Output
[src]
impl<N: Number> SubAssign<Vector<N>> for Vector<N>
[src]
fn sub_assign(&mut self, other: Self)
[src]
Auto Trait Implementations
impl<N> RefUnwindSafe for Vector<N> where
N: RefUnwindSafe,
N: RefUnwindSafe,
impl<N> Send for Vector<N> where
N: Send,
N: Send,
impl<N> Sync for Vector<N> where
N: Sync,
N: Sync,
impl<N> Unpin for Vector<N> where
N: Unpin,
N: Unpin,
impl<N> UnwindSafe for Vector<N> where
N: UnwindSafe,
N: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
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, U> TryFrom<U> 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<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,