#[repr(C)]pub struct RSXform {
pub scos: scalar,
pub ssin: scalar,
pub tx: scalar,
pub ty: scalar,
}
Fields§
§scos: scalar
§ssin: scalar
§tx: scalar
§ty: scalar
Implementations§
Source§impl RSXform
impl RSXform
pub fn new(scos: scalar, ssin: scalar, t: impl Into<Vector>) -> Self
pub fn from_radians( scale: scalar, radians: scalar, t: impl Into<Vector>, a: impl Into<Point>, ) -> Self
pub fn rect_stays_rect(&self) -> bool
pub fn set_identity(&mut self)
pub fn set(&mut self, scos: scalar, ssin: scalar, t: impl Into<Vector>)
pub fn to_quad(self, size: impl Into<Size>) -> [Point; 4]
pub fn to_tri_strip(self, size: impl Into<Size>) -> [Point; 4]
Trait Implementations§
impl Copy for RSXform
impl StructuralPartialEq for RSXform
Auto Trait Implementations§
impl Freeze for RSXform
impl RefUnwindSafe for RSXform
impl Send for RSXform
impl Sync for RSXform
impl Unpin for RSXform
impl UnwindSafe for RSXform
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