81 : x( r[0] ), y( r[1] ), z( r[2] ), w( r[3] )
247 return Vector4(-x, -y, -z, -w);
400 return Math::isNaN(x) || Math::isNaN(y) || Math::isNaN(z) || Math::isNaN(w);
405 ( std::ostream&
o,
const Vector4& v )
407 o <<
"Vector4(" << v.x <<
", " << v.y <<
", " << v.z <<
", " << v.w <<
")";
Reference-counted shared pointer, used for objects where implicit destruction is required.
Standard 3-dimensional vector.
4-dimensional homogeneous vector.
Vector4(const Vector3 &rhs)
Real * ptr()
Pointer accessor for direct copying.
const Real * ptr() const
Pointer accessor for direct copying.
Vector4(const Real afCoordinate[4])
static const Vector4 ZERO
Vector4(const Real fX, const Real fY, const Real fZ, const Real fW)
Vector4(const int afCoordinate[4])
void swap(Vector4 &other)
Exchange the contents of this vector with another.
Real dotProduct(const Vector4 &vec) const
Calculates the dot (scalar) product of this vector with another.
Vector4(const Real scaler)
Vector4()
Default constructor.
bool isNaN() const
Check whether this vector contains valid values.
float Real
Software floating point type.
void swap(Ogre::SmallVectorImpl< T > &LHS, Ogre::SmallVectorImpl< T > &RHS)
Implement std::swap in terms of SmallVector swap.