Remove mScreenPosi from Node.

This commit is contained in:
Martín Lucas Golini
2025-10-18 23:41:07 -03:00
parent 2c3c252c8c
commit 2d9e352818
16 changed files with 61 additions and 48 deletions

View File

@@ -94,6 +94,8 @@ template <typename T> class Vector2 {
/** Scales the vector position against another vector */
void scale( const T& scale, const Vector2<T>& Center );
Vector2<T> trunc() const;
Vector2<T> ceil() const;
Vector2<T> floor() const;
@@ -384,6 +386,10 @@ template <typename T> void Vector2<T>::clamp( T len ) {
}
}
template <typename T> Vector2<T> Vector2<T>::trunc() const {
return Vector2<T>( std::trunc( x ), std::trunc( y ) );
}
template <typename T> Vector2<T> Vector2<T>::ceil() const {
return Vector2<T>( eeceil( x ), eeceil( y ) );
}

View File

@@ -481,7 +481,6 @@ class EE_API Node : public Transformable {
std::string mId;
String::HashType mIdHash{ 0 };
Vector2f mScreenPos;
Vector2i mScreenPosi;
Sizef mSize;
Float mAlpha{ 255.f };
UintPtr mData{ 0 };