18 #ifndef ZENI_VECTOR2F_HXX
19 #define ZENI_VECTOR2F_HXX
34 :
i(0.0
f),
j(0.0
f), degenerate(degenerate_)
39 :
i(i_),
j(j_), degenerate(degenerate_)
44 :
i(rhs.
i),
j(rhs.
j), degenerate(rhs.degenerate || degenerate_)
120 return i *
i +
j *
j;
148 return float(acos((a * a + b * b - c * c) / (2 * a * b)));
152 assert(-1 < index && index < 2);
153 const float *
const ptr = &
i;
158 assert(-1 < index && index < 2);
159 float *
const ptr = &
i;
Vector2f(const bool °enerate_=false)
The best way to create a Vector3f.
Vector2f get_j() const
Get just the j-part.
float operator*(const Vector2f &rhs) const
Get the dot-product.
GLboolean GLboolean GLboolean GLboolean a
A Featureful 3-Space Vector Class.
Vector2f & operator*=(const float &rhs)
Set equal to the scalar multiple.
Vector2f & operator-=(const Vector2f &rhs)
Set equal to the difference.
Quaternion operator*(const float &lhs, const Quaternion &rhs)
float magnitude() const
Get the magnitude of the vector.
Vector2f divide_by(const Vector2f &rhs) const
Divide corresponding members.
Vector2f operator-() const
Get the negation.
float angle_between(const Vector2f &rhs) const
Find the angle between the Vector3fs.
EGLSurface EGLint EGLint y
Vector2f multiply_by(const Vector2f &rhs) const
Multiply corresponding members.
const float & operator[](const int &index) const
Get 'index'.
Vector2f operator+(const Vector2f &rhs) const
Get the sum.
Vector2f & operator/=(const float &rhs)
Set equal to the scalar something.
Vector2f get_i() const
Get just the i-part.
GLdouble GLdouble GLdouble b
float magnitude2() const
Get the 'magnitude squared' of the vector.
A 2D Point represented with floats.
Vector2f & operator+=(const Vector2f &rhs)
Set equal to the sum.
Vector2f operator/(const float &rhs) const
Get the scalar... something.