35 return ((
x==0.f) && (
y==0.f) && (
z==0.f));
53 double invScale = 1.f/Scale;
54 return Vector3(
x * invScale,
y * invScale,
z * invScale );
60 double invScale = 1.f/Scale;
70 return sqrt(
x*
x +
y*
y +
z*
z );
82 double SquareSum =
x*
x +
y*
y +
z*
z;
85 double invNorm = 1.f/sqrt(SquareSum);
98 double SquareSum =
x*
x +
y*
y +
z*
z;
101 double invNorm = 1.f/sqrt(SquareSum);
Vector3()
default constructor
Vector3 GetNormalized() const
return a normalized vector
bool IsNearlyEqual(const Vector3 &v) const
comparison : nearly equal
Vector3 operator/(double Scale) const
operator /(double)
bool Normalize()
Normalize.
void Set(double a, double b, double c)
set
double NormSquared() const
squared norm
Vector3 operator/=(double Scale)
double divide
double Norm() const
euclidien norm
bool IsZero() const
comparison : zero
general : Vector3 is a class for handling 3D Vectors manipulation.
double x
x,y,z coordinates, 0 at the initialisation
bool IsNearlyZero() const
comparison : nearly zero