summaryrefslogtreecommitdiffhomepage
path: root/dev/Usr/LibCF/Core.cc
diff options
context:
space:
mode:
Diffstat (limited to 'dev/Usr/LibCF/Core.cc')
-rw-r--r--dev/Usr/LibCF/Core.cc48
1 files changed, 0 insertions, 48 deletions
diff --git a/dev/Usr/LibCF/Core.cc b/dev/Usr/LibCF/Core.cc
deleted file mode 100644
index 28306c56..00000000
--- a/dev/Usr/LibCF/Core.cc
+++ /dev/null
@@ -1,48 +0,0 @@
-/* -------------------------------------------
-
- Copyright (C) 2024 Amlal El Mahrouss, all rights reserved
-
-------------------------------------------- */
-
-#include <LibCF/Core.h>
-
-LibCF::CFRect::operator bool()
-{
- return width > 0 && height > 0;
-}
-
-/***********************************************************************************/
-/// @brief returns true if size matches.
-/***********************************************************************************/
-BOOL LibCF::CFRect::sizeMatches(LibCF::CFRect& rect) noexcept
-{
- return rect.height == height && rect.width == width;
-}
-
-/***********************************************************************************/
-/// @brief returns true if position matches.
-/***********************************************************************************/
-BOOL LibCF::CFRect::positionMatches(LibCF::CFRect& rect) noexcept
-{
- return rect.y == y && rect.x == x;
-}
-
-/***********************************************************************************/
-/// @brief Check if point is within the current MLPoint.
-/// @param point the current point to check.
-/// @retval true if point is within this point.
-/// @retval the validations have failed, false otherwise true.
-/***********************************************************************************/
-BOOL LibCF::CFPoint::isWithin(LibCF::CFPoint& withinOf)
-{
- return x_1 >= withinOf.x_1 && x_2 <= (withinOf.x_2) &&
- y_1 >= withinOf.y_1 && y_2 <= (withinOf.y_2);
-}
-
-/***********************************************************************************/
-/// @brief if Point object is correctly set up.
-/***********************************************************************************/
-LibCF::CFPoint::operator bool()
-{
- return x_1 > x_2 && y_1 > y_2;
-} \ No newline at end of file