23 #if defined (__CELLOS_LV2) && defined (__SPU__) 41 #if defined (__SPU__) && defined (__CELLOS_LV2__) 47 vec_float4 get128()
const 52 #else //__CELLOS_LV2__ __SPU__ 54 #endif //__CELLOS_LV2__ __SPU__ 90 return ((m_floats[3]==other.m_floats[3]) && (m_floats[2]==other.m_floats[2]) && (m_floats[1]==other.m_floats[1]) && (m_floats[0]==other.m_floats[0]));
95 return !(*
this == other);
144 m_floats[0] =
x, m_floats[1] =
y, m_floats[2] =
z, m_floats[3] = 0.0f;
155 m_floats[0] =
x, m_floats[1] =
y, m_floats[2] =
z, m_floats[3] =
w;
163 tfSetMax(m_floats[0], other.m_floats[0]);
164 tfSetMax(m_floats[1], other.m_floats[1]);
165 tfSetMax(m_floats[2], other.m_floats[2]);
166 tfSetMax(m_floats[3], other.m_floats[3]);
173 tfSetMin(m_floats[0], other.m_floats[0]);
174 tfSetMin(m_floats[1], other.m_floats[1]);
175 tfSetMin(m_floats[2], other.m_floats[2]);
176 tfSetMin(m_floats[3], other.m_floats[3]);
185 #endif //TFSIMD_QUADWORD_H TFSIMD_FORCE_INLINE void setW(tfScalar w)
Set the w value.
TFSIMD_FORCE_INLINE const tfScalar & getX() const
Return the x value.
double tfScalar
The tfScalar type abstracts floating point numbers, to easily switch between double and single floati...
TFSIMD_FORCE_INLINE bool operator==(const Matrix3x3 &m1, const Matrix3x3 &m2)
Equality operator between two matrices It will test all elements are equal.
TFSIMD_FORCE_INLINE void setValue(const tfScalar &x, const tfScalar &y, const tfScalar &z)
TFSIMD_FORCE_INLINE void setZ(tfScalar z)
Set the z value.
TFSIMD_FORCE_INLINE const tfScalar & y() const
Return the y value.
TFSIMD_FORCE_INLINE void setY(tfScalar y)
Set the y value.
TFSIMD_FORCE_INLINE void tfSetMin(T &a, const T &b)
#define TFSIMD_FORCE_INLINE
TFSIMD_FORCE_INLINE bool operator!=(const Vector3 &other) const
TFSIMD_FORCE_INLINE const tfScalar & x() const
Return the x value.
TFSIMD_FORCE_INLINE const tfScalar & z() const
Return the z value.
TFSIMD_FORCE_INLINE const tfScalar & w() const
Return the w value.
TFSIMD_FORCE_INLINE void setMax(const Vector3 &other)
Set each element to the max of the current values and the values of another Vector3.
TFSIMD_FORCE_INLINE void setX(tfScalar x)
Set the x value.
TFSIMD_FORCE_INLINE const tfScalar & getZ() const
Return the z value.
ATTRIBUTE_ALIGNED16(class) QuadWord
The QuadWord class is base class for Vector3 and Quaternion. Some issues under PS3 Linux with IBM 2...
TFSIMD_FORCE_INLINE void setMin(const Vector3 &other)
Set each element to the min of the current values and the values of another Vector3.
TFSIMD_FORCE_INLINE void tfSetMax(T &a, const T &b)
TFSIMD_FORCE_INLINE const tfScalar & getY() const
Return the y value.