Struct solstice_2d::Transform2D [−][src]
Fields
translation_x: f32
translation_y: f32
scale_x: f32
scale_y: f32
skew_x: f32
skew_y: f32
Implementations
impl Transform2D
[src]
pub fn rotation<R: Into<Rad>>(phi: R) -> Self
[src]
pub fn scale(scale: f32) -> Self
[src]
pub fn translation(x: f32, y: f32) -> Self
[src]
pub fn transform_point(&self, x: f32, y: f32) -> (f32, f32)
[src]
Trait Implementations
impl Clone for Transform2D
[src]
fn clone(&self) -> Transform2D
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Transform2D
[src]
impl Debug for Transform2D
[src]
impl Default for Transform2D
[src]
impl From<Transform2D> for Transform3D
[src]
fn from(t: Transform2D) -> Self
[src]
impl Into<ColumnMatrix3<f32>> for Transform2D
[src]
fn into(self) -> ColumnMatrix3<f32>
[src]
impl Into<ColumnMatrix4<f32>> for Transform2D
[src]
fn into(self) -> ColumnMatrix4<f32>
[src]
impl Mul<Transform2D> for Transform2D
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(mut self: Self, rhs: Self) -> Self::Output
[src]
impl MulAssign<Transform2D> for Transform2D
[src]
fn mul_assign(&mut self, rhs: Self)
[src]
impl PartialEq<Transform2D> for Transform2D
[src]
fn eq(&self, other: &Transform2D) -> bool
[src]
fn ne(&self, other: &Transform2D) -> bool
[src]
impl StructuralPartialEq for Transform2D
[src]
Auto Trait Implementations
impl RefUnwindSafe for Transform2D
[src]
impl Send for Transform2D
[src]
impl Sync for Transform2D
[src]
impl Unpin for Transform2D
[src]
impl UnwindSafe for Transform2D
[src]
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, Right> ClosedMul<Right> for T where
T: Mul<Right, Output = T> + MulAssign<Right>,
T: Mul<Right, Output = T> + MulAssign<Right>,
impl<T> DynClone for T where
T: Clone,
[src]
T: Clone,
pub fn __clone_box(&self, Private) -> *mut ()
[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> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Scalar for T where
T: PartialEq<T> + Copy + Any + Debug,
[src]
T: PartialEq<T> + Copy + Any + Debug,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub fn to_subset_unchecked(&self) -> SS
pub fn from_subset(element: &SS) -> SP
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,