Go to the documentation of this file.
3 #ifndef _USE_MATH_DEFINES
4 #define _USE_MATH_DEFINES
24 Vec3f(
float x,
float y,
float z)
31 for (
unsigned int i = 0; i < 3; ++i)
44 for (
int i = 0; i < 3; i++)
64 void getValue(
float& x,
float& y,
float& z)
const
72 operator const float* ()
const
94 float s = vec[0] *
v.vec[0];
95 for (
int i = 1; i < 3; i++)
97 s += vec[i] *
v.vec[i];
102 float dot(
const float*
v)
const
104 return vec[0] *
v[0] + vec[1] *
v[1] + vec[2] *
v[2];
109 return Vec3f(vec[1] *
v.vec[2] - vec[2] *
v.vec[1],
110 vec[2] *
v.vec[0] - vec[0] *
v.vec[2],
111 vec[0] *
v.vec[1] - vec[1] *
v.vec[0]);
127 float len = length();
137 return ((*
this -
v).sqrLength() <= tolerance);
142 for (
int i = 0; i < 3; i++)
143 if (v1.vec[i] != v2.vec[i])
152 for (
int i = 0; i < 3; i++)
153 if (v1.vec[i] >= v2.vec[i])
161 for (
int i = 0; i < 3; i++)
162 if (v1.vec[i] > v2.vec[i])
170 for (
int i = 0; i < 3; i++)
171 if (v1.vec[i] <= v2.vec[i])
179 for (
int i = 0; i < 3; i++)
180 if (v1.vec[i] < v2.vec[i])
194 for (
int i = 0; i < 3; i++)
203 for (
int i = 0; i < 3; i++)
212 for (
int i = 0; i < 3; i++)
221 for (
int i = 0; i < 3; i++)
230 for (
int i = 0; i < 3; i++)
251 return Vec3f(v1) += v2;
255 return Vec3f(v1) -= v2;
265 return Vec3f(vec[0] *
v.vec[0], vec[1] *
v.vec[1], vec[2] *
v.vec[2]);
272 for (
int i = 0; i < 3; i++)
281 for (
int i = 0; i < 3; i++)
VectorXD< D, T > sqrt(const VectorXD< D, T > &a)
void getValue(float &x, float &y, float &z) const
std::vector< T > & operator-=(std::vector< T > &v1, const std::vector< T > &v2)
Vec3f cross(const Vec3f &v) const
std::vector< T > & operator/=(std::vector< T > &v1, double c)
bool operator!=(const IceStorm::Subscriber &, const IceStorm::Subscriber &)
std::vector< T > & operator*=(std::vector< T > &v1, double c)
std::vector< T > operator-(const std::vector< T > &v1, const std::vector< T > &v2)
bool equals(const Vec3f &v, float tolerance) const
float dot(const float *v) const
const float * getValue() const
bool operator==(const ReplicaObserver &lhs, const ReplicaObserver &rhs)
std::vector< T > & operator+=(std::vector< T > &v1, const std::vector< T > &v2)
StreamPrinter< Fnc > operator*(StreamPrinterTag, Fnc &&f)
Vec3f operator*(const Vec3f &v) const
bool operator>=(const RemoteHandle< PrxTA > &fst, const RemoteHandle< PrxTB > &snd)
armarx::Vector3IBase operator+(const armarx::Vector3IBase &lhs, const armarx::Vector3IBase &rhs)
bool operator<(const ReplicaObserver &lhs, const ReplicaObserver &rhs)
double v(double t, double v0, double a0, double j)
float dot(const Vec3f &v) const
Vec3f(float x, float y, float z)
Vec3f(const GfxTL::Vector3Df &v)
void getValue(Vec3f &v) const
double dot(const Point &x, const Point &y)
Vec3f & setValue(const float v[3])
Vec3f & setValue(const Vec3f &v)
bool operator<=(const RemoteHandle< PrxTA > &fst, const RemoteHandle< PrxTB > &snd)
VectorXD< 3, float > Vec3f
double s(double t, double s0, double v0, double a0, double j)
Frequency operator/(const double cyclesPerDuration, const Duration &duration)
Vec3f & setValue(float x, float y, float z)
bool operator>(const RemoteHandle< PrxTA > &fst, const RemoteHandle< PrxTB > &snd)