mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-18 06:55:48 +03:00
Remove mScreenPosi from Node.
This commit is contained in:
@@ -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 ) );
|
||||
}
|
||||
|
||||
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user