man SbVec4f () - 4D vector class
NAME
SbVec4f - 4D vector class
INHERITS FROM
SbVec4f
SYNOPSIS
#include <Inventor/SbLinear.h>
Methods from class SbVec4f:
c
}
c
}
SbVec4f()
c
}
c
}
SbVec4f(const float v[4])
c
}
c
}
SbVec4f(float x, float y, float z, float w)
c
}
c
}
dot(const SbVec4f &v) const
c
}
c
}
equals(const SbVec4f v, float tolerance) const
c
}
c
}
getReal(SbVec3f &v) const
c
}
c
}
getValue() const
c
}
c
}
getValue(float &x, float &y, float &z, float &w) const
c
}
c
}
length() const
c
}
c
}
negate()
c
}
c
}
normalize()
c
}
c
}
setValue(const float v[4])
c
}
c
}
setValue(float x, float y, float z, float w)
c
}
c
}
operator [](int i)
c
}
c
}
operator [](int i)
c
}
c
}
operator *=(float d)
c
}
c
}
operator /=(float d)
c
}
c
}
operator +=(const SbVec4f &u)
c
}
c
}
operator -=(const SbVec4f &u)
c
}
c
}
operator -() const
c
}
c
}
operator *(const SbVec4f &v, float d)
c
}
c
}
operator *(float d, const SbVec4f &v)
c
}
c
}
operator /(const SbVec4f &v, float d)
c
}
c
}
operator +(const SbVec4f &v1, const SbVec4f &v2)
c
}
c
}
operator -(const SbVec4f &v1, const SbVec4f &v2)
c
}
c
}
operator ==(const SbVec4f &v1, const SbVec4f &v2)
c
}
c
}
operator !=(const SbVec4f &v1, const SbVec4f &v2)
DESCRIPTION
4D vector class used to store homogeneous coordinates. This class is used in Inventor for arguments and return values.
METHODS
c
}
c
}
SbVec4f()
Default constructor.
c
}
c
}
SbVec4f(const float v[4])
c
}
c
}
SbVec4f(float x, float y, float z, float w)
Constructor given vector components.
c
}
c
}
dot(const SbVec4f &v) const
Returns dot (inner) product of vector and another vector.
c
}
c
}
equals(const SbVec4f v, float tolerance) const
Equality comparison within given tolerance - the square of the length of the maximum distance between the two vectors.
c
}
c
}
getReal(SbVec3f &v) const
Returns the real portion of the vector by dividing by the fourth value.
c
}
c
}
getValue() const
c
}
c
}
getValue(float &x, float &y, float &z, float &w) const
Returns vector components.
c
}
c
}
length() const
Returns geometric length of vector.
c
}
c
}
negate()
Negates each component of vector in place.
c
}
c
}
normalize()
Changes vector to be unit length.
c
}
c
}
setValue(const float v[4])
c
}
c
}
setValue(float x, float y, float z, float w)
Sets the vector components.
c
}
c
}
operator [](int i)
c
}
c
}
operator [](int i)
Accesses indexed component of vector.
c
}
c
}
operator *=(float d)
c
}
c
}
operator /=(float d)
Component-wise scalar multiplication and division operators.
c
}
c
}
operator +=(const SbVec4f &u)
c
}
c
}
operator -=(const SbVec4f &u)
Component-wise vector addition and subtraction operators.
c
}
c
}
operator -() const
Nondestructive unary negation - returns a new vector.
c
}
c
}
operator *(const SbVec4f &v, float d)
c
}
c
}
operator *(float d, const SbVec4f &v)
c
}
c
}
operator /(const SbVec4f &v, float d)
Component-wise binary scalar multiplication and division operators.
c
}
c
}
operator +(const SbVec4f &v1, const SbVec4f &v2)
c
}
c
}
operator -(const SbVec4f &v1, const SbVec4f &v2)
Component-wise binary vector addition and subtraction operators.
c
}
c
}
operator ==(const SbVec4f &v1, const SbVec4f &v2)
c
}
c
}
operator !=(const SbVec4f &v1, const SbVec4f &v2)
Equality comparison operators.
SEE ALSO
SbVec2f, SbVec3f, SbVec2s, SbRotation