pub fn round(self) -> Vec2<T> {
        Vec2 {
            x: self.x.round(),
            y: self.y.round(),
        }
    }
/// Rounds all components of this vector to the nearest integer number.
/// # Example
/// ```
/// use cable_math::Vec2;
///
/// let a = Vec2::new(3.4, 2.7);
/// let b = Vec2::new(3.0, 3.0);
///
/// assert_eq!(a.round(), b);
Rounds all components of this vector to the nearest integer number.
Rounds all components of this vector to the nearest integer number .
pub fn round(self) -> Vec2<T> {
        Vec2 {
            x: self.x.round(),
            y: self.y.round(),
        }
    }
pub fn round ( self ) -> Vec2 < T > { Vec2 { x : self . x . round ( ) , y : self . y . round ( ) , } }
Rounds all components of this vector to the nearest integer number.
Rounds all components of this vector to the nearest integer number .
self
self
example
```
use cable_math::Vec2.




` ` ` use cable_math :: Vec2 .