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) {}
29 return std::sqrt(
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);
110 const float RScale = 1.f/Scale;
111 return FDVector(
X * RScale,
Y * RScale,
Z * RScale);
bool operator==(const FDVector &Other)
FIntVector ToFIntVector() const
FDVector operator*=(double Scale)
FDVector operator+(const FDVector &V) const
FDVector & operator+=(float Scalar)
FDVector operator-=(const FIntVector &V) const
FDVector operator/(float Scale) const
FDVector & operator=(const FDVector &Other)
FDVector & operator-=(const FIntVector &V)
FDVector(const FIntVector &V)
FDVector(const FVector &V)
FDVector(double InX, double InY, double InZ)
FDVector operator*(float Scale) const
FDVector operator*=(float Scale)
FDVector(float InX, float InY, float InZ)
static double DistSquared(const FDVector &V1, const FDVector &V2)
FDVector operator-(const FDVector &V) const
static double Dist(const FDVector &V1, const FDVector &V2)
double SizeSquared() const
FVector ToFVector() const