mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
interact + pickuo
This commit is contained in:
@@ -6,4 +6,34 @@ public:
|
||||
float X;
|
||||
float Y;
|
||||
float Z;
|
||||
|
||||
FVector operator+(const FVector& A)
|
||||
{
|
||||
return FVector{ this->X + A.X, this->Y + A.Y, this->Z + A.Z };
|
||||
}
|
||||
|
||||
FVector operator-(const FVector& A)
|
||||
{
|
||||
return FVector{ this->X - A.X, this->Y - A.Y, this->Z - A.Z };
|
||||
}
|
||||
|
||||
FVector operator*(const float A)
|
||||
{
|
||||
return FVector{ this->X * A, this->Y * A, this->Z * A };
|
||||
}
|
||||
|
||||
bool operator==(const FVector& A)
|
||||
{
|
||||
return X == A.X && Y == A.Y && Z == A.Z;
|
||||
}
|
||||
|
||||
void operator+=(const FVector& A)
|
||||
{
|
||||
*this = *this + A;
|
||||
}
|
||||
|
||||
void operator-=(const FVector& A)
|
||||
{
|
||||
*this = *this - A;
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user