19 FDVector(
float InX,
float InY,
float InZ) : X(InX), Y(InY), Z(InZ) {}
21 FDVector(
double InX,
double InY,
double InZ) : X(InX), Y(InY), Z(InZ) {}
23 FDVector(
const FVector& V) : X(V.X), Y(V.Y), Z(V.Z) {}
25 FDVector(
const FIntVector& V) : X(V.X), Y(V.Y), Z(V.Z) {}
29 return std::sqrt(X*X + Y*Y + Z*Z);
34 return X*X + Y*Y + Z*
Z;
44 return FMath::Square(V2.
X-V1.
X) + FMath::Square(V2.
Y-V1.
Y) + FMath::Square(V2.
Z-V1.
Z);
49 return FVector(X, Y, Z);
54 return FString::Printf(TEXT(
"X=%.2lf Y=%.2lf Z=%.2lf"), X, Y, Z);
59 return FIntVector((int32)X, (int32)Y, (int32)Z);
72 return X == Other.
X &&
97 return FDVector(X - V.X, Y - V.Y, Z - V.Z);
110 const float RScale = 1.f/Scale;
111 return FDVector(X * RScale, Y * RScale, Z * RScale);
116 return FDVector(X * Scale, Y * Scale, Z * Scale);
FDVector operator-=(const FIntVector &V) const
FDVector(const FIntVector &V)
FDVector(const FVector &V)
FDVector(double InX, double InY, double InZ)
FDVector & operator-=(const FIntVector &V)
static double Dist(const FDVector &V1, const FDVector &V2)
FDVector(float InX, float InY, float InZ)
FDVector & operator=(const FDVector &Other)
FDVector operator*(float Scale) const
FDVector operator-(const FDVector &V) const
FDVector operator*=(float Scale)
FDVector operator/(float Scale) const
FDVector operator*=(double Scale)
FVector ToFVector() const
bool operator==(const FDVector &Other)
FDVector operator+(const FDVector &V) const
double SizeSquared() const
FDVector & operator+=(float Scalar)
FIntVector ToFIntVector() const
static double DistSquared(const FDVector &V1, const FDVector &V2)