rust/integral-geometry/src/lib.rs
changeset 14175 76a52e8149e3
parent 14155 8f82d87d223f
child 14207 bb2f301d4fe0
equal deleted inserted replaced
14174:fac275de34e5 14175:76a52e8149e3
   147     pub fn next_power_of_two(&self) -> Self {
   147     pub fn next_power_of_two(&self) -> Self {
   148         Self {
   148         Self {
   149             width: self.width.next_power_of_two(),
   149             width: self.width.next_power_of_two(),
   150             height: self.height.next_power_of_two(),
   150             height: self.height.next_power_of_two(),
   151         }
   151         }
       
   152     }
       
   153 
       
   154     #[inline]
       
   155     pub fn transpose(&self) -> Self {
       
   156         Self::new(self.height, self.width)
   152     }
   157     }
   153 
   158 
   154     #[inline]
   159     #[inline]
   155     pub fn to_mask(&self) -> SizeMask {
   160     pub fn to_mask(&self) -> SizeMask {
   156         SizeMask::new(*self)
   161         SizeMask::new(*self)