diff options
author | Julian T <julian@jtle.dk> | 2021-02-05 20:17:20 +0100 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2021-02-05 20:17:20 +0100 |
commit | 1e83ea211055eb234b89c69b5d03602e3fcb98fb (patch) | |
tree | 7b58c7e6d7d174906541e9f2acf546294f8e9ca5 /src/core/vector2.rs | |
parent | 9235e74dfbc41895a5f8807e1ab93508268a39ea (diff) |
Achieve anti aliasing with multi pixel sampling
Diffstat (limited to 'src/core/vector2.rs')
-rw-r--r-- | src/core/vector2.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/vector2.rs b/src/core/vector2.rs index 3aadb46..858068e 100644 --- a/src/core/vector2.rs +++ b/src/core/vector2.rs @@ -60,8 +60,8 @@ impl Vector2f { pub fn floor(&self) -> Self { Self::new_xy( - self.x.ceil(), - self.y.ceil() + self.x.floor(), + self.y.floor() ) } } |