rust/integral-geometry/src/lib.rs
changeset 14128 6a3bcb7c2981
parent 14127 5c1ce63114a5
child 14129 36b792842d5b
equal deleted inserted replaced
14127:5c1ce63114a5 14128:6a3bcb7c2981
    59         )
    59         )
    60     }
    60     }
    61 
    61 
    62     #[inline]
    62     #[inline]
    63     pub fn rotate90(self) -> Self {
    63     pub fn rotate90(self) -> Self {
    64         Point::new(-self.y, self.x)
    64         Point::new(self.y, -self.x)
    65     }
    65     }
    66 }
    66 }
    67 
    67 
    68 #[derive(PartialEq, Eq, Clone, Copy, Debug)]
    68 #[derive(PartialEq, Eq, Clone, Copy, Debug)]
    69 pub struct Size {
    69 pub struct Size {